Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #1016 from kipukun/frontend-nav

Added refining search options on search, NOT WIRED UP
Cette révision appartient à :
akuma06 2017-06-17 04:27:07 +02:00 révisé par GitHub
révision 1f69e3c028
2 fichiers modifiés avec 27 ajouts et 0 suppressions

Voir le fichier

@ -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}}

Voir le fichier

@ -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">