1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 08:40:00 +00:00

Align fields better, move Anonymous as first flag

This commit is contained in:
TheAMM 2017-05-20 22:50:49 +03:00
parent af0cca2f8c
commit f31efcdaa1
2 changed files with 8 additions and 8 deletions

View file

@ -25,10 +25,10 @@
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-6">
{{ render_field(form.information, class_='form-control', placeholder='Your website or IRC channel') }}
</div>
<div class="col-md-8">
<div class="col-md-6">
<label class="control-label">Torrent flags</label>
<div>
{% if editor.is_admin %}

View file

@ -32,12 +32,16 @@
</div>
<div class="row form-group">
<div class="col-md-4">
<div class="col-md-6">
{{ render_field(form.information, class_='form-control', placeholder='Your website or IRC channel') }}
</div>
<div class="col-md-8">
<div class="col-md-6">
<label class="control-label">Torrent flags</label>
<div>
<label class="btn btn-primary" title="Upload torrent anonymously (don't display your username)">
{{ form.is_anonymous(disabled=(False if user else ""), checked=(False if user else "")) }}
Anonymous
</label>
<label class="btn btn-default" style="background-color: darkgray; border-color: #ccc;" title="Hide torrent from listing">
{{ form.is_hidden }}
Hidden
@ -50,10 +54,6 @@
{{ form.is_complete }}
Complete
</label>
<label class="btn btn-primary" title="Upload torrent anonymously (don't display your username)">
{{ form.is_anonymous(disabled=(False if user else ""), checked=(False if user else "")) }}
Anonymous
</label>
{% if user.is_trusted %}
<label class="btn btn-success" title="Mark torrent trusted">
{{ form.is_trusted(checked="") }}