mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add a label for screen-readers on user add form
There was no label, which is bad for accessibility.
This commit is contained in:
parent
a3cbede680
commit
e148d19e96
1 changed files with 5 additions and 1 deletions
|
@ -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) %}
|
||||
|
|
Loading…
Add table
Reference in a new issue