From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Template/subtask/create.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/Template/subtask/create.php') diff --git a/app/Template/subtask/create.php b/app/Template/subtask/create.php index 8c5aae11..82e378f5 100644 --- a/app/Template/subtask/create.php +++ b/app/Template/subtask/create.php @@ -2,26 +2,26 @@

-
+ - formCsrf() ?> + form->csrf() ?> - formHidden('task_id', $values) ?> + form->hidden('task_id', $values) ?> - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('required', 'autofocus', 'maxlength="255"')) ?>
+ form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('required', 'autofocus', 'maxlength="255"')) ?>
- formLabel(t('Assignee'), 'user_id') ?> - formSelect('user_id', $users_list, $values, $errors) ?>
+ form->label(t('Assignee'), 'user_id') ?> + form->select('user_id', $users_list, $values, $errors) ?>
- formLabel(t('Original estimate'), 'time_estimated') ?> - formNumeric('time_estimated', $values, $errors) ?>
+ form->label(t('Original estimate'), 'time_estimated') ?> + form->numeric('time_estimated', $values, $errors) ?>
- formCheckbox('another_subtask', t('Create another sub-task'), 1, isset($values['another_subtask']) && $values['another_subtask'] == 1) ?> + form->checkbox('another_subtask', t('Create another sub-task'), 1, isset($values['another_subtask']) && $values['another_subtask'] == 1) ?>
- a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
-- cgit v1.2.3