aboutsummaryrefslogtreecommitdiff
path: root/templates/datafields/phone.php
blob: 384b86bd43fd8ed4b3c6d2c230deff36007d5ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<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; display: flex; justify-content: flex-start; align-items: baseline;">
        + <input type="tel" name="<?= $name ?>[<?= $model->id ?>][]"
                value="<?= htmlReady($values[0]) ?>" maxlength="3" size="2"
                <?= !$entry->isEditable() ? "disabled" : "" ?>
                title="<?= _('Landesvorwahl ohne führende Nullen') ?>"
                placeholder="49" class="no-hint" style="width: 3em; margin-left:5px"
                <? if ($model->is_required) echo 'required'; ?>>

        <input type="tel" name="<?= $name ?>[<?= $model->id ?>][]"
                value="<?= htmlReady($values[1]) ?>" maxlength="6" size="5"
                <?= !$entry->isEditable() ? "disabled" : "" ?>
                title="<?= _('Ortsvorwahl ohne führende Null') ?>"
                placeholder="541" class="no-hint" style="margin-left:5px"
                <? if ($model->is_required) echo 'required'; ?>>

        <input type="tel" name="<?= $name ?>[<?= $model->id ?>][]"
                value="<?= htmlReady($values[2]) ?>" maxlength="10" size="9"
                <?= !$entry->isEditable() ? "disabled" : "" ?>
                title="<?= _('Rufnummer') ?>"
                placeholder="969-0000" class="no-hint" style="margin-left:5px"
                <? if ($model->is_required) echo 'required'; ?>>
    </div>
</label>