summaryrefslogtreecommitdiff
path: root/app/Template/category/create.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-18 14:01:54 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-18 14:01:54 -0500
commitc7b7c060a6f0c6866e05199e828053e6690e9413 (patch)
tree347ba4584020c79e87cbb0f7bec9b0836049c1cb /app/Template/category/create.php
parent49c8e5c1be15b9732023703473bb7e15864770f6 (diff)
Improve category section
Diffstat (limited to 'app/Template/category/create.php')
-rw-r--r--app/Template/category/create.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Template/category/create.php b/app/Template/category/create.php
new file mode 100644
index 00000000..b12ff7fa
--- /dev/null
+++ b/app/Template/category/create.php
@@ -0,0 +1,12 @@
+<div class="page-header">
+ <h2><?= t('Add a new category') ?></h2>
+</div>
+<form method="post" action="<?= $this->url->href('CategoryController', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off">
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('project_id', $values) ?>
+
+ <?= $this->form->label(t('Category Name'), 'name') ?>
+ <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
+
+ <?= $this->modal->submitButtons() ?>
+</form>