aboutsummaryrefslogtreecommitdiff
path: root/templates/forms/color_input.php
blob: 4cbb7f827a6582018571d50a49c0d649529841b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="formpart" data-form-input-for="<?= htmlReady($name) ?>">
    <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 ?>
        <input type="color"
               v-model="<?= htmlReady($this->name) ?>"
               name="<?= htmlReady($this->name) ?>"
               value="<?= htmlReady($this->value) ?>"
               id="<?= $id ?>" <?= ($this->required ? 'required aria-required="true"' : '') ?>
            <?= $attributes ?>>
    </label>

</div>