Skip to content
Snippets Groups Projects
Commit 265217ab authored by Robert Lange's avatar Robert Lange
Browse files

Merge branch 'instance/fid' into instance/fid_bbi

parents da55773e ecff4866
Branches
Tags
No related merge requests found
......@@ -51,6 +51,9 @@ return [
'options' => [
'label' => 'label_address_0_line_1',
],
'attributes' => [
'autocomplete' => "street-address"
],
],
],
'line2' => [
......@@ -59,7 +62,7 @@ return [
'type' => Text::class,
'options' => [
'label' => 'label_address_0_line_2',
]
],
],
],
'zip' => [
......@@ -69,6 +72,9 @@ return [
'options' => [
'label' => 'label_address_0_zip',
],
'attributes' => [
'autocomplete' => "postal-code"
],
],
],
'city' => [
......@@ -78,6 +84,9 @@ return [
'options' => [
'label' => 'label_address_0_city',
],
'attributes' => [
'autocomplete' => "address-level2"
],
],
],
'country' => [
......
......@@ -115,6 +115,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "given-name"
],
],
],
......@@ -127,6 +128,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "family-name"
],
],
],
......@@ -156,6 +158,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => 'organization-title'
],
],
],
......
......@@ -38,6 +38,7 @@ return [
'elements' => [
'username' => [
'spec' => [
'id' => 'username',
'name' => 'username',
'type' => Email::class,
'options' => [
......@@ -45,11 +46,13 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => 'email'
],
],
],
'username_confirmation' => [
'spec' => [
'id' => 'username_confirmation',
'name' => 'username_confirmation',
'type' => Email::class,
'options' => [
......@@ -57,6 +60,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => 'email'
],
],
],
......@@ -69,6 +73,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "given-name"
],
],
],
......@@ -81,6 +86,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "family-name"
],
],
],
......
......@@ -78,6 +78,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "given-name"
],
],
],
......@@ -90,6 +91,7 @@ return [
],
'attributes' => [
'required' => true,
'autocomplete' => "family-name"
],
],
],
......@@ -111,7 +113,7 @@ return [
'type' => Text::class,
'options' => [
'label' => 'label_college',
]
],
],
],
'addresses' => require 'address-collection.php',
......
......@@ -8,9 +8,9 @@
<?php endif; ?>
<?php if (isset($this->verifyold) && $this->verifyold || isset($this->oldpwd)): ?>
<div class="form-group">
<label class="control-label"><?=$this->transEsc('old_password') ?>:</label>
<input id="current-password" type="password" name="oldpwd" class="form-control" autocomplete="current-password"/>
<div class="help-block with-errors"></div>
<label for="current-password" class="control-label"><?=$this->transEsc('old_password') ?>:</label>
<input id="current-password" type="password" name="oldpwd" class="form-control" aria-describedby="current-password-error" autocomplete="current-password" required aria-required="true" />
<div id="current-password-error" class="help-block with-errors"></div>
</div>
<?php endif; ?>
<?php
......@@ -26,21 +26,22 @@
}
?>
<div class="form-group">
<label class="control-label"><?=$this->transEsc('new_password') ?>:</label>
<label for="password" class="control-label"><?=$this->transEsc('new_password') ?>:</label>
<input type="password" id="password" name="password" class="form-control" required aria-required="true"
<?=isset($this->passwordPolicy['minLength']) ? ' data-minlength="' . $this->passwordPolicy['minLength'] . '" data-minlength-error="' . $this->escapeHtmlAttr($this->translate('password_minimum_length', ['%%minlength%%' => $this->passwordPolicy['minLength']])) . '"' : '' ?>
<?=isset($this->passwordPolicy['maxLength']) ? ' maxlength="' . $this->passwordPolicy['maxLength'] . '"' : '' ?>
<?=$pattern ? ' pattern="' . $pattern . '"' : '' ?>
autocomplete="new-password"
aria-describedby="password-error"
/>
<?php if ($this->passwordPolicy['hint']): ?>
<div class="help-block"><?=$this->transEsc($this->passwordPolicy['hint']) ?></div>
<?php endif; ?>
<div class="help-block with-errors"></div>
<div id="password-error" class="help-block with-errors"></div>
</div>
<div class="form-group">
<label class="control-label"><?=$this->transEsc('confirm_new_password') ?>:</label>
<input type="password" name="password2" class="form-control" required aria-required="true" data-match="#password" data-match-error="<?=$this->escapeHtmlAttr($this->translate('Passwords do not match'))?>" autocomplete="new-password"/>
<div class="help-block with-errors"></div>
<label for="password2" class="control-label"><?=$this->transEsc('confirm_new_password') ?>:</label>
<input id="password2" type="password" name="password2" class="form-control" required aria-required="true" data-match="#password" data-match-error="<?=$this->escapeHtmlAttr($this->translate('Passwords do not match'))?>" autocomplete="new-password" aria-describedby="password2-error"/>
<div id="password2-error" class="help-block with-errors"></div>
</div>
<!-- finc-accessibility: Auth - AbstractBase - newpassword - END -->
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment