From ea2e01ae2cce3fba67fc22db4cb1356a9aa88ebd Mon Sep 17 00:00:00 2001 From: TheAMM Date: Wed, 24 May 2017 11:31:29 +0300 Subject: [PATCH] Revert edit/upload form back to -md-, split flag buttons into two groups --- nyaa/templates/edit.html | 30 ++++++++++++++++-------------- nyaa/templates/upload.html | 19 +++++++++++-------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/nyaa/templates/edit.html b/nyaa/templates/edit.html index 46ed917..8d6263d 100755 --- a/nyaa/templates/edit.html +++ b/nyaa/templates/edit.html @@ -17,18 +17,18 @@
-
+
{{ render_field(form.display_name, class_='form-control', placeholder='Display name') }}
-
+
{{ render_field(form.category, class_='form-control')}}
-
+
{{ render_field(form.information, class_='form-control', placeholder='Your website or IRC channel') }}
-
+

{# Only allow changing anonymous status when an uploader exists #} @@ -46,6 +46,16 @@ Hidden + {% if g.user.is_moderator %} + + {% endif %} +
+
{% endif %} - {% if g.user.is_moderator %} - - {% endif %}
-
+
{{ render_markdown_editor(form.description, field_name='description') }}
-
+
diff --git a/nyaa/templates/upload.html b/nyaa/templates/upload.html index 0cf4faf..e9026c8 100755 --- a/nyaa/templates/upload.html +++ b/nyaa/templates/upload.html @@ -18,24 +18,24 @@ {% if config.ENFORCE_MAIN_ANNOUNCE_URL %}

Important: Please include {{ config.MAIN_ANNOUNCE_URL }} in your trackers

{% endif %}
-
+
{{ render_upload(upload_form.torrent_file, accept=".torrent") }}
-
+
{{ render_field(upload_form.display_name, class_='form-control', placeholder='Display name') }}
-
+
{{ render_field(upload_form.category, class_='form-control')}}
-
+
{{ render_field(upload_form.information, class_='form-control', placeholder='Your website or IRC channel') }}
-
+

@@ -52,6 +52,9 @@ Hidden +
+
+
-
+
{{ render_markdown_editor(upload_form.description, field_name='description') }}
{% if config.USE_RECAPTCHA and not g.user %}
-
+
{% for error in upload_form.recaptcha.errors %} {{ error }} {% endfor %} @@ -95,7 +98,7 @@
-
+