Add selector for number of items per page on search view
This commit is contained in:
parent
d7b207159b
commit
e9dba080a7
2 changed files with 33 additions and 10 deletions
|
@ -50,7 +50,17 @@
|
|||
<li class="previous">
|
||||
<a href="{{.Prev}}">← Prev</a>
|
||||
</li>
|
||||
{{else}}
|
||||
<div class="span1"></div>
|
||||
{{end}}
|
||||
<form class="form-inline span9 centered">
|
||||
<label>Books per page: </label>
|
||||
<div class="input-append" action="/search/">
|
||||
<input class="span1" name="num" type="text" value="{{.ItemsPage}}" />
|
||||
<button type="submit" class="btn">Ok</button>
|
||||
</div>
|
||||
<input class="hidden span1" name="q" type="text" value="{{.S.Search}}" />
|
||||
</form>
|
||||
{{if .Next}}
|
||||
<li class="next">
|
||||
<a href="{{.Next}}">Next →</a>
|
||||
|
|
Reference in a new issue