* Fix search Status Should fix #1428 ?s=2 and others. Reason: the sql query wasn't correct when filtering (status >= ? = ?) * Fix adding tag form (nojs) + miscalleneous * Fix #1423 by checking http method before finding the tags. * Form is now like other tags form * New Middleware LoggedInMiddleware to protect routes to logged user only * Display of Non-Accepted tags in torrent view improved by translating tagtype values * Update tag.jet.html
25 lignes
1,1 Kio
HTML
25 lignes
1,1 Kio
HTML
{{ extends "layouts/index_site" }}
|
|
{{ import "layouts/partials/helpers/csrf" }}
|
|
{{ import "layouts/partials/helpers/errors" }}
|
|
{{ import "layouts/partials/helpers/tag_form" }}
|
|
{{block title()}}{{T("add_tag")}}{{end}}
|
|
{{block content_body()}}
|
|
<div class="box results">
|
|
<h3 id="torrents">{{ T("add_tag") }}</h3>
|
|
<form style="text-align:left;padding-left:10px;padding-right:10px;" enctype="multipart/form-data" role="upload" method="POST">
|
|
<div class="upload-tag-form">
|
|
{{ yield csrf_field() }}
|
|
{{ range Config.Torrents.Tags.Types }}
|
|
{{ yield tagForm(tagType=., acceptedTag=Form.Get(.Name)) }}
|
|
{{ end }}
|
|
<div class="form-group">
|
|
<label class="input-label" for="tag_{{Config.Torrents.Tags.Default}}">{{ T("tagtype_tags") }}</label>
|
|
<input type="text" class="form-input" name="tag_{{Config.Torrents.Tags.Default}}" id="tag_{{Config.Torrents.Tags.Default}}" value="{{ Form.Get(Config.Torrents.Tags.Default).Tag}}" />
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="form-input up-input btn-green">{{ T("add")}}</button>
|
|
<br/>
|
|
<br/>
|
|
</form>
|
|
</div>
|
|
{{end}}
|