aboutsummaryrefslogtreecommitdiff
path: root/templates/forms/checkbox_input.php
blob: b689d696f8e32b50b91cc8f6f78b531b3f303b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<input type="hidden" name="<?= htmlReady($name) ?>" value="0">
    <label<?= ($required ? ' class="studiprequired"' : '') ?>>
    <input type="checkbox"
           v-model="<?= htmlReady($this->name) ?>"
           name="<?= htmlReady($this->name) ?>"
           value="1"
           id="<?= $id ?>"
           <?= ($this->required ? 'required aria-required="true"' : '') ?>
           <?= $attributes ?>>
    <span class="textlabel">
        <?= htmlReady($this->title) ?>
    </span>
    <? if ($this->required) : ?>
        <span class="asterisk" title="<?= _('Dies ist ein Pflichtfeld') ?>" aria-hidden="true">*</span>
    <? endif ?>
</label>