2017-05-06 10:36:37 +02:00
{{define "title"}}Upload magnet{{end}}
{{define "content"}}
< div class = "blockBody" >
{{with .Upload}}
< hr >
2017-05-07 03:32:26 +02:00
< form enctype = "multipart/form-data" role = "upload" method = "POST" >
2017-05-06 09:47:30 +02:00
< div class = "form-group" >
2017-05-07 13:38:46 +02:00
< label for = "name" > Name< / label >
< input type = "text" name = "name" class = "form-control" placeholder = "File Name" value = "{{.Name}}" required >
2017-05-06 09:47:30 +02:00
< / div >
< div class = "form-group" >
2017-05-07 13:38:46 +02:00
< label for = "torrent" > Torrent file< / label >
< input type = "file" name = "torrent" id = "torrent" accept = ".torrent" >
< p class = "help-block" > Uploading a torrent file allows pre-filling some fields, this is recommended.< / p >
2017-05-06 09:47:30 +02:00
< / div >
< div class = "form-group" >
2017-05-07 13:57:38 +02:00
< label for = "magnet" > Magnet Link< / label >
2017-05-06 09:47:30 +02:00
< input type = "text" name = "magnet" class = "form-control"
2017-05-07 11:08:44 +02:00
style="width:60rem" placeholder="Magnet Link" value="{{.Magnet}}">
2017-05-06 09:47:30 +02:00
< / div >
< div class = "form-group" >
< label for = "c" > Category< / label >
< select name = "c" class = "form-control input-sm" >
< option value = "3_12" { { if eq . Category " 3_12 " } } selected { { end } } > Anime - Anime Music Video< / option >
< option value = "3_5" { { if eq . Category " 3_5 " } } selected { { end } } > Anime - English-translated< / option >
< option value = "3_13" { { if eq . Category " 3_13 " } } selected { { end } } > Anime - Non-English-translated< / option >
< option value = "3_6" { { if eq . Category " 3_6 " } } selected { { end } } > Anime - Raw< / option >
< option value = "2_3" { { if eq . Category " 2_3 " } } selected { { end } } > Audio - Lossless< / option >
< option value = "2_4" { { if eq . Category " 2_4 " } } selected { { end } } > Audio - Lossy< / option >
< option value = "4_7" { { if eq . Category " 4_7 " } } selected { { end } } > Literature - English-translated< / option >
< option value = "4_8" { { if eq . Category " 4_8 " } } selected { { end } } > Literature - Raw< / option >
< option value = "4_14" { { if eq . Category " 4_14 " } } selected { { end } } > Literature - Non-English-translated< / option >
< option value = "5_9" { { if eq . Category " 5_9 " } } selected { { end } } > Live Action - English-translated< / option >
< option value = "5_10" { { if eq . Category " 5_10 " } } selected { { end } } > Live Action - Idol/Promotional Video< / option >
< option value = "5_18" { { if eq . Category " 5_18 " } } selected { { end } } > Live Action - Non-English-translated< / option >
< option value = "5_11" { { if eq . Category " 5_11 " } } selected { { end } } > Live Action - Raw< / option >
< option value = "6_15" { { if eq . Category " 6_15 " } } selected { { end } } > Pictures - Graphics< / option >
< option value = "6_16" { { if eq . Category " 6_16 " } } selected { { end } } > Pictures - Photos< / option >
< option value = "1_1" { { if eq . Category " 1_1 " } } selected { { end } } > Software - Applications< / option >
< option value = "1_2" { { if eq . Category " 1_2 " } } selected { { end } } > Software - Games< / option >
< / select >
< / div >
< div class = "form-group" >
< label for = "desc" > Torrent Description< / label >
2017-05-07 13:38:46 +02:00
< p class = "help-block" > A limited set of HTML is allowed in the description, make sure to use < span style = "font-family:monospace" > < br/> < / span > .< / p >
2017-05-06 09:47:30 +02:00
< textarea name = "desc" class = "form-control" rows = "10" > {{.Description}}< / textarea >
< / div >
2017-05-07 10:25:09 +02:00
{{block "captcha" .}}{{end}}
2017-05-06 09:47:30 +02:00
< button type = "submit" class = "btn btn-success" > Upload< / button >
< br / >
< br / >
< / form >
{{end}}
2017-05-06 10:36:37 +02:00
< / div >
2017-05-07 13:38:46 +02:00
{{end}}
{{define "js_footer"}}
< script type = "text/javascript" charset = "utf-8" src = "{{.URL.Parse " / js / uploadPage . js " } } " > < / script >
{{end}}