aboutsummaryrefslogtreecommitdiff
path: root/templates/datafields/date.php
blob: 579cf69742f52ee6e3450a2b3478654c1a991674 (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 ?>
    <div style="white-space: nowrap;">
        <input type="text" name="<?= $name ?>[<?= $model->id ?>]"
            class="no-hint"
            value="<? if ($value) echo date('d.m.Y ', $timestamp); ?>"
            <?= !$entry->isEditable() ? "disabled" : "" ?>
            title="<?= _('Datum') ?>"
            style="width: 8em;"
            data-date-picker
            <? if ($model->is_required) echo 'required'; ?>>
    </div>
</label>