diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-08-31 09:09:33 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2023-08-31 09:09:33 +0000 |
| commit | 4d7526194dbe2c648c4b4b409c99dd7ed7332f24 (patch) | |
| tree | a288098e1bb8119fd0db9c008d63b58c398ccbd4 /templates/forms | |
| parent | ff198de85cf50c71e9b278fbf9d9c83d1ef35191 (diff) | |
Resolve "SelectInput in dem Formularbaukasten tut nicht"
Closes #3116
Merge request studip/studip!2098
Diffstat (limited to 'templates/forms')
| -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) ?> |
