diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-24 16:02:25 -0400 |
commit | eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch) | |
tree | 511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Template/config/project.php | |
parent | 65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff) |
Helpers refactoring
Diffstat (limited to 'app/Template/config/project.php')
-rw-r--r-- | app/Template/config/project.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Template/config/project.php b/app/Template/config/project.php index b559d632..90dd9c8e 100644 --- a/app/Template/config/project.php +++ b/app/Template/config/project.php @@ -2,20 +2,20 @@ <h2><?= t('Project settings') ?></h2> </div> <section> -<form method="post" action="<?= $this->u('config', 'project') ?>" autocomplete="off"> +<form method="post" action="<?= $this->url->href('config', 'project') ?>" autocomplete="off"> - <?= $this->formCsrf() ?> + <?= $this->form->csrf() ?> - <?= $this->formLabel(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> - <?= $this->formText('board_columns', $values, $errors) ?><br/> + <?= $this->form->label(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> + <?= $this->form->text('board_columns', $values, $errors) ?><br/> <p class="form-help"><?= t('Default values are "%s"', $default_columns) ?></p> - <?= $this->formLabel(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> - <?= $this->formText('project_categories', $values, $errors) ?><br/> + <?= $this->form->label(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> + <?= $this->form->text('project_categories', $values, $errors) ?><br/> <p class="form-help"><?= t('Example: "Bug, Feature Request, Improvement"') ?></p> - <?= $this->formCheckbox('subtask_restriction', t('Allow only one subtask in progress at the same time for a user'), 1, $values['subtask_restriction'] == 1) ?> - <?= $this->formCheckbox('subtask_time_tracking', t('Enable time tracking for subtasks'), 1, $values['subtask_time_tracking'] == 1) ?> + <?= $this->form->checkbox('subtask_restriction', t('Allow only one subtask in progress at the same time for a user'), 1, $values['subtask_restriction'] == 1) ?> + <?= $this->form->checkbox('subtask_time_tracking', t('Enable time tracking for subtasks'), 1, $values['subtask_time_tracking'] == 1) ?> <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> |