Browse Source

Add required CRUD form indicator

master
Riyyi 4 years ago
parent
commit
0d146728a0
  1. 3
      app/views/admin/crud/create.php
  2. 3
      app/views/admin/crud/edit.php

3
app/views/admin/crud/create.php

@ -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"

3
app/views/admin/crud/edit.php

@ -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"

Loading…
Cancel
Save