aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/edittabs.php
blob: cc7739f69509db923183651df83a324e09670043 (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
<div class="tabs">

<?php foreach ($tablist as $key => $value) { ?>
<div class="tab">

    <input name="interface" type="radio" value="<?= $key ?>" id="tab<?= $key ?>" class="checkboxtab" <?= $key == $opentab ? 'checked' : '' ?> >

    <label for="tab<?= $key ?>" <?= empty($templates[$key]) ? '' : 'title="template : '.$templates[$key].'" ' ?> class="<?= empty($templates[$key]) ? '' : 'template' ?> <?= empty($value) ? '' : 'edited' ?>"><?= $key ?> </label>

    <div class="content">

        <textarea name="<?= $key ?>"
                  id="edit<?= $key ?>"
                  autocomplete="off"
                  autocorrect="off"
                  autocapitalize="off"
                  spellcheck="false"
                  <?= $key == $opentab ? 'autofocus' : '' ?>
        ><?= $this->e($value) ?></textarea>
    </div>
</div>
<?php } ?>

</div>