aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Delalande <jocelyn@crapouillou.net>2017-02-02 11:46:08 +0100
committerJocelyn Delalande <jocelyn@crapouillou.net>2017-02-04 00:41:28 +0100
commite148d19e9640a4bf3ebea8010db82c6f24fffc9a (patch)
treeb21c0132bb52d21d704c14bdd2901f228c6a9b6b
parenta3cbede680f9623c7ab4071df9abf143dec64065 (diff)
downloadihatemoney-mirror-e148d19e9640a4bf3ebea8010db82c6f24fffc9a.zip
ihatemoney-mirror-e148d19e9640a4bf3ebea8010db82c6f24fffc9a.tar.gz
ihatemoney-mirror-e148d19e9640a4bf3ebea8010db82c6f24fffc9a.tar.bz2
Add a label for screen-readers on user add form
There was no label, which is bad for accessibility.
-rw-r--r--budget/templates/forms.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index cf599a9..af24fe2 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -96,7 +96,11 @@
{% macro add_member(form) %}
{{ form.hidden_tag() }}
-{{ form.name(placeholder=_("Type user name here")) }}<button class="btn">{{ _("Add") }}</button>
+ <div class="input-group">
+ <label class="sr-only" for="name">_("Type user name here")</label>
+ {{ form.name(placeholder=_("Type user name here"), class="form-control") }}
+ <button class=" input-group-addon btn">{{ _("Add") }}</button>
+ </div>
{% endmacro %}
{% macro edit_member(form, title=True) %}