blob: 6610b49d28a05644446d04a9a22b103625f57adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<label>
<span class="datafield_title <?= $model->is_required ? 'required' : '' ?>">
<?= htmlReady($model->name) ?>
</span>
<? if ($model->description): ?>
<?= tooltipIcon($model->description) ?>
<? endif ?>
<? if ($entry->isEditable()) : ?>
<?= I18N::input($name, $value, ['required' => (bool) $model->is_required, 'locale_names' => $locale_names]) ?>
<? else : ?>
<input type="text" name="<?= $name ?>[<?= $model->id ?>]"
value="<?= htmlReady($value) ?>" id="<?= $name ?>_<?= $model->id ?>"
disabled>
<? endif ?>
</label>
|