summaryrefslogtreecommitdiff
path: root/app/Template/link/edit.php
blob: e91422bee40c758eb6e9d12381939e3a7ac7399c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="page-header">
    <h2><?= t('Link modification') ?></h2>
</div>

<form action="<?= $this->url->href('link', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">

    <?= $this->form->csrf() ?>
    <?= $this->form->hidden('id', $values) ?>

    <?= $this->form->label(t('Label'), 'label') ?>
    <?= $this->form->text('label', $values, $errors, array('required')) ?>

    <?= $this->form->label(t('Opposite label'), 'opposite_id') ?>
    <?= $this->form->select('opposite_id', $labels, $values, $errors) ?>

    <div class="form-actions">
        <button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
        <?= t('or') ?>
        <?= $this->url->link(t('cancel'), 'link', 'index') ?>
    </div>
</form>