aboutsummaryrefslogtreecommitdiff
path: root/templates/datafields/textmarkupi18n.php
blob: 11f765e045e4ddb1c9fcbf333925c72a638fe1bb (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, ['class' => 'wysiwyg', 'required' => (bool) $model->is_required, 'locale_names' => $locale_names]) ?>
    <? else : ?>
        <textarea name="<?= $name ?>[<?= $model->id ?>]"
                  id="<?= $name ?>_<?= $model->id ?>"
                  class="wysiwyg"
                  disabled
        ><?= wysiwygReady($value) ?></textarea>
    <? endif ?>
</label>