Add pagination
Note: Requests API endpoints /getRequests and /getRequestsAll have breaking changes (the response schema changed entirely). Fixes #26
This commit is contained in:
parent
c634e763f3
commit
84a22ccffd
6 changed files with 139 additions and 53 deletions
|
@ -30,15 +30,31 @@
|
|||
</div>
|
||||
<div id="main">
|
||||
<div id="requests"></div><br>
|
||||
Count:
|
||||
<select id="count" value="10" onchange="updateTable()">
|
||||
<option>5</option>
|
||||
<option selected="selected">10</option>
|
||||
<option>25</option>
|
||||
<option>50</option>
|
||||
<option>100</option>
|
||||
</select>
|
||||
<input type="checkbox" id="allRequests" onchange="updateTable()">View requests in any state</input>
|
||||
<div id="tableSettings">
|
||||
<span style="width:420px">
|
||||
Count:
|
||||
<select id="count" value="10" onchange="updateTable()">
|
||||
<option>5</option>
|
||||
<option selected="selected">10</option>
|
||||
<option>25</option>
|
||||
<option>50</option>
|
||||
<option>100</option>
|
||||
</select>
|
||||
</span>
|
||||
<span>
|
||||
<button id="pageBtnFirst" onclick="goToPage(1)"><<</button>
|
||||
<button id="pageBtnPrev" onclick="goToPage(currentPage-1)"><</button>
|
||||
<select id="page" onchange="goToPage(this.value)">
|
||||
<option value=1>1</option>
|
||||
</select>
|
||||
of <span id="totalPages">?</span>
|
||||
<button id="pageBtnNext" onclick="goToPage(currentPage+1)">></button>
|
||||
<button id="pageBtnLast" onclick="goToPage(totalPages)">>></button>
|
||||
</span>
|
||||
<span style="width:420px">
|
||||
<input type="checkbox" id="allRequests" onchange="updateTable()">View learned and rejected requests</input>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="modalBackground">
|
||||
<div class="modal" id="messageModal">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue