summaryrefslogtreecommitdiff
path: root/app/Template/link/edit.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
commiteeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch)
tree511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Template/link/edit.php
parent65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff)
Helpers refactoring
Diffstat (limited to 'app/Template/link/edit.php')
-rw-r--r--app/Template/link/edit.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Template/link/edit.php b/app/Template/link/edit.php
index d9ce280c..516de464 100644
--- a/app/Template/link/edit.php
+++ b/app/Template/link/edit.php
@@ -2,20 +2,20 @@
<h2><?= t('Link modification') ?></h2>
</div>
-<form action="<?= $this->u('link', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">
+<form action="<?= $this->url->href('link', 'update', array('link_id' => $link['id'])) ?>" method="post" autocomplete="off">
- <?= $this->formCsrf() ?>
- <?= $this->formHidden('id', $values) ?>
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('id', $values) ?>
- <?= $this->formLabel(t('Label'), 'label') ?>
- <?= $this->formText('label', $values, $errors, array('required')) ?>
+ <?= $this->form->label(t('Label'), 'label') ?>
+ <?= $this->form->text('label', $values, $errors, array('required')) ?>
- <?= $this->formLabel(t('Opposite label'), 'opposite_id') ?>
- <?= $this->formSelect('opposite_id', $labels, $values, $errors) ?>
+ <?= $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->a(t('cancel'), 'link', 'index') ?>
+ <?= $this->url->link(t('cancel'), 'link', 'index') ?>
</div>
</form> \ No newline at end of file