2017-07-14 18:32:07 +02:00
{{ import "flags" }}
2017-06-28 13:42:38 +02:00
{{block search_common()}}
2017-07-31 13:13:57 +02:00
< select name = "c" class = "form-input form-category" >
2017-07-24 07:03:43 +02:00
< option value = "_" > {{ T("all_categories")}}< / option >
{{ range _, cat := GetCategories(true, true) }}
< option value = "{{ cat.ID }}" { { if Search . Category = = cat . ID } } selected { { end } } > {{ T(cat.Name) }}< / option >
{{ end }}
< / select >
2017-06-28 13:42:38 +02:00
{{end}}
{{block search_button() }}
2017-07-24 07:03:43 +02:00
< input class = "form-input search-box" name = "q" placeholder = "{{ T(" search " ) } } " type = "text" value = "{{Search.NameLike}}" / >
< button type = "submit" class = "form-input icon-search" > < / button >
< button type = "submit" class = "form-input refine" name = "refine" value = "1" > {{ T("refine")}}< / button >
2017-06-28 13:42:38 +02:00
{{end}}
2017-07-10 15:24:52 +02:00
{{block search_refine(url="") }}
2017-08-04 21:08:05 +02:00
< div style = "{{ if !Search.ShowRefine }}display:none;{{ end }}" class = "box refine" >
2017-08-02 14:01:43 +02:00
< / span >
2017-07-24 07:03:43 +02:00
< form style = "display: grid;" method = "GET" action = "{{ url }}" >
2017-08-12 09:20:47 +02:00
< h3 > {{ T("refine_search") }}< / h3 >
2017-08-02 14:01:43 +02:00
< div >
< div class = "refine-container-1" >
2017-07-24 07:03:43 +02:00
< span class = "form-refine" >
< span class = "spacing" > {{ T("search_for") }}:< / span >
2017-08-01 00:57:31 +02:00
< input type = "text" class = "form-input refine-searchbox" size = "30" name = "q" value = "{{Search.NameLike}}" placeholder = "{{ T(" search_for " ) } } " / > < select name = "c" class = "form-input refine-category" / >
2017-07-24 07:03:43 +02:00
< option value = "_" > {{ T("all_categories")}}< / option >
{{ range _, cat := GetCategories(true, true) }}
< option value = "{{ cat.ID }}" { { if Search . Category = = cat . ID } } selected { { end } } > {{ T(cat.Name) }}< / option >
{{ end }}
< / select >
< / span >
< span class = "form-refine" >
< span class = "spacing" > {{ T("show") }}:< / span >
2017-08-02 19:34:53 +02:00
< select name = "s" class = "form-input spacing" style = "max-width: 21%;min-width: 100px;" >
2017-07-24 07:03:43 +02:00
< option value = "0" > {{ T("show_all")}}< / option >
< option value = "2" { { if Search . Status = = 2 } } selected { { end } } > {{ T("filter_remakes")}}< / option >
< option value = "3" { { if Search . Status = = 3 } } selected { { end } } > {{ T("trusted")}}< / option >
< option value = "4" { { if Search . Status = = 4 } } selected { { end } } > A+< / option >
< / select >
Limit: < input type = "number" name = "limit" value = "{{ Navigation.MaxItemPerPage }}" class = "form-input spacing" min = "1" max = "300" / >
From: < input type = "number" name = "userID" placeholder = "UserID" value = "{{ Search.UserID > 0 ? Search.UserID : " " } } " class = "form-input refine-userid" / >
< / span >
< span class = "form-refine" >
< span class = "spacing" > {{ T("between")}}< / span >
< input class = "form-input" size = "7" name = "minSize" type = "text" value = "{{Search.MinSize}}" / >
{{ T("and")}}
< input size = "7" class = "form-input" name = "maxSize" type = "text" value = "{{Search.MaxSize}}" / >
< select name = "sizeType" class = "form-input" >
< option value = "b" { { if Search . SizeType = = " b " } } selected { { end } } > B< / option >
< option value = "k" { { if Search . SizeType = = " k " } } selected { { end } } > KiB< / option >
< option value = "m" { { if Search . SizeType = = " m " } } selected { { end } } > MiB< / option >
< option value = "g" { { if Search . SizeType = = " g " } } selected { { end } } > GiB< / option >
< / select >
{{ T("large")}}
< / span >
2017-08-14 07:56:45 +02:00
< span class = "form-refine" >
2017-08-26 03:24:25 +02:00
< span class = "spacing" > {{ T("from")}}< / span >
2017-08-27 02:51:19 +02:00
< input class = "form-input refine-date" name = "fromDate" type = "text" value = "{{Search.FromDate}}" placeholder = "YYYY/MM/DD" / >
2017-08-26 03:24:25 +02:00
{{ T("to")}}
2017-08-27 06:11:40 +02:00
< input class = "form-input refine-date spacing" size = "7" name = "toDate" type = "text" value = "{{Search.ToDate}}" placeholder = "YYYY/MM/DD" / >
2017-08-27 03:05:42 +02:00
Exclude: < input type = "number" name = "nuserID" placeholder = "UserID" value = "" class = "form-input refine-userid" / >
2017-08-14 07:56:45 +02:00
< / span >
< span class = "form-refine show-xs" style = "margin-bottom: 2px;" >
< span class = "spacing" > {{T("sort_by")}}< / span >
< select name = "sort" class = "form-input" >
2017-08-26 03:24:25 +02:00
< option value = "1" { { if Search . Sort = = 1 } } selected { { end } } > {{T("name")}}< / option >
< option value = "4" { { if Search . Sort = = 4 } } selected { { end } } > {{T("size")}}< / option >
< option value = "5" { { if Search . Sort = = 5 } } selected { { end } } > {{T("seeders")}}< / option >
< option value = "6" { { if Search . Sort = = 6 } } selected { { end } } > {{T("leechers")}}< / option >
< option value = "7" { { if Search . Sort = = 7 } } selected { { end } } > {{T("completed")}}< / option >
< option value = "2" { { if Search . Sort = = 2 | | Search . Sort = = 0 } } selected { { end } } > {{T("date")}}< / option >
2017-08-14 07:56:45 +02:00
< / select >
< select name = "order" class = "form-input" >
< option value = "true" > {{T("ascending")}}< / option >
2017-08-26 03:24:25 +02:00
< option value = "false" { { if ! Search . Order } } selected { { end } } > {{T("descending")}}< / option >
2017-08-14 07:56:45 +02:00
< / select >
< / span >
< / div >
2017-08-02 14:01:43 +02:00
< div class = "refine-container-2" >
2017-08-27 06:11:40 +02:00
< span class = "form-refine" >
< span class = "spacing" > Quality:< / span >
< select name = "vq" class = "form-input" >
< option value = "1080" > 1080p< / option >
< / select >
< / span >
< span class = "form-refine" >
2017-08-27 03:21:00 +02:00
< span class = "spacing" > Tags:< / span >
< input type = "number" name = "vgmdb" placeholder = "VGMdb" value = "" class = "form-input" / >
< input type = "number" name = "vndb" placeholder = "VnDB" value = "" class = "form-input" / >
< input type = "number" name = "anidb" placeholder = "AniDB" value = "" class = "form-input" / >
< / span >
2017-08-02 14:01:43 +02:00
< div name = "language" class = "form-refine form-input language" >
{{ yield flagList(languages=GetTorrentLanguages(), selected=Search.Languages, inputname="lang", id="refine-search")}}
< / div >
< button type = "submit" class = "form-input refine-btn" name = "refine" value = "1" > {{ T("refine")}}< / button >
< / div >
< / div >
2017-07-24 07:03:43 +02:00
< / form >
2017-07-10 15:24:52 +02:00
< / div >
2017-06-28 13:42:38 +02:00
{{end}}