Add required attribute to CRUD form dropdown
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
<?php } else if ($attribute[1] == 'dropdown') { ?>
|
||||
|
||||
<select name="<?= $name; ?>" class="custom-select">
|
||||
<select name="<?= $name; ?>" class="custom-select" <?= $required; ?>>
|
||||
<?php foreach($this->dropdownData[$key] as $dropdownKey => $value) { ?>
|
||||
<option value="<?= $dropdownKey; ?>"><?= $value; ?></option>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user