From 34d7450d3c13342715e90ec21bceaa13e1baa876 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 28 Dec 2014 11:28:50 -0500 Subject: Template helpers refactoring --- app/Template/subtask/show.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'app/Template/subtask/show.php') diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index 4d341f26..d0b3a606 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -17,34 +17,34 @@ - + e($subtask['title']) ?> - $subtask))) . Helper\escape($subtask['status_name']), + a(trim($this->render('subtask/icons', array('subtask' => $subtask))) . $this->e($subtask['status_name']), 'subtask', 'toggleStatus', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?> - $subtask)) . Helper\escape($subtask['status_name']) ?> + render('subtask/icons', array('subtask' => $subtask)) . $this->e($subtask['status_name']) ?> - + e($subtask['name'] ?: $subtask['username']) ?> - + e($subtask['time_spent']).'h' ?> - + e($subtask['time_estimated']).'h' ?> - $task['id'], 'subtask_id' => $subtask['id'])) ?> + a(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?> - $task['id'], 'subtask_id' => $subtask['id'])) ?> + a(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'subtask_id' => $subtask['id'])) ?> @@ -52,10 +52,10 @@ -
- - $task['id'])) ?> - + + formCsrf() ?> + formHidden('task_id', array('task_id' => $task['id'])) ?> + formText('title', array(), array(), array('required', 'placeholder="'.t('Type here to create a new sub-task').'"')) ?>
-- cgit v1.2.3