Improve category section

This commit is contained in:
Frederic Guillot
2017-02-18 14:01:54 -05:00
parent 49c8e5c1be
commit c7b7c060a6
29 changed files with 132 additions and 109 deletions

View File

@@ -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>