mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #415 from jbh-/feature/RequiredFormFields
Adds an asterisk to required backend form fields
This commit is contained in:
commit
9ae7b5785b
@ -5,7 +5,10 @@
|
||||
<?php else: ?>
|
||||
|
||||
<?php if ($field->label): ?>
|
||||
<label for="<?= $field->getId() ?>"><?= e(trans($field->label)) ?></label>
|
||||
<label for="<?= $field->getId() ?>">
|
||||
<?= e(trans($field->label)) ?>
|
||||
<?= ($field->required ? '*' : '') ?>
|
||||
</label>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($field->comment && $field->commentPosition == 'above'): ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user