diff options
Diffstat (limited to 'app/Template/link/edit.php')
-rw-r--r-- | app/Template/link/edit.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Template/link/edit.php b/app/Template/link/edit.php new file mode 100644 index 00000000..516de464 --- /dev/null +++ b/app/Template/link/edit.php @@ -0,0 +1,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"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + <?= t('or') ?> + <?= $this->url->link(t('cancel'), 'link', 'index') ?> + </div> +</form>
\ No newline at end of file |