login/edit: label references of tags descriptions
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 7 Jul 2018 15:53:44 +0000 (17:53 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 7 Jul 2018 16:50:48 +0000 (18:50 +0200)
Clickable.

login/edit.php

index 56451b50303fe2633c8630bdafecc5f2c7c6c177..e39af548a3692549213c7756215976222d35dcbf 100644 (file)
@@ -216,9 +216,10 @@ foreach ($cols as $col => &$colconf) {
                foreach ($colconf['values'] as $tag => $val) {
                        printf(
                                "\n\t\t" .
-                               '<input type="hidden" name="tags[%1$s]" value="" />' .
-                               '<input type="checkbox" name="tags[%s]" value="1"%s%s /> %s',
-                               $tag,
+                               '<input type="hidden" name="%1$s" value="" />' .
+                               '<input type="checkbox" name="%s" value="1" id="%s"%s%s />' .
+                               '<label for="%2$s"> %s</label>',
+                               "tags[$tag]", "tag-$tag",
                                $val['value'] ? ' checked' : '',
                                isset($val['target']) ? '' : ' readonly',
                                ucfirst($tag)