diff --git a/templates/forms/select_input.php b/templates/forms/select_input.php index 52d67768193ecebf1781bee2c50205db37271d7b..64f81400ef51fbc21d167a0a3284d5c4bf867709 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) ?>