Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

basic search on mobile

Cette révision appartient à :
kipukun 2017-05-26 15:57:53 -04:00
Parent 35d01112f8
révision 568bc3e801
2 fichiers modifiés avec 4 ajouts et 4 suppressions

Voir le fichier

@ -1,19 +1,19 @@
{{define "search_common"}}
<select name="c" class="form-input" value>
<select name="c" class="form-input hide-xs" value>
<option value="_">{{call $.T "all_categories"}}</option>
{{ range $name_cat, $id_cat := (GetCategories true) }}
<option value="{{ $id_cat }}" {{if eq $.Search.Category $id_cat }}selected{{end}}>{{call $.T $name_cat }}</option>
{{ end }}
</select>
<label><span class="select-icon caret-down-icon"></span></label>
<select name="s" class="form-input" value>
<select name="s" class="form-input hide-xs" value>
<option value="0">{{call $.T "show_all"}}</option>
<option value="1" {{if eq .Search.Status 1}}selected{{end}}>{{call $.T "filter_remakes"}}</option>
<option value="2" {{if eq .Search.Status 2}}selected{{end}}>{{call $.T "trusted"}}</option>
<option value="3" {{if eq .Search.Status 3}}selected{{end}}>A+</option>
</select>
{{ if .Search.ShowItemsPerPage }}
<select name="max" class="form-input" value>
<select name="max" class="form-input hide-xs" value>
<option value="5" {{if eq .Navigation.MaxItemPerPage 5}}selected{{end}}>5</option>
<option value="10" {{if eq .Navigation.MaxItemPerPage 10}}selected{{end}}>10</option>
<option value="15" {{if eq .Navigation.MaxItemPerPage 15}}selected{{end}}>15</option>

Voir le fichier

@ -77,7 +77,7 @@
</div>
<div class="h-right">
{{block "badge_user" .}}{{end}}
<div class="h-search hide-xs">
<div class="h-search">
<form role="search" action="/search" method="get">
{{block "search_common" .}}{{end}}
{{block "search_button" .}}{{end}}