Accessibility updates
This commit is contained in:
17
templates/forms/set-password.html.twig
Normal file
17
templates/forms/set-password.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
<form id="set-or-reset-password" role="form" action="{{site.uri.public}}/account/set-password" method="post" class="r-form">
|
||||
{% include "forms/csrf.html.twig" %}
|
||||
{# Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 #}
|
||||
<input type="text" style="display:none" aria-label="hidden spider text">
|
||||
<input type="password" style="display:none" aria-label="hidden spider password">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="form-password">{{translate('PASSWORD')}}</label>
|
||||
<input type="password" name="password" placeholder="{{translate('PASSWORD.BETWEEN', {min: site.password.length.min, max: site.password.length.max})}}" class="form-control" id="form-password">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="form-passwordc">{{translate('PASSWORD.CONFIRM')}}</label>
|
||||
<input type="password" name="passwordc" placeholder="{{translate('PASSWORD.CONFIRM')}}" class="form-control" id="form-passwordc">
|
||||
</div>
|
||||
<input type="hidden" name="token" value="{{token}}">
|
||||
<button type="submit" class="btn btn-block btn-primary">{{translate('PASSWORD.CREATE.SET')}}</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user