Skip to content

Commit

Permalink
Full name is aria-required in report creation
Browse files Browse the repository at this point in the history
Ensure the full name field is marked as required for screen readers.
  • Loading branch information
chrismytton committed Sep 17, 2024
1 parent de4e3ab commit 523289d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/web/base/report/form/user_name.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<p class='form-error'>[% field_errors.name %]</p>
[% END %]
<input type="text" class="form-control [% valid_class OR 'validName' %] js-form-name [% extra_class %]"
value="[% object.name || c.user.name | html %]" name="name" id="form_name" autocomplete="name">
value="[% object.name || c.user.name | html %]" name="name" id="form_name" autocomplete="name" aria-required="true">
<!-- /user_name.html -->
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<p class='form-error'>[% field_errors.name %]</p>
[% END %]
<input type="text" class="form-control [% valid_class OR 'validName' %] js-form-name [% extra_class %]"
value="[% object.name || c.user.name | html %]" name="name" id="form_name" autocomplete="name">
value="[% object.name || c.user.name | html %]" name="name" id="form_name" autocomplete="name" aria-required="true">
<!-- /user_name.html -->

0 comments on commit 523289d

Please sign in to comment.