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

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

    <input type="text" name="<?= $name ?>[<?= $model->id ?>]"
           value="<?= htmlReady($value) ?>" id="<?= $name ?>_<?= $model->id ?>"
           <?= !$entry->isEditable() ? "disabled" : "" ?>
           <? if ($model->is_required) echo 'required'; ?>>
</label>