aboutsummaryrefslogtreecommitdiff
path: root/templates/forms/i18n_formatted_input.php
blob: 51d714822e56c775f673c7ab97a1b140737740d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<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 ?>
    </label>
    <i18n-textarea
        type="wysiwyg"
        id="<?= $id ?>"
        name="<?= htmlReady($name) ?>"
        value="<?= htmlReady($value) ?>"
        @allinputs="setInputs"
        @selectlanguage="(language_id) => selectLanguage('<?= htmlReady($this->name) ?>', language_id)"
        <?= $required ? 'required' : '' ?>
    >
    </i18n-textarea>
    </div>