aboutsummaryrefslogtreecommitdiff
path: root/templates/datafields/textareai18n.php
blob: b3fa27e5fb0c329fc21d8c3dd7c89fa8f1707037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<label>
    <span class="datafield_title <?= $model->is_required ? 'required' : '' ?>">
        <?= htmlReady($model->name) ?>
    </span>

    <? if ($model->description): ?>
        <?= tooltipIcon($model->description) ?>
    <? endif ?>

    <? if ($entry->isEditable()) : ?>
        <?= I18N::textarea($name, $value, ['required' => (bool) $model->is_required, 'locale_names' => $locale_names]) ?>
    <? else : ?>
        <textarea name="<?= $name ?>[<?= $model->id ?>]"
              disabled
              id="<?= $name ?>_<?= $model->id ?>"
              rows="6"
    ><?= htmlReady($value) ?></textarea>
    <? endif ?>
</label>