Skip to content
Snippets Groups Projects
Commit 4d752619 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "SelectInput in dem Formularbaukasten tut nicht"

Closes #3116

Merge request studip/studip!2098
parent ff198de8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span> <span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span>
<? endif ?> <? endif ?>
</label> </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) : ?> <? foreach ($options as $key => $option) : ?>
<option value="<?= htmlReady($key) ?>"<?= ($key == $value ? " selected" : "") ?>> <option value="<?= htmlReady($key) ?>"<?= ($key == $value ? " selected" : "") ?>>
<?= htmlReady($option) ?> <?= htmlReady($option) ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment