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/tasklink/show.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'app/Template/tasklink/show.php') diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php index d4a3939b..7125b11d 100644 --- a/app/Template/tasklink/show.php +++ b/app/Template/tasklink/show.php @@ -23,7 +23,7 @@ - a( + url->link( $this->e('#'.$link['task_id'].' '.$link['title']), 'task', 'show', @@ -32,7 +32,7 @@ $link['is_active'] ? '' : 'task-link-closed' ) ?> - a( + url->link( $this->e('#'.$link['task_id'].' '.$link['title']), 'task', 'readonly', @@ -56,7 +56,7 @@ - a($this->e($link['task_assignee_name'] ?: $link['task_assignee_username']), 'user', 'show', array('user_id' => $link['task_assignee_id'])) ?> + url->link($this->e($link['task_assignee_name'] ?: $link['task_assignee_username']), 'user', 'show', array('user_id' => $link['task_assignee_id'])) ?> e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?> @@ -65,8 +65,8 @@ @@ -76,15 +76,15 @@ -
+ - formCsrf() ?> - formHidden('task_id', array('task_id' => $task['id'])) ?> - formHidden('opposite_task_id', array()) ?> + form->csrf() ?> + form->hidden('task_id', array('task_id' => $task['id'])) ?> + form->hidden('opposite_task_id', array()) ?> - formSelect('link_id', $link_label_list, array(), array()) ?> + form->select('link_id', $link_label_list, array(), array()) ?> - formText( + form->text( 'title', array(), array(), @@ -93,7 +93,7 @@ 'placeholder="'.t('Start to type task title...').'"', 'title="'.t('Start to type task title...').'"', 'data-dst-field="opposite_task_id"', - 'data-search-url="'.$this->u('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', + 'data-search-url="'.$this->url->href('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"', ), 'task-autocomplete') ?> -- cgit v1.2.3