summaryrefslogtreecommitdiff
path: root/app/Template/category/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/category/edit.php')
-rw-r--r--app/Template/category/edit.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php
index 0d4b0f6f..7d40fe65 100644
--- a/app/Template/category/edit.php
+++ b/app/Template/category/edit.php
@@ -2,21 +2,21 @@
<h2><?= t('Category modification for the project "%s"', $project['name']) ?></h2>
</div>
-<form method="post" action="<?= $this->u('category', 'update', array('project_id' => $project['id'], 'category_id' => $values['id'])) ?>" autocomplete="off">
+<form method="post" action="<?= $this->url->href('category', 'update', array('project_id' => $project['id'], 'category_id' => $values['id'])) ?>" autocomplete="off">
- <?= $this->formCsrf() ?>
+ <?= $this->form->csrf() ?>
- <?= $this->formHidden('id', $values) ?>
- <?= $this->formHidden('project_id', $values) ?>
+ <?= $this->form->hidden('id', $values) ?>
+ <?= $this->form->hidden('project_id', $values) ?>
- <?= $this->formLabel(t('Category Name'), 'name') ?>
- <?= $this->formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
+ <?= $this->form->label(t('Category Name'), 'name') ?>
+ <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
- <?= $this->formLabel(t('Description'), 'description') ?>
+ <?= $this->form->label(t('Description'), 'description') ?>
<div class="form-tabs">
<div class="write-area">
- <?= $this->formTextarea('description', $values, $errors) ?>
+ <?= $this->form->textarea('description', $values, $errors) ?>
</div>
<div class="preview-area">
<div class="markdown"></div>