Added refining search options on search, NOT WIRED UP
Cette révision appartient à :
Parent
5bc922781c
révision
2c6eea88bc
2 fichiers modifiés avec 27 ajouts et 0 suppressions
|
@ -37,3 +37,27 @@
|
|||
<input class="form-input search-box" name="q" placeholder="{{call $.T "search"}}" type="text" value="{{.Search.Query}}">
|
||||
<button type="submit" class="form-input icon-search"></button>
|
||||
{{end}}
|
||||
{{define "search_refine"}}
|
||||
<div style="text-align:left;" class="box">
|
||||
<span>Between <input class="form-input" size="7" name="minSize" type="text"> and <input size="7" class="form-input" name="maxSize" type="text">
|
||||
<select name="sizeType" class="form-input">
|
||||
<option value="b">B</option>
|
||||
<option value="k">KiB</option>
|
||||
<option selected value="m">MiB</option>
|
||||
<option value="g">GiB</option>
|
||||
</select>
|
||||
large.
|
||||
</span>
|
||||
<br>
|
||||
<span>Between <input class="form-input" size="7" name="minDate" type="text"> and <input class="form-input" size="7" name="minDate" type="text">
|
||||
<select name="dateType" class="form-input">
|
||||
<option value="d">days</option>
|
||||
<option value="m">months</option>
|
||||
<option value="y">years</option>
|
||||
</select>
|
||||
old.
|
||||
</span>
|
||||
<br>
|
||||
<button style="margin-top:10px;" type="submit" class="form-input">Refine</button>
|
||||
</div>
|
||||
{{end}}
|
|
@ -6,6 +6,9 @@
|
|||
{{end}}
|
||||
{{define "content"}}
|
||||
<!-- Contain the table within a grid, as for better sizing -->
|
||||
{{if ne $.Search.Query ""}}
|
||||
{{block "search_refine" .}}{{end}}
|
||||
{{end}}
|
||||
<div class="results box">
|
||||
<table>
|
||||
<thead class="torrent-info">
|
||||
|
|
Référencer dans un nouveau ticket