Select Git revision
select_input.php
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
-
Rasmus Fuhse authored
Closes #3116 Merge request studip/studip!2098
Rasmus Fuhse authoredCloses #3116 Merge request studip/studip!2098
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
select_input.php 785 B
<div class="formpart">
<label<?= ($this->required ? ' class="studiprequired"' : '') ?> for="<?= $id ?>">
<span class="textlabel">
<?= htmlReady($this->title) ?>
</span>
<? if ($this->required) : ?>
<span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span>
<? endif ?>
</label>
<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) ?>
</option>
<? endforeach ?>
</select>
</div>