Merge pull request #415 from jbh-/feature/RequiredFormFields

Adds an asterisk to required backend form fields
This commit is contained in:
Samuel Georges 2014-07-12 16:13:15 +10:00
commit 9ae7b5785b

View File

@ -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'): ?>