improve buttons
This commit is contained in:
parent
bf8b996a01
commit
90b0062732
3 changed files with 18 additions and 8 deletions
|
@ -44,7 +44,7 @@ Total: {{.Stats.TotalCount}}
|
|||
|
||||
<h2>Tasks</h2>
|
||||
<label for="limit">Limit:</label>
|
||||
<select id="limit" name="limit" onchange="setLimit(this.value)">
|
||||
<select id="limit" name="limit" onchange="setLimit(this.value)" class="short-button">
|
||||
<option selected value="{{.Limit}}">{{.Limit}}</option>
|
||||
{{if ne .Limit 100 }}<option value="100">100</option>{{end}}
|
||||
{{if ne .Limit 500 }}<option value="500">500</option>{{end}}
|
||||
|
@ -92,8 +92,10 @@ Total: {{.Stats.TotalCount}}
|
|||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
{{if ne .Page 0 }}<button type="button" onclick="setPage(0)">First Page</button>{{end}}
|
||||
{{if ne .Page 0 }}<button type="button" onclick="setPage({{.Page}} -1)">Previous Page</button>{{end}}
|
||||
Page {{.Page}}
|
||||
{{if ne .Count 0}}<button type="button" onclick="setPage({{.Page}} +1)">Next Page</button>{{end}}
|
||||
<div class="button-list">
|
||||
{{if ne .Page 0 }}{{if ne .Page 1 }}<button type="button" onclick="setPage(0)" class="short-button">First Page</button>{{end}}{{end}}
|
||||
{{if ne .Page 0 }}<button type="button" onclick="setPage({{.Page}} -1)" class="short-button">Previous Page</button>{{end}}
|
||||
<div> Page {{.Page}} </div>
|
||||
{{if ne .Count 0}}<button type="button" onclick="setPage({{.Page}} +1)" class="short-button">Next Page</button>{{end}}
|
||||
</div>
|
||||
{{template "tail"}}
|
Loading…
Add table
Add a link
Reference in a new issue