-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a page for compound file list
- Loading branch information
Showing
4 changed files
with
63 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
(% extends "layout.html" %) | ||
|
||
(% block content %) | ||
|
||
<script src="/static/datatables/datatables.min.js" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="/static/datatables/datatables.min.css" crossorigin="anonymous"> | ||
|
||
<div id="app-4" class="container-fluid justify-content-center align-items-center"> | ||
<div class="row"> | ||
<div class="col-sm"></div> | ||
<div class="col-sm text-center"> | ||
<h2>Files For Compound</h2> | ||
</div> | ||
<div class="col-sm"></div> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="table table-striped"> | ||
<table id="datatable" class="display" width="100%"></table> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
|
||
url = "/compoundfilename" | ||
|
||
$.ajax({ | ||
url: url + window.location.search, | ||
type: "GET", | ||
data: {}, | ||
success: function(componentObject) { | ||
return function(response) { | ||
$('#datatable').DataTable( { | ||
data: response, | ||
columns: [ | ||
{ data: "filepath" , title: "Filename"} | ||
], | ||
pageLength: 30 | ||
} ); | ||
|
||
} | ||
}(this), | ||
dataType: "json" | ||
}); | ||
|
||
|
||
</script> | ||
|
||
|
||
(% endblock %) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters