Add required CRUD form indicator

This commit is contained in:
Riyyi
2021-05-10 14:58:57 +02:00
parent 6e9f9e4680
commit 0d146728a0
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -17,7 +17,8 @@
$autofocus = $key == 0 ? 'autofocus' : '';
?>
<div class="form-group">
<label for="<?= $name; ?>"><?= $title;?></label><br>
<label for="<?= $name; ?>"><?= $title;?></label>
<?= ($required && $attribute[1] != 'checkbox') ? ' <span class="text-danger">*</span>' : ''; ?><br>
<?php if ($attribute[1] == 'text') { ?>
<input type="text" class="form-control"