From 3833c12ccce59bcc49c4cfa892401973558f604d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 2 Jan 2017 17:01:27 -0500 Subject: Refactoring/rewrite of modal boxes handling --- app/Template/subtask/edit.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'app/Template/subtask/edit.php') diff --git a/app/Template/subtask/edit.php b/app/Template/subtask/edit.php index 07419f79..b34b93a8 100644 --- a/app/Template/subtask/edit.php +++ b/app/Template/subtask/edit.php @@ -2,8 +2,7 @@

-
- + form->csrf() ?> form->hidden('id', $values) ?> form->hidden('task_id', $values) ?> @@ -12,10 +11,6 @@ subtask->selectTimeEstimated($values, $errors) ?> subtask->selectTimeSpent($values, $errors) ?> hook->render('template:subtask:form:edit', array('values' => $values, 'errors' => $errors)) ?> - -
- - - url->link(t('cancel'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> -
+ + modal->submitButtons() ?>
-- cgit v1.2.3