Modify password field to support placeholder attribute (#5003)

This commit is contained in:
Klaas Poortinga 2020-03-26 20:38:40 +01:00 committed by GitHub
parent bd2a774a58
commit cbfa309c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -7,9 +7,10 @@
name="<?= $field->getName() ?>"
id="<?= $field->getId() ?>"
value=""
placeholder="<?= e(trans($field->placeholder)) ?>"
class="form-control"
autocomplete="off"
<?= $field->hasAttribute('maxlength') ? '' : 'maxlength="255"' ?>
<?= $field->getAttributes() ?>
/>
<?php endif ?>
<?php endif ?>