From 37b3a9a9abd46c202878655717244a4f1a49f304 Mon Sep 17 00:00:00 2001 From: discomrade Date: Sat, 26 Feb 2022 03:03:20 -0100 Subject: [PATCH] Add labels to form input elements --- js/auto-reload.js | 2 +- templates/post_form.html | 82 +++++++++++++++++++----------------- templates/report_delete.html | 4 +- 3 files changed, 46 insertions(+), 42 deletions(-) diff --git a/js/auto-reload.js b/js/auto-reload.js index b9bcc9c8..6b024dba 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -30,7 +30,7 @@ $(document).ready(function(){ var countdown_interval; // Add an update link - $('span#thread-links-bottom').append("["+_("Update")+"] ( "+_("Auto")+") "); + $('span#thread-links-bottom').append("["+_("Update")+"] () "); // Set the updater checkbox according to user setting if (localStorage.auto_thread_update === 'true') { diff --git a/templates/post_form.html b/templates/post_form.html index 12286034..8efa6e53 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -11,17 +11,21 @@ {% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}{% endif %} {% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}{% endif %} {% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %} {% endif %} @@ -72,49 +76,49 @@ {% if config.recaptcha %} {% endif %} {% if config.captcha.enabled %} - - - - + + + + {% elseif config.new_thread_capt %} {% if not id %} {% endif %} {% endif %} {% if config.user_flag %} - + - + {% endif %} @@ -200,11 +204,11 @@ {% endif %} {% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %} diff --git a/templates/report_delete.html b/templates/report_delete.html index 3b765941..542560f7 100644 --- a/templates/report_delete.html +++ b/templates/report_delete.html @@ -2,8 +2,8 @@ {% if config.allow_delete %}
{% trans %}Delete Post{% endtrans %} [ - ] - + ] +
{% endif %}
- {% trans %}Name{% endtrans %} + {{ antibot.html() }} - {% if config.allow_no_country and config.country_flags %} {% endif %} + {% if config.allow_no_country and config.country_flags %} {% endif %} {{ antibot.html() }}
- {% trans %}Email{% endtrans %} + {% if config.field_email_selectbox %} + + {% else %} + + {% endif %} {{ antibot.html() }} @@ -32,39 +36,39 @@ {% if not config.always_noko %}{% endif %} {% else %} - + {% endif %} {{ antibot.html() }} {% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %} - {% if config.spoiler_images %} {% endif %} + {% if config.spoiler_images %} {% endif %} {% endif %} {{ antibot.html() }}
- {% trans %}Subject{% endtrans %} + {{ antibot.html() }} - - {% if config.spoiler_images %} {% endif %} + + {% if config.spoiler_images %} {% endif %}
- {% trans %}Comment{% endtrans %} + {{ antibot.html() }}
- + {{ antibot.html() }} {% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %} {% if not (not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %} - {% if config.spoiler_images %} {% endif %} + {% if config.spoiler_images %} {% endif %} {% endif %} {% endif %}
- {% trans %}Verification{% endtrans %} + {{ antibot.html() }} -
+
{{ antibot.html() }}
- {% trans %}Verification{% endtrans %} - - {% if not config.captcha.local %}{% endif %} -
+ + + {% if not config.captcha.local %}{% endif %} +
- {% trans %}Verification{% endtrans %} + - {% if not config.captcha.local %}{% endif %}
{% trans %}Flag{% endtrans %}
{% trans %}Tag{% endtrans %} - {% for id, tag in config.allowed_tags %} {% endfor %} @@ -142,7 +146,7 @@ {% endif %}
- {% trans %}File{% endtrans %} + @@ -158,7 +162,7 @@
: {% for counter in 1..config.max_images %} - +
{% endfor %}
@@ -169,11 +173,11 @@ {% if config.enable_embedding %}
- {% trans %}Embed{% endtrans %} + {{ antibot.html() }} - +
- {% trans %}Password{% endtrans %} + {{ antibot.html() }} - + {% trans %}(For file deletion.){% endtrans %} {{ antibot.html() }}