diff options
Diffstat (limited to 'templates/forms/select_input.php')
| -rw-r--r-- | templates/forms/select_input.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/forms/select_input.php b/templates/forms/select_input.php index 52d6776..64f8140 100644 --- a/templates/forms/select_input.php +++ b/templates/forms/select_input.php @@ -7,7 +7,7 @@ <span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span> <? endif ?> </label> - <select class="select2" name="<?= htmlReady($this->name) ?>" <?= ($this->required ? 'required aria-required="true"' : '') ?> id="<?= $id ?>" <?= $attributes ?>> + <select class="select2" v-model="<?= htmlReady($this->name) ?>" <?= ($this->required ? 'required aria-required="true"' : '') ?> id="<?= $id ?>" <?= $attributes ?>> <? foreach ($options as $key => $option) : ?> <option value="<?= htmlReady($key) ?>"<?= ($key == $value ? " selected" : "") ?>> <?= htmlReady($option) ?> |
