Add required CRUD form indicator
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
$autofocus = $key == 0 ? 'autofocus' : '';
|
$autofocus = $key == 0 ? 'autofocus' : '';
|
||||||
?>
|
?>
|
||||||
<div class="form-group">
|
<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') { ?>
|
<?php if ($attribute[1] == 'text') { ?>
|
||||||
|
|
||||||
<input type="text" class="form-control"
|
<input type="text" class="form-control"
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
$autofocus = $key == 0 ? 'autofocus' : '';
|
$autofocus = $key == 0 ? 'autofocus' : '';
|
||||||
?>
|
?>
|
||||||
<div class="form-group">
|
<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') { ?>
|
<?php if ($attribute[1] == 'text') { ?>
|
||||||
|
|
||||||
<input type="text" class="form-control"
|
<input type="text" class="form-control"
|
||||||
|
|||||||
Reference in New Issue
Block a user