From 960ecd2d09c7ae865e761e0ae8c7eb3f85566afd Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 1 May 2020 10:55:57 +0200 Subject: Always put checkbox labels on the right (#2937) There were two checkboxes with labels set on the left: it was looking weird and inconsistent with the rest of the application. Also, since the Websub checkbox cannot be checked by the user (i.e. it is entirely managed by the backend), I just hide the line when Websub is disabled. It would be better to never show the checkbox and adapt the label to say something like "Websub is enabled for this feed", but I prefer to avoid changing all the locales. Last point: an input should always have one and only one label. Websub checkbox had two labels, which can be hardly supported by assistive technologies. Reference: https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_structure_a_web_form#Multiple_labels --- app/views/helpers/feed/update.phtml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'app') diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 0cc98e2bc..7576b1fda 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -232,14 +232,18 @@ -
- -
- + + feed->pubSubHubbubEnabled()) { ?> +
+
+ +
-
+ +
@@ -310,9 +314,11 @@
-
- feed->attributes('clear_cache') ? ' checked="checked"' : '' ?> /> +
-- cgit v1.2.3