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/action/event.php | 14 +++--- app/Template/action/index.php | 40 +++++++-------- app/Template/action/params.php | 48 +++++++++--------- app/Template/action/remove.php | 6 +-- app/Template/analytic/burndown.php | 14 +++--- app/Template/analytic/cfd.php | 14 +++--- app/Template/analytic/layout.php | 6 +-- app/Template/analytic/sidebar.php | 8 +-- app/Template/analytic/tasks.php | 2 +- app/Template/analytic/users.php | 2 +- app/Template/app/dashboard.php | 18 +++---- app/Template/app/projects.php | 12 ++--- app/Template/app/subtasks.php | 8 +-- app/Template/app/tasks.php | 6 +-- app/Template/auth/index.php | 18 +++---- app/Template/board/assignee.php | 14 +++--- app/Template/board/category.php | 14 +++--- app/Template/board/comments.php | 2 +- app/Template/board/description.php | 2 +- app/Template/board/files.php | 8 +-- app/Template/board/filters.php | 22 ++++---- app/Template/board/show.php | 6 +-- app/Template/board/subtasks.php | 4 +- app/Template/board/swimlane.php | 4 +- app/Template/board/task_footer.php | 22 ++++---- app/Template/board/task_menu.php | 18 +++---- app/Template/board/task_private.php | 14 +++--- app/Template/board/task_public.php | 4 +- app/Template/board/tasklinks.php | 2 +- app/Template/budget/breakdown.php | 10 ++-- app/Template/budget/create.php | 26 +++++----- app/Template/budget/index.php | 8 +-- app/Template/budget/remove.php | 4 +- app/Template/calendar/show.php | 12 ++--- app/Template/calendar/sidebar.php | 12 ++--- app/Template/category/edit.php | 16 +++--- app/Template/category/index.php | 14 +++--- app/Template/category/remove.php | 4 +- app/Template/column/edit.php | 20 ++++---- app/Template/column/index.php | 28 +++++------ app/Template/column/remove.php | 4 +- app/Template/comment/create.php | 14 +++--- app/Template/comment/edit.php | 14 +++--- app/Template/comment/remove.php | 4 +- app/Template/comment/show.php | 12 ++--- app/Template/config/about.php | 6 +-- app/Template/config/api.php | 4 +- app/Template/config/application.php | 24 ++++----- app/Template/config/board.php | 16 +++--- app/Template/config/calendar.php | 12 ++--- app/Template/config/integrations.php | 58 +++++++++++----------- app/Template/config/project.php | 16 +++--- app/Template/config/sidebar.php | 20 ++++---- app/Template/config/webhook.php | 12 ++--- app/Template/currency/index.php | 20 ++++---- app/Template/event/comment_create.php | 6 +-- app/Template/event/comment_update.php | 4 +- app/Template/event/events.php | 6 +-- app/Template/event/subtask_create.php | 4 +- app/Template/event/subtask_update.php | 4 +- app/Template/event/task_assignee_change.php | 6 +-- app/Template/event/task_close.php | 4 +- app/Template/event/task_create.php | 4 +- app/Template/event/task_move_column.php | 4 +- app/Template/event/task_move_position.php | 4 +- app/Template/event/task_open.php | 4 +- app/Template/event/task_update.php | 4 +- app/Template/export/subtasks.php | 14 +++--- app/Template/export/summary.php | 14 +++--- app/Template/export/tasks.php | 14 +++--- app/Template/export/transitions.php | 14 +++--- app/Template/file/new.php | 8 +-- app/Template/file/open.php | 2 +- app/Template/file/remove.php | 4 +- app/Template/file/screenshot.php | 6 +-- app/Template/file/show.php | 18 +++---- app/Template/hourlyrate/index.php | 20 ++++---- app/Template/hourlyrate/remove.php | 4 +- app/Template/layout.php | 34 ++++++------- app/Template/link/create.php | 12 ++--- app/Template/link/edit.php | 16 +++--- app/Template/link/index.php | 4 +- app/Template/link/remove.php | 4 +- app/Template/notification/comment_creation.php | 2 +- app/Template/notification/comment_update.php | 2 +- app/Template/notification/footer.php | 2 +- app/Template/notification/task_assignee_change.php | 2 +- app/Template/notification/task_creation.php | 2 +- app/Template/notification/task_due.php | 2 +- app/Template/notification/task_update.php | 2 +- app/Template/project/activity.php | 10 ++-- app/Template/project/disable.php | 4 +- app/Template/project/duplicate.php | 14 +++--- app/Template/project/edit.php | 22 ++++---- app/Template/project/enable.php | 4 +- app/Template/project/feed.php | 10 ++-- app/Template/project/index.php | 14 +++--- app/Template/project/integrations.php | 56 ++++++++++----------- app/Template/project/layout.php | 4 +- app/Template/project/new.php | 14 +++--- app/Template/project/remove.php | 4 +- app/Template/project/search.php | 16 +++--- app/Template/project/share.php | 10 ++-- app/Template/project/show.php | 12 ++--- app/Template/project/sidebar.php | 44 ++++++++-------- app/Template/project/tasks.php | 8 +-- app/Template/project/users.php | 24 ++++----- app/Template/subtask/create.php | 22 ++++---- app/Template/subtask/edit.php | 26 +++++----- app/Template/subtask/remove.php | 4 +- app/Template/subtask/restriction_change_status.php | 10 ++-- app/Template/subtask/show.php | 20 ++++---- app/Template/swimlane/edit.php | 12 ++--- app/Template/swimlane/index.php | 22 ++++---- app/Template/swimlane/remove.php | 4 +- app/Template/swimlane/table.php | 12 ++--- app/Template/task/close.php | 4 +- app/Template/task/details.php | 2 +- app/Template/task/duplicate.php | 4 +- app/Template/task/duplicate_project.php | 12 ++--- app/Template/task/edit.php | 40 +++++++-------- app/Template/task/edit_description.php | 12 ++--- app/Template/task/edit_recurrence.php | 32 ++++++------ app/Template/task/layout.php | 4 +- app/Template/task/move_project.php | 12 ++--- app/Template/task/new.php | 52 +++++++++---------- app/Template/task/open.php | 4 +- app/Template/task/public.php | 2 +- app/Template/task/recurring_info.php | 4 +- app/Template/task/remove.php | 4 +- app/Template/task/show.php | 6 +-- app/Template/task/show_description.php | 4 +- app/Template/task/sidebar.php | 38 +++++++------- app/Template/task/table.php | 8 +-- app/Template/task/time.php | 18 +++---- app/Template/task/time_tracking.php | 2 +- app/Template/task/transitions.php | 2 +- app/Template/tasklink/create.php | 22 ++++---- app/Template/tasklink/edit.php | 22 ++++---- app/Template/tasklink/remove.php | 4 +- app/Template/tasklink/show.php | 24 ++++----- app/Template/timetable/index.php | 22 ++++---- app/Template/timetable_day/index.php | 16 +++--- app/Template/timetable_day/remove.php | 4 +- app/Template/timetable_extra/index.php | 26 +++++----- app/Template/timetable_extra/remove.php | 4 +- app/Template/timetable_off/index.php | 26 +++++----- app/Template/timetable_off/remove.php | 4 +- app/Template/timetable_week/index.php | 22 ++++---- app/Template/timetable_week/remove.php | 4 +- app/Template/twofactor/check.php | 8 +-- app/Template/twofactor/disable.php | 4 +- app/Template/twofactor/index.php | 14 +++--- app/Template/user/calendar.php | 4 +- app/Template/user/edit.php | 40 +++++++-------- app/Template/user/external.php | 12 ++--- app/Template/user/index.php | 8 +-- app/Template/user/last.php | 2 +- app/Template/user/layout.php | 6 +-- app/Template/user/new.php | 42 ++++++++-------- app/Template/user/notifications.php | 10 ++-- app/Template/user/password.php | 20 ++++---- app/Template/user/remove.php | 4 +- app/Template/user/sessions.php | 4 +- app/Template/user/share.php | 6 +-- app/Template/user/show.php | 6 +-- app/Template/user/sidebar.php | 46 ++++++++--------- app/Template/user/timesheet.php | 4 +- 168 files changed, 1051 insertions(+), 1055 deletions(-) (limited to 'app/Template') diff --git a/app/Template/action/event.php b/app/Template/action/event.php index 67a65c19..7f968a97 100644 --- a/app/Template/action/event.php +++ b/app/Template/action/event.php @@ -3,15 +3,15 @@

-
+ - formCsrf() ?> + form->csrf() ?> - formHidden('project_id', $values) ?> - formHidden('action_name', $values) ?> + form->hidden('project_id', $values) ?> + form->hidden('action_name', $values) ?> - formLabel(t('Event'), 'event_name') ?> - formSelect('event_name', $events, $values) ?>
+ form->label(t('Event'), 'event_name') ?> + form->select('event_name', $events, $values) ?>
@@ -20,6 +20,6 @@
- a(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?>
\ No newline at end of file diff --git a/app/Template/action/index.php b/app/Template/action/index.php index e388fbc9..9e98554c 100644 --- a/app/Template/action/index.php +++ b/app/Template/action/index.php @@ -15,25 +15,25 @@ - inList($action['event_name'], $available_events) ?> - inList($action['action_name'], $available_actions) ?> + text->in($action['event_name'], $available_events) ?> + text->in($action['action_name'], $available_actions) ?>
  • - inList($param['name'], $available_params) ?> = + text->in($param['name'], $available_params) ?> = - contains($param['name'], 'column_id')): ?> - inList($param['value'], $columns_list) ?> - contains($param['name'], 'user_id')): ?> - inList($param['value'], $users_list) ?> - contains($param['name'], 'project_id')): ?> - inList($param['value'], $projects_list) ?> - contains($param['name'], 'color_id')): ?> - inList($param['value'], $colors_list) ?> - contains($param['name'], 'category_id')): ?> - inList($param['value'], $categories_list) ?> - contains($param['name'], 'label')): ?> + text->contains($param['name'], 'column_id')): ?> + text->in($param['value'], $columns_list) ?> + text->contains($param['name'], 'user_id')): ?> + text->in($param['value'], $users_list) ?> + text->contains($param['name'], 'project_id')): ?> + text->in($param['value'], $projects_list) ?> + text->contains($param['name'], 'color_id')): ?> + text->in($param['value'], $colors_list) ?> + text->contains($param['name'], 'category_id')): ?> + text->in($param['value'], $categories_list) ?> + text->contains($param['name'], 'label')): ?> e($param['value']) ?> @@ -42,7 +42,7 @@
- a(t('Remove'), 'action', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id'])) ?> + url->link(t('Remove'), 'action', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id'])) ?> @@ -51,12 +51,12 @@

-
- formCsrf() ?> - formHidden('project_id', $values) ?> + + form->csrf() ?> + form->hidden('project_id', $values) ?> - formLabel(t('Action'), 'action_name') ?> - formSelect('action_name', $available_actions, $values) ?>
+ form->label(t('Action'), 'action_name') ?> + form->select('action_name', $available_actions, $values) ?>
diff --git a/app/Template/action/params.php b/app/Template/action/params.php index 3a5ecb86..685cbcc5 100644 --- a/app/Template/action/params.php +++ b/app/Template/action/params.php @@ -3,34 +3,34 @@

- + - formCsrf() ?> + form->csrf() ?> - formHidden('project_id', $values) ?> - formHidden('event_name', $values) ?> - formHidden('action_name', $values) ?> + form->hidden('project_id', $values) ?> + form->hidden('event_name', $values) ?> + form->hidden('action_name', $values) ?> $param_desc): ?> - contains($param_name, 'column_id')): ?> - formLabel($param_desc, $param_name) ?> - formSelect('params['.$param_name.']', $columns_list, $values) ?>
- contains($param_name, 'user_id')): ?> - formLabel($param_desc, $param_name) ?> - formSelect('params['.$param_name.']', $users_list, $values) ?>
- contains($param_name, 'project_id')): ?> - formLabel($param_desc, $param_name) ?> - formSelect('params['.$param_name.']', $projects_list, $values) ?>
- contains($param_name, 'color_id')): ?> - formLabel($param_desc, $param_name) ?> - formSelect('params['.$param_name.']', $colors_list, $values) ?>
- contains($param_name, 'category_id')): ?> - formLabel($param_desc, $param_name) ?> - formSelect('params['.$param_name.']', $categories_list, $values) ?>
- contains($param_name, 'label')): ?> - formLabel($param_desc, $param_name) ?> - formText('params['.$param_name.']', $values) ?> + text->contains($param_name, 'column_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $columns_list, $values) ?>
+ text->contains($param_name, 'user_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $users_list, $values) ?>
+ text->contains($param_name, 'project_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $projects_list, $values) ?>
+ text->contains($param_name, 'color_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $colors_list, $values) ?>
+ text->contains($param_name, 'category_id')): ?> + form->label($param_desc, $param_name) ?> + form->select('params['.$param_name.']', $categories_list, $values) ?>
+ text->contains($param_name, 'label')): ?> + form->label($param_desc, $param_name) ?> + form->text('params['.$param_name.']', $values) ?> @@ -38,6 +38,6 @@
- a(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?>
\ No newline at end of file diff --git a/app/Template/action/remove.php b/app/Template/action/remove.php index 672c08a7..c8d4dfe4 100644 --- a/app/Template/action/remove.php +++ b/app/Template/action/remove.php @@ -4,12 +4,12 @@

- inList($action['event_name'], $available_events).'/'.$this->inList($action['action_name'], $available_actions)) ?> + text->in($action['event_name'], $available_events).'/'.$this->text->in($action['action_name'], $available_actions)) ?>

- a(t('Yes'), 'action', 'remove', array('project_id' => $project['id'], 'action_id' => $action['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'action', 'remove', array('project_id' => $project['id'], 'action_id' => $action['id']), true, 'btn btn-red') ?> - a(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?>
\ No newline at end of file diff --git a/app/Template/analytic/burndown.php b/app/Template/analytic/burndown.php index 5ebe1032..839573be 100644 --- a/app/Template/analytic/burndown.php +++ b/app/Template/analytic/burndown.php @@ -6,24 +6,24 @@

-
+

-
+ - formCsrf() ?> + form->csrf() ?>
- formLabel(t('Start Date'), 'from') ?> - formText('from', $values, array(), array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, array(), array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
diff --git a/app/Template/analytic/cfd.php b/app/Template/analytic/cfd.php index 58115e77..26696b31 100644 --- a/app/Template/analytic/cfd.php +++ b/app/Template/analytic/cfd.php @@ -6,24 +6,24 @@

-
+

- + - formCsrf() ?> + form->csrf() ?>
- formLabel(t('Start Date'), 'from') ?> - formText('from', $values, array(), array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
- formLabel(t('End Date'), 'to') ?> - formText('to', $values, array(), array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, array(), array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
diff --git a/app/Template/analytic/layout.php b/app/Template/analytic/layout.php index c6e3a962..c3a36bdf 100644 --- a/app/Template/analytic/layout.php +++ b/app/Template/analytic/layout.php @@ -1,10 +1,10 @@ -js('assets/js/vendor/d3.v3.4.8.min.js') ?> -js('assets/js/vendor/dimple.v2.1.2.min.js') ?> +asset->js('assets/js/vendor/d3.v3.4.8.min.js') ?> +asset->js('assets/js/vendor/dimple.v2.1.2.min.js') ?>
\ No newline at end of file diff --git a/app/Template/analytic/tasks.php b/app/Template/analytic/tasks.php index b1a08a23..faa4bacc 100644 --- a/app/Template/analytic/tasks.php +++ b/app/Template/analytic/tasks.php @@ -7,7 +7,7 @@
-
+
diff --git a/app/Template/analytic/users.php b/app/Template/analytic/users.php index 97328c02..982ef206 100644 --- a/app/Template/analytic/users.php +++ b/app/Template/analytic/users.php @@ -7,7 +7,7 @@
-
+
diff --git a/app/Template/app/dashboard.php b/app/Template/app/dashboard.php index a832345b..faf49ef5 100644 --- a/app/Template/app/dashboard.php +++ b/app/Template/app/dashboard.php @@ -1,14 +1,14 @@
@@ -18,11 +18,11 @@ diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php index 147295b2..0617fb47 100644 --- a/app/Template/board/filters.php +++ b/app/Template/board/filters.php @@ -23,37 +23,37 @@
  • - a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?> + url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
  • - a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
  • - a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?> + url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
  • - a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
  • - a(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?> + url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • - acl->isManagerActionAllowed($project['id'])): ?> + user->isManager($project['id'])): ?>
  • - a(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
  • - a(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?>
  • - a(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?>
  • @@ -61,10 +61,10 @@
  • - formSelect('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"', 'data-notfound="'.t('No results match:').'"'), 'apply-filters chosen-select') ?> + form->select('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"', 'data-notfound="'.t('No results match:').'"'), 'apply-filters chosen-select') ?>
  • - formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"', 'data-notfound="'.t('No results match:').'"'), 'apply-filters chosen-select') ?> + form->select('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"', 'data-notfound="'.t('No results match:').'"'), 'apply-filters chosen-select') ?>
  • getCollection() as $record): ?> - - - + + + diff --git a/app/Template/budget/create.php b/app/Template/budget/create.php index 5b2976f4..d64bbc48 100644 --- a/app/Template/budget/create.php +++ b/app/Template/budget/create.php @@ -1,8 +1,8 @@ @@ -20,7 +20,7 @@ @@ -29,21 +29,21 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Amount'), 'amount') ?> - formText('amount', $values, $errors, array('required'), 'form-numeric') ?> + form->label(t('Amount'), 'amount') ?> + form->text('amount', $values, $errors, array('required'), 'form-numeric') ?> - formLabel(t('Date'), 'date') ?> - formText('date', $values, $errors, array('required'), 'form-date') ?> + form->label(t('Date'), 'date') ?> + form->text('date', $values, $errors, array('required'), 'form-date') ?> - formLabel(t('Comment'), 'comment') ?> - formText('comment', $values, $errors) ?> + form->label(t('Comment'), 'comment') ?> + form->text('comment', $values, $errors) ?>
    diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php index 01525829..d9fefc67 100644 --- a/app/Template/budget/index.php +++ b/app/Template/budget/index.php @@ -1,11 +1,11 @@ -js('assets/js/vendor/d3.v3.4.8.min.js') ?> -js('assets/js/vendor/dimple.v2.1.2.min.js') ?> +asset->js('assets/js/vendor/d3.v3.4.8.min.js') ?> +asset->js('assets/js/vendor/dimple.v2.1.2.min.js') ?> diff --git a/app/Template/budget/remove.php b/app/Template/budget/remove.php index 97f9c3dc..a5b906a1 100644 --- a/app/Template/budget/remove.php +++ b/app/Template/budget/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'budget', 'remove', array('project_id' => $project['id'], 'budget_id' => $budget_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'budget', 'remove', array('project_id' => $project['id'], 'budget_id' => $budget_id), true, 'btn btn-red') ?> - a(t('cancel'), 'budget', 'create', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'budget', 'create', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php index 9e96d29e..3fe97b65 100644 --- a/app/Template/calendar/show.php +++ b/app/Template/calendar/show.php @@ -3,19 +3,19 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?> + url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
    • - a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
    • - a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?> + url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
    @@ -34,8 +34,8 @@ diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php index 0d4b0f6f..7d40fe65 100644 --- a/app/Template/category/edit.php +++ b/app/Template/category/edit.php @@ -2,21 +2,21 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Category Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->label(t('Category Name'), 'name') ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
    - formTextarea('description', $values, $errors) ?> + form->textarea('description', $values, $errors) ?>
    diff --git a/app/Template/category/index.php b/app/Template/category/index.php index d5b50af4..dba537d0 100644 --- a/app/Template/category/index.php +++ b/app/Template/category/index.php @@ -13,10 +13,10 @@
    @@ -28,13 +28,13 @@ - + - formCsrf() ?> - formHidden('project_id', $values) ?> + form->csrf() ?> + form->hidden('project_id', $values) ?> - formLabel(t('Category Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->label(t('Category Name'), 'name') ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    diff --git a/app/Template/category/remove.php b/app/Template/category/remove.php index 8875b232..ce589785 100644 --- a/app/Template/category/remove.php +++ b/app/Template/category/remove.php @@ -9,9 +9,9 @@

    - a(t('Yes'), 'category', 'remove', array('project_id' => $project['id'], 'category_id' => $category['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'category', 'remove', array('project_id' => $project['id'], 'category_id' => $category['id']), true, 'btn btn-red') ?> - a(t('cancel'), 'category', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'category', 'index', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php index 7e16c326..4d9848a9 100644 --- a/app/Template/column/edit.php +++ b/app/Template/column/edit.php @@ -2,25 +2,25 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> - formLabel(t('Task limit'), 'task_limit') ?> - formNumber('task_limit', $values, $errors) ?> + form->label(t('Task limit'), 'task_limit') ?> + form->number('task_limit', $values, $errors) ?> - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
    - formTextarea('description', $values, $errors) ?> + form->textarea('description', $values, $errors) ?>
    diff --git a/app/Template/column/index.php b/app/Template/column/index.php index e5772923..18e7f284 100644 --- a/app/Template/column/index.php +++ b/app/Template/column/index.php @@ -18,7 +18,7 @@
    @@ -51,23 +51,23 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('project_id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('required', 'maxlength="50"')) ?> + form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('required', 'maxlength="50"')) ?> - formLabel(t('Task limit'), 'task_limit') ?> - formNumber('task_limit', $values, $errors) ?> + form->label(t('Task limit'), 'task_limit') ?> + form->number('task_limit', $values, $errors) ?> - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
    - formTextarea('description', $values, $errors) ?> + form->textarea('description', $values, $errors) ?>
    diff --git a/app/Template/column/remove.php b/app/Template/column/remove.php index 3dcbd62f..28d0928f 100644 --- a/app/Template/column/remove.php +++ b/app/Template/column/remove.php @@ -9,7 +9,7 @@

    - a(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> + url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php index 5bd8debc..8c66d9a4 100644 --- a/app/Template/comment/create.php +++ b/app/Template/comment/create.php @@ -2,10 +2,10 @@

    - - formCsrf() ?> - formHidden('task_id', $values) ?> - formHidden('user_id', $values) ?> + + form->csrf() ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?>
      @@ -17,7 +17,7 @@
    - formTextarea('comment', $values, $errors, array(! isset($skip_cancel) ? 'autofocus' : '', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?> + form->textarea('comment', $values, $errors, array(! isset($skip_cancel) ? 'autofocus' : '', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?>
    @@ -31,9 +31,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> - 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'])) ?>
    diff --git a/app/Template/comment/edit.php b/app/Template/comment/edit.php index 2785fe62..d67aa387 100644 --- a/app/Template/comment/edit.php +++ b/app/Template/comment/edit.php @@ -2,12 +2,12 @@

    - + - formCsrf() ?> - formHidden('id', $values) ?> - formHidden('task_id', $values) ?> - formHidden('user_id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> + form->hidden('task_id', $values) ?> + form->hidden('user_id', $values) ?>
      @@ -19,7 +19,7 @@
    - formTextarea('comment', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?> + form->textarea('comment', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a comment').'"'), 'comment-textarea') ?>
    @@ -31,6 +31,6 @@
    - 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'])) ?>
    diff --git a/app/Template/comment/remove.php b/app/Template/comment/remove.php index 2338a03d..afc3346f 100644 --- a/app/Template/comment/remove.php +++ b/app/Template/comment/remove.php @@ -10,8 +10,8 @@ render('comment/show', array('comment' => $comment, 'task' => $task, 'preview' => true)) ?>
    - a(t('Yes'), 'comment', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'comment', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php index 98c29441..35394ccb 100644 --- a/app/Template/comment/show.php +++ b/app/Template/comment/show.php @@ -2,7 +2,7 @@

    - avatar($comment['email'], $comment['name'] ?: $comment['username']) ?> + user->avatar($comment['email'], $comment['name'] ?: $comment['username']) ?> e($comment['name'] ?: $comment['username']) ?> @

    @@ -11,12 +11,12 @@
    • - userSession->isAdmin() || $this->userSession->isCurrentUser($comment['user_id']))): ?> + user->isAdmin() || $this->user->isCurrentUser($comment['user_id']))): ?>
    • - a(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?> + url->link(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?>
    • - a(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?> + url->link(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?>
    @@ -24,7 +24,7 @@
    - markdown( + text->markdown( $comment['comment'], array( 'controller' => 'task', @@ -35,7 +35,7 @@ ) ) ?> - markdown( + text->markdown( $comment['comment'], array( 'controller' => 'task', diff --git a/app/Template/config/about.php b/app/Template/config/about.php index b6ed43e5..a7098c1b 100644 --- a/app/Template/config/about.php +++ b/app/Template/config/about.php @@ -25,14 +25,14 @@
  • - formatBytes($db_size) ?> + text->bytes($db_size) ?>
  • - a(t('Download the database'), 'config', 'downloadDb', array(), true) ?>  + url->link(t('Download the database'), 'config', 'downloadDb', array(), true) ?> 
  • - a(t('Optimize the database'), 'config', 'optimizeDb', array(), true) ?>  + url->link(t('Optimize the database'), 'config', 'optimizeDb', array(), true) ?> 
  • diff --git a/app/Template/config/api.php b/app/Template/config/api.php index 0df90835..489f1968 100644 --- a/app/Template/config/api.php +++ b/app/Template/config/api.php @@ -9,10 +9,10 @@
  • - +
  • - a(t('Reset token'), 'config', 'token', array('type' => 'api'), true) ?> + url->link(t('Reset token'), 'config', 'token', array('type' => 'api'), true) ?>
  • \ No newline at end of file diff --git a/app/Template/config/application.php b/app/Template/config/application.php index f6c9db94..7d4c811d 100644 --- a/app/Template/config/application.php +++ b/app/Template/config/application.php @@ -2,26 +2,26 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Application URL'), 'application_url') ?> - formText('application_url', $values, $errors, array('placeholder="http://example.kanboard.net/"')) ?>
    + form->label(t('Application URL'), 'application_url') ?> + form->text('application_url', $values, $errors, array('placeholder="http://example.kanboard.net/"')) ?>

    - formLabel(t('Language'), 'application_language') ?> - formSelect('application_language', $languages, $values, $errors) ?>
    + form->label(t('Language'), 'application_language') ?> + form->select('application_language', $languages, $values, $errors) ?>
    - formLabel(t('Timezone'), 'application_timezone') ?> - formSelect('application_timezone', $timezones, $values, $errors) ?>
    + form->label(t('Timezone'), 'application_timezone') ?> + form->select('application_timezone', $timezones, $values, $errors) ?>
    - formLabel(t('Date format'), 'application_date_format') ?> - formSelect('application_date_format', $date_formats, $values, $errors) ?>
    + form->label(t('Date format'), 'application_date_format') ?> + form->select('application_date_format', $date_formats, $values, $errors) ?>

    - formLabel(t('Custom Stylesheet'), 'application_stylesheet') ?> - formTextarea('application_stylesheet', $values, $errors) ?>
    + form->label(t('Custom Stylesheet'), 'application_stylesheet') ?> + form->textarea('application_stylesheet', $values, $errors) ?>
    diff --git a/app/Template/config/board.php b/app/Template/config/board.php index c55003de..19a4bcd7 100644 --- a/app/Template/config/board.php +++ b/app/Template/config/board.php @@ -2,20 +2,20 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Task highlight period'), 'board_highlight_period') ?> - formNumber('board_highlight_period', $values, $errors) ?>
    + form->label(t('Task highlight period'), 'board_highlight_period') ?> + form->number('board_highlight_period', $values, $errors) ?>

    - formLabel(t('Refresh interval for public board'), 'board_public_refresh_interval') ?> - formNumber('board_public_refresh_interval', $values, $errors) ?>
    + form->label(t('Refresh interval for public board'), 'board_public_refresh_interval') ?> + form->number('board_public_refresh_interval', $values, $errors) ?>

    - formLabel(t('Refresh interval for private board'), 'board_private_refresh_interval') ?> - formNumber('board_private_refresh_interval', $values, $errors) ?>
    + form->label(t('Refresh interval for private board'), 'board_private_refresh_interval') ?> + form->number('board_private_refresh_interval', $values, $errors) ?>

    diff --git a/app/Template/config/calendar.php b/app/Template/config/calendar.php index 300d3419..1cc985c8 100644 --- a/app/Template/config/calendar.php +++ b/app/Template/config/calendar.php @@ -2,13 +2,13 @@

    - + - formCsrf() ?> + form->csrf() ?>

    - formRadios('calendar_project_tasks', array( + form->radios('calendar_project_tasks', array( 'date_creation' => t('Show tasks based on the creation date'), 'date_started' => t('Show tasks based on the start date'), ), $values) ?> @@ -16,14 +16,14 @@

    - formRadios('calendar_user_tasks', array( + form->radios('calendar_user_tasks', array( 'date_creation' => t('Show tasks based on the creation date'), 'date_started' => t('Show tasks based on the start date'), ), $values) ?>

    - formCheckbox('calendar_user_subtasks_time_tracking', t('Show subtasks based on the time tracking'), 1, $values['calendar_user_subtasks_time_tracking'] == 1) ?> - formCheckbox('calendar_user_subtasks_forecast', t('Show subtask estimates (forecast of future work)'), 1, $values['calendar_user_subtasks_forecast'] == 1) ?> + form->checkbox('calendar_user_subtasks_time_tracking', t('Show subtasks based on the time tracking'), 1, $values['calendar_user_subtasks_time_tracking'] == 1) ?> + form->checkbox('calendar_user_subtasks_forecast', t('Show subtask estimates (forecast of future work)'), 1, $values['calendar_user_subtasks_forecast'] == 1) ?>
    diff --git a/app/Template/config/integrations.php b/app/Template/config/integrations.php index f9e7f537..a1299806 100644 --- a/app/Template/config/integrations.php +++ b/app/Template/config/integrations.php @@ -2,81 +2,81 @@

    - + - formCsrf() ?> + form->csrf() ?>

     

    -
    +

     

    -
    +

     

    -
    +

     

    - formCheckbox('integration_gravatar', t('Enable Gravatar images'), 1, $values['integration_gravatar'] == 1) ?> + form->checkbox('integration_gravatar', t('Enable Gravatar images'), 1, $values['integration_gravatar'] == 1) ?>

    - formCheckbox('integration_jabber', t('Send notifications to Jabber'), 1, $values['integration_jabber'] == 1) ?> + form->checkbox('integration_jabber', t('Send notifications to Jabber'), 1, $values['integration_jabber'] == 1) ?> - formLabel(t('XMPP server address'), 'integration_jabber_server') ?> - formText('integration_jabber_server', $values, $errors, array('placeholder="tcp://myserver:5222"')) ?> + form->label(t('XMPP server address'), 'integration_jabber_server') ?> + form->text('integration_jabber_server', $values, $errors, array('placeholder="tcp://myserver:5222"')) ?>

    - formLabel(t('Jabber domain'), 'integration_jabber_domain') ?> - formText('integration_jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> + form->label(t('Jabber domain'), 'integration_jabber_domain') ?> + form->text('integration_jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> - formLabel(t('Username'), 'integration_jabber_username') ?> - formText('integration_jabber_username', $values, $errors) ?> + form->label(t('Username'), 'integration_jabber_username') ?> + form->text('integration_jabber_username', $values, $errors) ?> - formLabel(t('Password'), 'integration_jabber_password') ?> - formPassword('integration_jabber_password', $values, $errors) ?> + form->label(t('Password'), 'integration_jabber_password') ?> + form->password('integration_jabber_password', $values, $errors) ?> - formLabel(t('Jabber nickname'), 'integration_jabber_nickname') ?> - formText('integration_jabber_nickname', $values, $errors) ?> + form->label(t('Jabber nickname'), 'integration_jabber_nickname') ?> + form->text('integration_jabber_nickname', $values, $errors) ?> - formLabel(t('Multi-user chat room'), 'integration_jabber_room') ?> - formText('integration_jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?> + form->label(t('Multi-user chat room'), 'integration_jabber_room') ?> + form->text('integration_jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?>

    - formCheckbox('integration_hipchat', t('Send notifications to Hipchat'), 1, $values['integration_hipchat'] == 1) ?> + form->checkbox('integration_hipchat', t('Send notifications to Hipchat'), 1, $values['integration_hipchat'] == 1) ?> - formLabel(t('API URL'), 'integration_hipchat_api_url') ?> - formText('integration_hipchat_api_url', $values, $errors) ?> + form->label(t('API URL'), 'integration_hipchat_api_url') ?> + form->text('integration_hipchat_api_url', $values, $errors) ?> - formLabel(t('Room API ID or name'), 'integration_hipchat_room_id') ?> - formText('integration_hipchat_room_id', $values, $errors) ?> + form->label(t('Room API ID or name'), 'integration_hipchat_room_id') ?> + form->text('integration_hipchat_room_id', $values, $errors) ?> - formLabel(t('Room notification token'), 'integration_hipchat_room_token') ?> - formText('integration_hipchat_room_token', $values, $errors) ?> + form->label(t('Room notification token'), 'integration_hipchat_room_token') ?> + form->text('integration_hipchat_room_token', $values, $errors) ?>

     

    - formCheckbox('integration_slack_webhook', t('Send notifications to a Slack channel'), 1, $values['integration_slack_webhook'] == 1) ?> + form->checkbox('integration_slack_webhook', t('Send notifications to a Slack channel'), 1, $values['integration_slack_webhook'] == 1) ?> - formLabel(t('Webhook URL'), 'integration_slack_webhook_url') ?> - formText('integration_slack_webhook_url', $values, $errors) ?> + form->label(t('Webhook URL'), 'integration_slack_webhook_url') ?> + form->text('integration_slack_webhook_url', $values, $errors) ?>

    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 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> - formText('board_columns', $values, $errors) ?>
    + form->label(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> + form->text('board_columns', $values, $errors) ?>

    - formLabel(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> - formText('project_categories', $values, $errors) ?>
    + form->label(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> + form->text('project_categories', $values, $errors) ?>

    - formCheckbox('subtask_restriction', t('Allow only one subtask in progress at the same time for a user'), 1, $values['subtask_restriction'] == 1) ?> - formCheckbox('subtask_time_tracking', t('Enable time tracking for subtasks'), 1, $values['subtask_time_tracking'] == 1) ?> + form->checkbox('subtask_restriction', t('Allow only one subtask in progress at the same time for a user'), 1, $values['subtask_restriction'] == 1) ?> + form->checkbox('subtask_time_tracking', t('Enable time tracking for subtasks'), 1, $values['subtask_time_tracking'] == 1) ?>
    diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index 4bae9e2e..7f946dee 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -2,34 +2,34 @@

    • - a(t('About'), 'config', 'index') ?> + url->link(t('About'), 'config', 'index') ?>
    • - a(t('Application settings'), 'config', 'application') ?> + url->link(t('Application settings'), 'config', 'application') ?>
    • - a(t('Project settings'), 'config', 'project') ?> + url->link(t('Project settings'), 'config', 'project') ?>
    • - a(t('Board settings'), 'config', 'board') ?> + url->link(t('Board settings'), 'config', 'board') ?>
    • - a(t('Calendar settings'), 'config', 'calendar') ?> + url->link(t('Calendar settings'), 'config', 'calendar') ?>
    • - a(t('Link settings'), 'link', 'index') ?> + url->link(t('Link settings'), 'link', 'index') ?>
    • - a(t('Currency rates'), 'currency', 'index') ?> + url->link(t('Currency rates'), 'currency', 'index') ?>
    • - a(t('Integrations'), 'config', 'integrations') ?> + url->link(t('Integrations'), 'config', 'integrations') ?>
    • - a(t('Webhooks'), 'config', 'webhook') ?> + url->link(t('Webhooks'), 'config', 'webhook') ?>
    • - a(t('API'), 'config', 'api') ?> + url->link(t('API'), 'config', 'api') ?>
    \ No newline at end of file diff --git a/app/Template/config/webhook.php b/app/Template/config/webhook.php index 06f7870b..73ca3598 100644 --- a/app/Template/config/webhook.php +++ b/app/Template/config/webhook.php @@ -2,12 +2,12 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Webhook URL'), 'webhook_url') ?> - formText('webhook_url', $values, $errors) ?> + form->label(t('Webhook URL'), 'webhook_url') ?> + form->text('webhook_url', $values, $errors) ?>
    @@ -26,10 +26,10 @@
  • - +
  • - a(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?> + url->link(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?>
  • \ No newline at end of file diff --git a/app/Template/currency/index.php b/app/Template/currency/index.php index 7839a142..f72c5700 100644 --- a/app/Template/currency/index.php +++ b/app/Template/currency/index.php @@ -24,12 +24,12 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Reference currency'), 'application_currency') ?> - formSelect('application_currency', $currencies, $config_values, $errors) ?>
    + form->label(t('Reference currency'), 'application_currency') ?> + form->select('application_currency', $currencies, $config_values, $errors) ?>
    @@ -38,15 +38,15 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Currency'), 'currency') ?> - formSelect('currency', $currencies, $values, $errors) ?>
    + form->label(t('Currency'), 'currency') ?> + form->select('currency', $currencies, $values, $errors) ?>
    - formLabel(t('Rate'), 'rate') ?> - formText('rate', $values, $errors, array(), 'form-numeric') ?>
    + form->label(t('Rate'), 'rate') ?> + form->text('rate', $values, $errors, array(), 'form-numeric') ?>
    diff --git a/app/Template/event/comment_create.php b/app/Template/event/comment_create.php index 79238aba..462f15ca 100644 --- a/app/Template/event/comment_create.php +++ b/app/Template/event/comment_create.php @@ -1,12 +1,12 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    e($task['title']) ?>
    -
    markdown($comment['comment']) ?>
    +
    text->markdown($comment['comment']) ?>
    \ No newline at end of file diff --git a/app/Template/event/comment_update.php b/app/Template/event/comment_update.php index 5d22a2ce..0cb10bf6 100644 --- a/app/Template/event/comment_update.php +++ b/app/Template/event/comment_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/events.php b/app/Template/event/events.php index 93bc6584..2dc79871 100644 --- a/app/Template/event/events.php +++ b/app/Template/event/events.php @@ -5,11 +5,11 @@

    - contains($event['event_name'], 'subtask')): ?> + text->contains($event['event_name'], 'subtask')): ?> - contains($event['event_name'], 'task')): ?> + text->contains($event['event_name'], 'task')): ?> - contains($event['event_name'], 'comment')): ?> + text->contains($event['event_name'], 'comment')): ?>   diff --git a/app/Template/event/subtask_create.php b/app/Template/event/subtask_create.php index 4f33069a..ca23aa9c 100644 --- a/app/Template/event/subtask_create.php +++ b/app/Template/event/subtask_create.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/subtask_update.php b/app/Template/event/subtask_update.php index 19fe2e56..11a778de 100644 --- a/app/Template/event/subtask_update.php +++ b/app/Template/event/subtask_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/task_assignee_change.php b/app/Template/event/task_assignee_change.php index 38e2bca7..cdec8743 100644 --- a/app/Template/event/task_assignee_change.php +++ b/app/Template/event/task_assignee_change.php @@ -1,4 +1,4 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    @@ -6,11 +6,11 @@ e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $this->e($assignee) ) ?> - e($author), $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))) ?> + e($author), $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))) ?>

    diff --git a/app/Template/event/task_close.php b/app/Template/event/task_close.php index afedbef3..3d8670a6 100644 --- a/app/Template/event/task_close.php +++ b/app/Template/event/task_close.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/task_create.php b/app/Template/event/task_create.php index 4b920234..773f401c 100644 --- a/app/Template/event/task_create.php +++ b/app/Template/event/task_create.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/task_move_column.php b/app/Template/event/task_move_column.php index e97a3ab7..ca482e46 100644 --- a/app/Template/event/task_move_column.php +++ b/app/Template/event/task_move_column.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $this->e($task['column_title']) ) ?>

    diff --git a/app/Template/event/task_move_position.php b/app/Template/event/task_move_position.php index 2ed4ffe8..dcdd3e1b 100644 --- a/app/Template/event/task_move_position.php +++ b/app/Template/event/task_move_position.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $task['position'], $this->e($task['column_title']) ) ?> diff --git a/app/Template/event/task_open.php b/app/Template/event/task_open.php index 9a408449..11fec64b 100644 --- a/app/Template/event/task_open.php +++ b/app/Template/event/task_open.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/event/task_update.php b/app/Template/event/task_update.php index 0f81870b..7d036d43 100644 --- a/app/Template/event/task_update.php +++ b/app/Template/event/task_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

    e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

    diff --git a/app/Template/export/subtasks.php b/app/Template/export/subtasks.php index aa999a56..d22b96a4 100644 --- a/app/Template/export/subtasks.php +++ b/app/Template/export/subtasks.php @@ -6,15 +6,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    - formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>

    diff --git a/app/Template/export/summary.php b/app/Template/export/summary.php index 191d36b6..ffbd6ac2 100644 --- a/app/Template/export/summary.php +++ b/app/Template/export/summary.php @@ -8,15 +8,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    - formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    diff --git a/app/Template/export/tasks.php b/app/Template/export/tasks.php index e502085c..5c5e2172 100644 --- a/app/Template/export/tasks.php +++ b/app/Template/export/tasks.php @@ -6,15 +6,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    - formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    diff --git a/app/Template/export/transitions.php b/app/Template/export/transitions.php index 7cd190e0..bf6ef249 100644 --- a/app/Template/export/transitions.php +++ b/app/Template/export/transitions.php @@ -8,15 +8,15 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Start Date'), 'from') ?> - formText('from', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Start Date'), 'from') ?> + form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    - formLabel(t('End Date'), 'to') ?> - formText('to', $values, $errors, array('required', 'placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('End Date'), 'to') ?> + form->text('to', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    diff --git a/app/Template/file/new.php b/app/Template/file/new.php index 4f0c233b..a1a59eae 100644 --- a/app/Template/file/new.php +++ b/app/Template/file/new.php @@ -2,13 +2,13 @@

    - - formCsrf() ?> + + form->csrf() ?> -
    formatBytes($max_size) : $max_size ?>
    +
    text->bytes($max_size) : $max_size ?>
    - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/file/open.php b/app/Template/file/open.php index 70e0f8aa..3df012b6 100644 --- a/app/Template/file/open.php +++ b/app/Template/file/open.php @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/app/Template/file/remove.php b/app/Template/file/remove.php index 04ec30d5..37f648eb 100644 --- a/app/Template/file/remove.php +++ b/app/Template/file/remove.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'file', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'file', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/file/screenshot.php b/app/Template/file/screenshot.php index 299bf615..89d9324c 100644 --- a/app/Template/file/screenshot.php +++ b/app/Template/file/screenshot.php @@ -6,12 +6,12 @@

    -
    + - formCsrf() ?> + form->csrf() ?>
    - a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
    diff --git a/app/Template/file/show.php b/app/Template/file/show.php index 3ce7f9f4..7d5dc96f 100644 --- a/app/Template/file/show.php +++ b/app/Template/file/show.php @@ -11,19 +11,19 @@
  • - <?= $this->e($file['name']) ?> + <?= $this->e($file['name']) ?>

    e($file['name']) ?> - '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
    '.t('size: %s', $this->formatBytes($file['size'])) ?>'> + '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
    '.t('size: %s', $this->text->bytes($file['size'])) ?>'>

    - a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> - a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + url->link(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
  • @@ -35,17 +35,17 @@
    - a('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?> + url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?> - isManager($project['id'])): ?> - a('', 'project', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Settings')) ?>  + user->isManager($project['id'])): ?> + url->link('', 'project', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Settings')) ?>  - a('', 'calendar', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Calendar')) ?>  + url->link('', 'calendar', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Calendar')) ?>  - a($this->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link($this->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?> - '> + '> diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php index 487b66fc..5afb71b0 100644 --- a/app/Template/app/subtasks.php +++ b/app/Template/app/subtasks.php @@ -13,16 +13,16 @@ getCollection() as $subtask): ?>
    - a('#'.$subtask['task_id'], 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> + url->link('#'.$subtask['task_id'], 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> - a($this->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?> + url->link($this->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?> - a($this->e($subtask['task_name']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> + url->link($this->e($subtask['task_name']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> - toggleSubtaskStatus($subtask, 'dashboard') ?> + subtask->toggleStatus($subtask, 'dashboard') ?> diff --git a/app/Template/app/tasks.php b/app/Template/app/tasks.php index 9987ff48..f05c63ef 100644 --- a/app/Template/app/tasks.php +++ b/app/Template/app/tasks.php @@ -13,13 +13,13 @@ getCollection() as $task): ?>
    - a('#'.$task['id'], 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link('#'.$task['id'], 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> - a($this->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link($this->e($task['project_name']), 'board', 'show', array('project_id' => $task['project_id'])) ?> - a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php index b35b1253..8801a512 100644 --- a/app/Template/auth/index.php +++ b/app/Template/auth/index.php @@ -4,24 +4,24 @@

    e($errors['login']) ?>

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Username'), 'username') ?> - formText('username', $values, $errors, array('autofocus', 'required')) ?>
    + form->label(t('Username'), 'username') ?> + form->text('username', $values, $errors, array('autofocus', 'required')) ?>
    - formLabel(t('Password'), 'password') ?> - formPassword('password', $values, $errors, array('required')) ?> + form->label(t('Password'), 'password') ?> + form->password('password', $values, $errors, array('required')) ?> - formCheckbox('remember_me', t('Remember Me'), 1) ?>
    + form->checkbox('remember_me', t('Remember Me'), 1) ?>
    - a(t('Login with my Google Account'), 'user', 'google') ?> + url->link(t('Login with my Google Account'), 'user', 'google') ?> - a(t('Login with my GitHub Account'), 'user', 'gitHub') ?> + url->link(t('Login with my GitHub Account'), 'user', 'gitHub') ?>
    diff --git a/app/Template/board/assignee.php b/app/Template/board/assignee.php index 453b3f2d..4af19cf7 100644 --- a/app/Template/board/assignee.php +++ b/app/Template/board/assignee.php @@ -1,20 +1,20 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Assignee'), 'owner_id') ?> - formSelect('owner_id', $users_list, $values, array(), array('autofocus')) ?>
    + form->label(t('Assignee'), 'owner_id') ?> + form->select('owner_id', $users_list, $values, array(), array('autofocus')) ?>
    - a(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
    diff --git a/app/Template/board/category.php b/app/Template/board/category.php index ee01ec5f..b38758d3 100644 --- a/app/Template/board/category.php +++ b/app/Template/board/category.php @@ -1,20 +1,20 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Category'), 'category_id') ?> - formSelect('category_id', $categories_list, $values) ?>
    + form->label(t('Category'), 'category_id') ?> + form->select('category_id', $categories_list, $values) ?>
    - a(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
    diff --git a/app/Template/board/comments.php b/app/Template/board/comments.php index 5424df78..75816af6 100644 --- a/app/Template/board/comments.php +++ b/app/Template/board/comments.php @@ -6,7 +6,7 @@
    - markdown($comment['comment']) ?> + text->markdown($comment['comment']) ?>
    diff --git a/app/Template/board/description.php b/app/Template/board/description.php index b38f5bf4..7e0e3430 100644 --- a/app/Template/board/description.php +++ b/app/Template/board/description.php @@ -1,5 +1,5 @@
    - markdown($task['description']) ?> + text->markdown($task['description']) ?>
    \ No newline at end of file diff --git a/app/Template/board/files.php b/app/Template/board/files.php index 851a118d..81136659 100644 --- a/app/Template/board/files.php +++ b/app/Template/board/files.php @@ -8,8 +8,8 @@ e($file['name']) ?>
    - a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
    - + e($file['name']) ?> - a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
    - a('+', 'task', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'task-board-popover', t('Add a new task')) ?> + url->link('+', 'task', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'task-board-popover', t('Add a new task')) ?>
    e($column['title']) ?> - '> + '> diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 0ea0f5fa..5945d5af 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -2,16 +2,16 @@
    - inList($task['category_id'], $categories_listing) ?> + text->in($task['category_id'], $categories_listing) ?> - a( - $this->inList($task['category_id'], $categories_listing), + url->link( + $this->text->in($task['category_id'], $categories_listing), 'board', 'changeCategory', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover' . (isset($categories_description[$task['category_id']]) ? ' column-tooltip' : ''), - isset($categories_description[$task['category_id']]) ? $this->markdown($categories_description[$task['category_id']]) : t('Change category') + isset($categories_description[$task['category_id']]) ? $this->text->markdown($categories_description[$task['category_id']]) : t('Change category') ) ?> @@ -26,31 +26,31 @@ - + - + -   +   -   +   -   +   -   +   - + diff --git a/app/Template/board/task_menu.php b/app/Template/board/task_menu.php index 04b03385..97c0f8dc 100644 --- a/app/Template/board/task_menu.php +++ b/app/Template/board/task_menu.php @@ -2,15 +2,15 @@
      -
    • a(t('Change assignee'), 'board', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Change category'), 'board', 'changeCategory', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Change description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Edit this task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Add a screenshot'), 'board', 'screenshot', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Edit recurrence'), 'task', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • -
    • a(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'redirect' => 'board'), false, 'task-board-popover') ?>
    • +
    • url->link(t('Change assignee'), 'board', 'changeAssignee', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Change category'), 'board', 'changeCategory', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Change description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Edit this task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Add a screenshot'), 'board', 'screenshot', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Edit recurrence'), 'task', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-popover') ?>
    • +
    • url->link(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'redirect' => 'board'), false, 'task-board-popover') ?>
    diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index d82b96e8..088f47bc 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -3,12 +3,12 @@ data-owner-id="" data-category-id="" data-due-date="" - data-task-url="u('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"> + data-task-url="url->href('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"> render('board/task_menu', array('task' => $task)) ?>
    @@ -19,8 +19,8 @@ - - a( + + url->link( (! empty($task['owner_id']) ? ($task['assignee_name'] ?: $task['assignee_username']) : t('Nobody assigned')), 'board', 'changeAssignee', @@ -32,12 +32,12 @@
    - getTaskAge($task['date_creation']) ?> - getTaskAge($task['date_moved']) ?> + task->age($task['date_creation']) ?> + task->age($task['date_moved']) ?>
    - a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?>
    render('board/task_footer', array( diff --git a/app/Template/board/task_public.php b/app/Template/board/task_public.php index 1ab2b3aa..9ac6e570 100644 --- a/app/Template/board/task_public.php +++ b/app/Template/board/task_public.php @@ -1,6 +1,6 @@
    - a('#'.$task['id'], 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> + url->link('#'.$task['id'], 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> @@ -19,7 +19,7 @@
    - a($this->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> + url->link($this->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
    render('board/task_footer', array( diff --git a/app/Template/board/tasklinks.php b/app/Template/board/tasklinks.php index f934cff9..25aa91aa 100644 --- a/app/Template/board/tasklinks.php +++ b/app/Template/board/tasklinks.php @@ -3,7 +3,7 @@
  • - a( + url->link( $this->e('#'.$link['task_id'].' - '.$link['title']), 'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']), false, diff --git a/app/Template/budget/breakdown.php b/app/Template/budget/breakdown.php index 51044c46..3275a66a 100644 --- a/app/Template/budget/breakdown.php +++ b/app/Template/budget/breakdown.php @@ -1,8 +1,8 @@ @@ -20,9 +20,9 @@
  • a($this->e($record['task_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>a($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>a($this->e($record['name'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?>url->link($this->e($record['task_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>url->link($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $project['id'], 'task_id' => $record['task_id'])) ?>url->link($this->e($record['name'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?> e($line['comment']) ?> - a(t('Remove'), 'budget', 'confirm', array('project_id' => $project['id'], 'budget_id' => $line['id'])) ?> + url->link(t('Remove'), 'budget', 'confirm', array('project_id' => $project['id'], 'budget_id' => $line['id'])) ?>
    • - a(t('Edit'), 'category', 'edit', array('project_id' => $project['id'], 'category_id' => $category_id)) ?> + url->link(t('Edit'), 'category', 'edit', array('project_id' => $project['id'], 'category_id' => $category_id)) ?>
    • - a(t('Remove'), 'category', 'confirm', array('project_id' => $project['id'], 'category_id' => $category_id)) ?> + url->link(t('Remove'), 'category', 'confirm', array('project_id' => $project['id'], 'category_id' => $category_id)) ?>
    e($column['title']) ?> - '> + '> @@ -27,20 +27,20 @@
    • - a(t('Edit'), 'column', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> + url->link(t('Edit'), 'column', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?>
    • - a(t('Move Up'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> + url->link(t('Move Up'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?>
    • - a(t('Move Down'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> + url->link(t('Move Down'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?>
    • - a(t('Remove'), 'column', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> + url->link(t('Remove'), 'column', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?>
    - + diff --git a/app/Template/hourlyrate/index.php b/app/Template/hourlyrate/index.php index 9d0b77c8..af305d07 100644 --- a/app/Template/hourlyrate/index.php +++ b/app/Template/hourlyrate/index.php @@ -17,7 +17,7 @@ @@ -26,19 +26,19 @@

    - + - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Hourly rate'), 'rate') ?> - formText('rate', $values, $errors, array('required'), 'form-numeric') ?> + form->label(t('Hourly rate'), 'rate') ?> + form->text('rate', $values, $errors, array('required'), 'form-numeric') ?> - formLabel(t('Currency'), 'currency') ?> - formSelect('currency', $currencies_list, $values, $errors, array('required')) ?> + form->label(t('Currency'), 'currency') ?> + form->select('currency', $currencies_list, $values, $errors, array('required')) ?> - formLabel(t('Effective date'), 'date_effective') ?> - formText('date_effective', $values, $errors, array('required'), 'form-date') ?> + form->label(t('Effective date'), 'date_effective') ?> + form->text('date_effective', $values, $errors, array('required'), 'form-date') ?>
    diff --git a/app/Template/hourlyrate/remove.php b/app/Template/hourlyrate/remove.php index 7f22728e..121436e4 100644 --- a/app/Template/hourlyrate/remove.php +++ b/app/Template/hourlyrate/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'hourlyrate', 'remove', array('user_id' => $user['id'], 'rate_id' => $rate_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'hourlyrate', 'remove', array('user_id' => $user['id'], 'rate_id' => $rate_id), true, 'btn btn-red') ?> - a(t('cancel'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/layout.php b/app/Template/layout.php index 7baecde9..cf74c8ab 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -11,16 +11,13 @@ - js('assets/js/app.js') ?> + asset->js('assets/js/app.js') ?> - css($this->u('app', 'colors'), false, 'all') ?> - css('assets/css/app.css') ?> - css('assets/css/print.css', true, 'print') ?> - - config->get('application_stylesheet')): ?> - - + asset->css($this->url->href('app', 'colors'), false, 'all') ?> + asset->css('assets/css/app.css') ?> + asset->css('assets/css/print.css', true, 'print') ?> + asset->customCss() ?> @@ -30,19 +27,19 @@ <?= isset($title) ? $this->e($title) : 'Kanboard' ?> - +
    - flash('
    %s
    ') ?> - flashError('
    %s
    ') ?> + app->flashMessage() ?>
    diff --git a/app/Template/link/create.php b/app/Template/link/create.php index 12589574..2b4ac62c 100644 --- a/app/Template/link/create.php +++ b/app/Template/link/create.php @@ -2,15 +2,15 @@

    - + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Label'), 'label') ?> - formText('label', $values, $errors, array('required')) ?> + form->label(t('Label'), 'label') ?> + form->text('label', $values, $errors, array('required')) ?> - formLabel(t('Opposite label'), 'opposite_label') ?> - formText('opposite_label', $values, $errors) ?> + form->label(t('Opposite label'), 'opposite_label') ?> + form->text('opposite_label', $values, $errors) ?>
    diff --git a/app/Template/link/edit.php b/app/Template/link/edit.php index d9ce280c..516de464 100644 --- a/app/Template/link/edit.php +++ b/app/Template/link/edit.php @@ -2,20 +2,20 @@

    - + - formCsrf() ?> - formHidden('id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> - formLabel(t('Label'), 'label') ?> - formText('label', $values, $errors, array('required')) ?> + form->label(t('Label'), 'label') ?> + form->text('label', $values, $errors, array('required')) ?> - formLabel(t('Opposite label'), 'opposite_id') ?> - formSelect('opposite_id', $labels, $values, $errors) ?> + form->label(t('Opposite label'), 'opposite_id') ?> + form->select('opposite_id', $labels, $values, $errors) ?>
    - a(t('cancel'), 'link', 'index') ?> + url->link(t('cancel'), 'link', 'index') ?>
    \ No newline at end of file diff --git a/app/Template/link/index.php b/app/Template/link/index.php index 90d1c357..1475bd50 100644 --- a/app/Template/link/index.php +++ b/app/Template/link/index.php @@ -18,9 +18,9 @@ diff --git a/app/Template/link/remove.php b/app/Template/link/remove.php index a802feb0..12ca14bb 100644 --- a/app/Template/link/remove.php +++ b/app/Template/link/remove.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'link', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'link', 'remove', array('link_id' => $link['id']), true, 'btn btn-red') ?> - a(t('cancel'), 'link', 'index') ?> + url->link(t('cancel'), 'link', 'index') ?>
    \ No newline at end of file diff --git a/app/Template/notification/comment_creation.php b/app/Template/notification/comment_creation.php index b28e261a..747c4f43 100644 --- a/app/Template/notification/comment_creation.php +++ b/app/Template/notification/comment_creation.php @@ -2,6 +2,6 @@

    -markdown($comment['comment']) ?> +text->markdown($comment['comment']) ?> render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Template/notification/comment_update.php b/app/Template/notification/comment_update.php index 88154f0b..a15e5d6d 100644 --- a/app/Template/notification/comment_update.php +++ b/app/Template/notification/comment_update.php @@ -2,6 +2,6 @@

    -markdown($comment['comment']) ?> +text->markdown($comment['comment']) ?> render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Template/notification/footer.php b/app/Template/notification/footer.php index 4de1487e..7041c43b 100644 --- a/app/Template/notification/footer.php +++ b/app/Template/notification/footer.php @@ -2,5 +2,5 @@ Kanboard - - . + - . diff --git a/app/Template/notification/task_assignee_change.php b/app/Template/notification/task_assignee_change.php index faab92f3..c9729ac9 100644 --- a/app/Template/notification/task_assignee_change.php +++ b/app/Template/notification/task_assignee_change.php @@ -14,7 +14,7 @@

    - markdown($task['description']) ?: t('There is no description.') ?> + text->markdown($task['description']) ?: t('There is no description.') ?> render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_creation.php b/app/Template/notification/task_creation.php index dfd3e591..0905d3f5 100644 --- a/app/Template/notification/task_creation.php +++ b/app/Template/notification/task_creation.php @@ -37,7 +37,7 @@

    - markdown($task['description']) ?> + text->markdown($task['description']) ?> render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_due.php b/app/Template/notification/task_due.php index 72c8de1b..7482424a 100644 --- a/app/Template/notification/task_due.php +++ b/app/Template/notification/task_due.php @@ -5,7 +5,7 @@
  • (#) - e($task['title']) ?> + e($task['title']) ?> e($task['title']) ?> diff --git a/app/Template/notification/task_update.php b/app/Template/notification/task_update.php index 71e949dd..ffea49cd 100644 --- a/app/Template/notification/task_update.php +++ b/app/Template/notification/task_update.php @@ -37,7 +37,7 @@

    - markdown($task['description']) ?: t('There is no description.') ?> + text->markdown($task['description']) ?: t('There is no description.') ?> render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Template/project/activity.php b/app/Template/project/activity.php index 7da6be5c..1c5dcb75 100644 --- a/app/Template/project/activity.php +++ b/app/Template/project/activity.php @@ -3,22 +3,22 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?> + url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
    • - a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
    • -
    • a(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
    diff --git a/app/Template/project/disable.php b/app/Template/project/disable.php index 48a09a97..ddfcdca2 100644 --- a/app/Template/project/disable.php +++ b/app/Template/project/disable.php @@ -8,7 +8,7 @@

    - a(t('Yes'), 'project', 'disable', array('project_id' => $project['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Yes'), 'project', 'disable', array('project_id' => $project['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> + url->link(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/project/duplicate.php b/app/Template/project/duplicate.php index 7e7fd85e..8967c306 100644 --- a/app/Template/project/duplicate.php +++ b/app/Template/project/duplicate.php @@ -6,18 +6,18 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formCheckbox('category', t('Categories'), 1, true) ?> - formCheckbox('action', t('Actions'), 1, true) ?> - formCheckbox('swimlane', t('Swimlanes'), 1, false) ?> - formCheckbox('task', t('Tasks'), 1, false) ?> + form->checkbox('category', t('Categories'), 1, true) ?> + form->checkbox('action', t('Actions'), 1, true) ?> + form->checkbox('swimlane', t('Swimlanes'), 1, false) ?> + form->checkbox('task', t('Tasks'), 1, false) ?>
    - a(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php index 8b94e378..794267f4 100644 --- a/app/Template/project/edit.php +++ b/app/Template/project/edit.php @@ -1,28 +1,28 @@ -
    + - formCsrf() ?> - formHidden('id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('required', 'maxlength="50"')) ?> + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors, array('required', 'maxlength="50"')) ?> - formLabel(t('Identifier'), 'identifier') ?> - formText('identifier', $values, $errors, array('maxlength="50"')) ?> + form->label(t('Identifier'), 'identifier') ?> + form->text('identifier', $values, $errors, array('maxlength="50"')) ?>

    - userSession->isAdmin()): ?> - formCheckbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> + user->isAdmin()): ?> + form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
    - formTextarea('description', $values, $errors) ?> + form->textarea('description', $values, $errors) ?>
    diff --git a/app/Template/project/enable.php b/app/Template/project/enable.php index b683ea7c..c10d2f12 100644 --- a/app/Template/project/enable.php +++ b/app/Template/project/enable.php @@ -8,7 +8,7 @@

    - a(t('Yes'), 'project', 'enable', array('project_id' => $project['id'], 'enable' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Yes'), 'project', 'enable', array('project_id' => $project['id'], 'enable' => 'yes'), true, 'btn btn-red') ?> + url->link(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/project/feed.php b/app/Template/project/feed.php index 14427af9..2062e801 100644 --- a/app/Template/project/feed.php +++ b/app/Template/project/feed.php @@ -1,16 +1,16 @@ ' ?> <?= t('%s\'s activity', $project['name']) ?> - - + + - getCurrentBaseUrl() ?> - getCurrentBaseUrl() ?>assets/img/favicon.png + url->base() ?> + url->base() ?>assets/img/favicon.png <?= $e['event_title'] ?> - + diff --git a/app/Template/project/index.php b/app/Template/project/index.php index 8d2bc30b..1080968e 100644 --- a/app/Template/project/index.php +++ b/app/Template/project/index.php @@ -1,10 +1,10 @@
    @@ -22,7 +22,7 @@ getCollection() as $project): ?>
  • @@ -68,10 +68,10 @@
    e($file['name']) ?> - '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
    '.t('size: %s', $this->formatBytes($file['size'])) ?>'> + '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
    '.t('size: %s', $this->text->bytes($file['size'])) ?>'>
    - a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
    - a(t('Remove'), 'hourlyrate', 'confirm', array('user_id' => $user['id'], 'rate_id' => $rate['id'])) ?> + url->link(t('Remove'), 'hourlyrate', 'confirm', array('user_id' => $user['id'], 'rate_id' => $rate['id'])) ?>
      - a(t('Edit'), 'link', 'edit', array('link_id' => $link['id'])) ?> + url->link(t('Edit'), 'link', 'edit', array('link_id' => $link['id'])) ?> - a(t('Remove'), 'link', 'confirm', array('link_id' => $link['id'])) ?> + url->link(t('Remove'), 'link', 'confirm', array('link_id' => $link['id'])) ?>
    - a('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?> + url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?> @@ -35,7 +35,7 @@ e($project['identifier']) ?> - a('', 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Board')) ?>  + url->link('', 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Board')) ?>  @@ -44,9 +44,9 @@ - a($this->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link($this->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?> - '> + '> diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index d4fab23b..698e438c 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -2,53 +2,53 @@

    - - formCsrf() ?> + + form->csrf() ?>

     

    -
    +

     

    -
    +

     

    -
    +

    - formCheckbox('jabber', t('Send notifications to Jabber'), 1, isset($values['jabber']) && $values['jabber'] == 1) ?> + form->checkbox('jabber', t('Send notifications to Jabber'), 1, isset($values['jabber']) && $values['jabber'] == 1) ?> - formLabel(t('XMPP server address'), 'jabber_server') ?> - formText('jabber_server', $values, $errors, array('placeholder="tcp://myserver:5222"')) ?> + form->label(t('XMPP server address'), 'jabber_server') ?> + form->text('jabber_server', $values, $errors, array('placeholder="tcp://myserver:5222"')) ?>

    - formLabel(t('Jabber domain'), 'jabber_domain') ?> - formText('jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> + form->label(t('Jabber domain'), 'jabber_domain') ?> + form->text('jabber_domain', $values, $errors, array('placeholder="example.com"')) ?> - formLabel(t('Username'), 'jabber_username') ?> - formText('jabber_username', $values, $errors) ?> + form->label(t('Username'), 'jabber_username') ?> + form->text('jabber_username', $values, $errors) ?> - formLabel(t('Password'), 'jabber_password') ?> - formPassword('jabber_password', $values, $errors) ?> + form->label(t('Password'), 'jabber_password') ?> + form->password('jabber_password', $values, $errors) ?> - formLabel(t('Jabber nickname'), 'jabber_nickname') ?> - formText('jabber_nickname', $values, $errors) ?> + form->label(t('Jabber nickname'), 'jabber_nickname') ?> + form->text('jabber_nickname', $values, $errors) ?> - formLabel(t('Multi-user chat room'), 'jabber_room') ?> - formText('jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?> + form->label(t('Multi-user chat room'), 'jabber_room') ?> + form->text('jabber_room', $values, $errors, array('placeholder="myroom@conference.example.com"')) ?>

    @@ -60,16 +60,16 @@

    - formCheckbox('hipchat', t('Send notifications to Hipchat'), 1, isset($values['hipchat']) && $values['hipchat'] == 1) ?> + form->checkbox('hipchat', t('Send notifications to Hipchat'), 1, isset($values['hipchat']) && $values['hipchat'] == 1) ?> - formLabel(t('API URL'), 'hipchat_api_url') ?> - formText('hipchat_api_url', $values, $errors) ?> + form->label(t('API URL'), 'hipchat_api_url') ?> + form->text('hipchat_api_url', $values, $errors) ?> - formLabel(t('Room API ID or name'), 'hipchat_room_id') ?> - formText('hipchat_room_id', $values, $errors) ?> + form->label(t('Room API ID or name'), 'hipchat_room_id') ?> + form->text('hipchat_room_id', $values, $errors) ?> - formLabel(t('Room notification token'), 'hipchat_room_token') ?> - formText('hipchat_room_token', $values, $errors) ?> + form->label(t('Room notification token'), 'hipchat_room_token') ?> + form->text('hipchat_room_token', $values, $errors) ?>

    @@ -81,10 +81,10 @@

     

    - formCheckbox('slack', t('Send notifications to a Slack channel'), 1, isset($values['slack']) && $values['slack'] == 1) ?> + form->checkbox('slack', t('Send notifications to a Slack channel'), 1, isset($values['slack']) && $values['slack'] == 1) ?> - formLabel(t('Webhook URL'), 'slack_webhook_url') ?> - formText('slack_webhook_url', $values, $errors) ?> + form->label(t('Webhook URL'), 'slack_webhook_url') ?> + form->text('slack_webhook_url', $values, $errors) ?>

    diff --git a/app/Template/project/layout.php b/app/Template/project/layout.php index 8cd1fd3c..f5409500 100644 --- a/app/Template/project/layout.php +++ b/app/Template/project/layout.php @@ -3,11 +3,11 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('All projects'), 'project', 'index') ?> + url->link(t('All projects'), 'project', 'index') ?>
    diff --git a/app/Template/project/new.php b/app/Template/project/new.php index b68258b4..25b70ac2 100644 --- a/app/Template/project/new.php +++ b/app/Template/project/new.php @@ -1,20 +1,20 @@
    - + - formCsrf() ?> - formHidden('is_private', $values) ?> - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->csrf() ?> + form->hidden('is_private', $values) ?> + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    - a(t('cancel'), 'project', 'index') ?> + url->link(t('cancel'), 'project', 'index') ?>
    diff --git a/app/Template/project/remove.php b/app/Template/project/remove.php index 0f6fec78..fa43fc78 100644 --- a/app/Template/project/remove.php +++ b/app/Template/project/remove.php @@ -8,7 +8,7 @@

    - a(t('Yes'), 'project', 'remove', array('project_id' => $project['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Yes'), 'project', 'remove', array('project_id' => $project['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> + url->link(t('cancel'), 'project', 'show', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/project/search.php b/app/Template/project/search.php index 47ba0f77..a8e387c6 100644 --- a/app/Template/project/search.php +++ b/app/Template/project/search.php @@ -3,28 +3,28 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
    • - a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?> + url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
    - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('project_id', $values) ?> - formText('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('project_id', $values) ?> + form->text('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?>
    diff --git a/app/Template/project/share.php b/app/Template/project/share.php index 07f29fdc..a9146599 100644 --- a/app/Template/project/share.php +++ b/app/Template/project/share.php @@ -6,14 +6,14 @@
      -
    • a(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
    • -
    • a(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
    • -
    • a(t('iCal feed'), 'ical', 'project', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token']), false, '', '', true) ?>
    - a(t('Disable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> + url->link(t('Disable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> - a(t('Enable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> + url->link(t('Enable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> diff --git a/app/Template/project/show.php b/app/Template/project/show.php index 9c6cd1a8..9ffbd5bc 100644 --- a/app/Template/project/show.php +++ b/app/Template/project/show.php @@ -9,8 +9,8 @@ -
  • a(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • -
  • a(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
  • +
  • url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • +
  • url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?>
  • @@ -22,11 +22,11 @@ 0): ?> 0): ?> -
  • a(t('%d tasks on the board', $stats['nb_active_tasks']), 'board', 'show', array('project_id' => $project['id'])) ?>
  • +
  • url->link(t('%d tasks on the board', $stats['nb_active_tasks']), 'board', 'show', array('project_id' => $project['id'])) ?>
  • 0): ?> -
  • a(t('%d closed tasks', $stats['nb_inactive_tasks']), 'project', 'tasks', array('project_id' => $project['id'])) ?>
  • +
  • url->link(t('%d closed tasks', $stats['nb_inactive_tasks']), 'project', 'tasks', array('project_id' => $project['id'])) ?>
  • @@ -50,7 +50,7 @@
    e($column['title']) ?> - '> + '> @@ -67,6 +67,6 @@
    - markdown($project['description']) ?> + text->markdown($project['description']) ?>
    diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 31e3ff04..5c7ea715 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -2,71 +2,71 @@

    • - a(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?>
    • - isManager($project['id'])): ?> + user->isManager($project['id'])): ?>
    • - a(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?> + url->link(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?>
    • - a(t('Integrations'), 'project', 'integration', array('project_id' => $project['id'])) ?> + url->link(t('Integrations'), 'project', 'integration', array('project_id' => $project['id'])) ?>
    • - a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?> + url->link(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
    • - a(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?>
    • - a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
    • - a(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>
    • - userSession->isAdmin() || $project['is_private'] == 0): ?> + user->isAdmin() || $project['is_private'] == 0): ?>
    • - a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?> + url->link(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
    • - a(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
    • - a(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id'])) ?> + url->link(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id'])) ?>
    • - a(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?> + url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?>
    • - a(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?> + url->link(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?> - a(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?> + url->link(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?>
    • - userSession->isAdmin()): ?> + user->isAdmin()): ?>
    • - a(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?> + url->link(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?>
    - acl->isManagerActionAllowed($project['id'])): ?> + user->isManager($project['id'])): ?>

    • - a(t('Tasks'), 'export', 'tasks', array('project_id' => $project['id'])) ?> + url->link(t('Tasks'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
    • - a(t('Subtasks'), 'export', 'subtasks', array('project_id' => $project['id'])) ?> + url->link(t('Subtasks'), 'export', 'subtasks', array('project_id' => $project['id'])) ?>
    • - a(t('Task transitions'), 'export', 'transitions', array('project_id' => $project['id'])) ?> + url->link(t('Task transitions'), 'export', 'transitions', array('project_id' => $project['id'])) ?>
    • - a(t('Daily project summary'), 'export', 'summary', array('project_id' => $project['id'])) ?> + url->link(t('Daily project summary'), 'export', 'summary', array('project_id' => $project['id'])) ?>
    diff --git a/app/Template/project/tasks.php b/app/Template/project/tasks.php index b22746f9..06f28061 100644 --- a/app/Template/project/tasks.php +++ b/app/Template/project/tasks.php @@ -3,19 +3,19 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?> + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
    • - a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?> + url->link(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
    • - a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?> + url->link(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
    diff --git a/app/Template/project/users.php b/app/Template/project/users.php index 18147340..d725a9e8 100644 --- a/app/Template/project/users.php +++ b/app/Template/project/users.php @@ -24,12 +24,12 @@
      -
    • a(t('Revoke'), 'project', 'revoke', array('project_id' => $project['id'], 'user_id' => $user_id), true) ?>
    • +
    • url->link(t('Revoke'), 'project', 'revoke', array('project_id' => $project['id'], 'user_id' => $user_id), true) ?>
    • - a(t('Set project member'), 'project', 'role', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?> + url->link(t('Set project member'), 'project', 'role', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?> - a(t('Set project manager'), 'project', 'role', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?> + url->link(t('Set project manager'), 'project', 'role', array('project_id' => $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?>
    @@ -42,14 +42,14 @@
    -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('project_id', array('project_id' => $project['id'])) ?> + form->hidden('project_id', array('project_id' => $project['id'])) ?> - formLabel(t('User'), 'user_id') ?> - formSelect('user_id', $users['not_allowed'], array(), array(), array('data-notfound="'.t('No results match:').'"'), 'chosen-select') ?>
    + form->label(t('User'), 'user_id') ?> + form->select('user_id', $users['not_allowed'], array(), array(), array('data-notfound="'.t('No results match:').'"'), 'chosen-select') ?>
    @@ -61,11 +61,11 @@
    - - formCsrf() ?> + + form->csrf() ?> - formHidden('id', array('id' => $project['id'])) ?> - formCheckbox('is_everybody_allowed', t('Allow everybody to access to this project'), 1, $project['is_everybody_allowed']) ?> + form->hidden('id', array('id' => $project['id'])) ?> + form->checkbox('is_everybody_allowed', t('Allow everybody to access to this project'), 1, $project['is_everybody_allowed']) ?>
    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'])) ?>
    diff --git a/app/Template/subtask/edit.php b/app/Template/subtask/edit.php index 3058ff44..2e583069 100644 --- a/app/Template/subtask/edit.php +++ b/app/Template/subtask/edit.php @@ -2,28 +2,28 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('task_id', $values) ?> + form->hidden('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) ?>
    - formLabel(t('Time spent'), 'time_spent') ?> - formNumeric('time_spent', $values, $errors) ?>
    + form->label(t('Time spent'), 'time_spent') ?> + form->numeric('time_spent', $values, $errors) ?>
    - 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'])) ?>
    diff --git a/app/Template/subtask/remove.php b/app/Template/subtask/remove.php index c623791d..65ade31d 100644 --- a/app/Template/subtask/remove.php +++ b/app/Template/subtask/remove.php @@ -10,8 +10,8 @@

    e($subtask['title']) ?>

    - a(t('Yes'), 'subtask', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'subtask', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id']), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/subtask/restriction_change_status.php b/app/Template/subtask/restriction_change_status.php index 99e022f8..88e91d82 100644 --- a/app/Template/subtask/restriction_change_status.php +++ b/app/Template/subtask/restriction_change_status.php @@ -2,14 +2,14 @@

    -
    + - formCsrf() ?> - formHidden('redirect', array('redirect' => $redirect)) ?> + form->csrf() ?> + form->hidden('redirect', array('redirect' => $redirect)) ?>

    - formRadios('status', $status_list) ?> - formHidden('id', $subtask_inprogress) ?> + form->radios('status', $status_list) ?> + form->hidden('id', $subtask_inprogress) ?>
    diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index e5368265..c9690f08 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -22,14 +22,14 @@
    - toggleSubtaskStatus($subtask, 'task') ?> + subtask->toggleStatus($subtask, 'task') ?> render('subtask/icons', array('subtask' => $subtask)) . $this->e($subtask['title']) ?> - a($this->e($subtask['name'] ?: $subtask['username']), 'user', 'show', array('user_id' => $subtask['user_id'])) ?> + url->link($this->e($subtask['name'] ?: $subtask['username']), 'user', 'show', array('user_id' => $subtask['user_id'])) ?> @@ -46,19 +46,19 @@
    • - a(t('Move Up'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'up'), true) ?> + url->link(t('Move Up'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'up'), true) ?>
    • - a(t('Move Down'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'down'), true) ?> + url->link(t('Move Down'), 'subtask', 'movePosition', array('project_id' => $project['id'], 'task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'direction' => 'down'), true) ?>
    • - a(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?> + url->link(t('Edit'), 'subtask', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?>
    • - a(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['id'])) ?> + url->link(t('Remove'), 'subtask', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'subtask_id' => $subtask['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').'"')) ?> + + form->csrf() ?> + form->hidden('task_id', array('task_id' => $task['id'])) ?> + form->text('title', array(), array(), array('required', 'placeholder="'.t('Type here to create a new sub-task').'"')) ?> diff --git a/app/Template/swimlane/edit.php b/app/Template/swimlane/edit.php index f39b6fde..cc98b584 100644 --- a/app/Template/swimlane/edit.php +++ b/app/Template/swimlane/edit.php @@ -2,15 +2,15 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php index 3482a56c..daee6af5 100644 --- a/app/Template/swimlane/index.php +++ b/app/Template/swimlane/index.php @@ -8,13 +8,13 @@ - + - formCsrf() ?> - formHidden('project_id', $values) ?> + form->csrf() ?> + form->hidden('project_id', $values) ?> - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    @@ -24,15 +24,15 @@ - + - formCsrf() ?> - formHidden('id', $default_swimlane) ?> + form->csrf() ?> + form->hidden('id', $default_swimlane) ?> - formLabel(t('Rename'), 'default_swimlane') ?> - formText('default_swimlane', $default_swimlane, array(), array('autofocus', 'required', 'maxlength="50"')) ?>
    + form->label(t('Rename'), 'default_swimlane') ?> + form->text('default_swimlane', $default_swimlane, array(), array('autofocus', 'required', 'maxlength="50"')) ?>
    - formCheckbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?> + form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?>
    diff --git a/app/Template/swimlane/remove.php b/app/Template/swimlane/remove.php index 3268f51f..1d7c2b7a 100644 --- a/app/Template/swimlane/remove.php +++ b/app/Template/swimlane/remove.php @@ -9,9 +9,9 @@

    - a(t('Yes'), 'swimlane', 'remove', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'swimlane', 'remove', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true, 'btn btn-red') ?> - a(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/swimlane/table.php b/app/Template/swimlane/table.php index cf22e31b..f38572a3 100644 --- a/app/Template/swimlane/table.php +++ b/app/Template/swimlane/table.php @@ -16,26 +16,26 @@
    • - a(t('Move Up'), 'swimlane', 'moveup', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + url->link(t('Move Up'), 'swimlane', 'moveup', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
    • - a(t('Move Down'), 'swimlane', 'movedown', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + url->link(t('Move Down'), 'swimlane', 'movedown', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
    • - a(t('Rename'), 'swimlane', 'edit', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?> + url->link(t('Rename'), 'swimlane', 'edit', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?>
    • - a(t('Disable'), 'swimlane', 'disable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + url->link(t('Disable'), 'swimlane', 'disable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> - a(t('Enable'), 'swimlane', 'enable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + url->link(t('Enable'), 'swimlane', 'enable', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true) ?>
    • - a(t('Remove'), 'swimlane', 'confirm', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?> + url->link(t('Remove'), 'swimlane', 'confirm', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?>
    diff --git a/app/Template/task/close.php b/app/Template/task/close.php index a0a95787..79150333 100644 --- a/app/Template/task/close.php +++ b/app/Template/task/close.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes', 'redirect' => $redirect), true, 'btn btn-red') ?> + url->link(t('Yes'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes', 'redirect' => $redirect), true, 'btn btn-red') ?> - a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
    \ No newline at end of file diff --git a/app/Template/task/details.php b/app/Template/task/details.php index c70945bc..f688585a 100644 --- a/app/Template/task/details.php +++ b/app/Template/task/details.php @@ -77,7 +77,7 @@
  • - a(t('Public link'), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token']), false, '', '', true) ?> + url->link(t('Public link'), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token']), false, '', '', true) ?>
  • diff --git a/app/Template/task/duplicate.php b/app/Template/task/duplicate.php index cc7e0870..e74d2906 100644 --- a/app/Template/task/duplicate.php +++ b/app/Template/task/duplicate.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> + url->link(t('Yes'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/task/duplicate_project.php b/app/Template/task/duplicate_project.php index e227e046..9a8e3c4a 100644 --- a/app/Template/task/duplicate_project.php +++ b/app/Template/task/duplicate_project.php @@ -6,18 +6,18 @@

    - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formLabel(t('Project'), 'project_id') ?> - formSelect('project_id', $projects_list, $values, $errors) ?>
    + form->hidden('id', $values) ?> + form->label(t('Project'), 'project_id') ?> + form->select('project_id', $projects_list, $values, $errors) ?>
    - 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'])) ?>
    diff --git a/app/Template/task/edit.php b/app/Template/task/edit.php index f9ac2b20..2900b739 100644 --- a/app/Template/task/edit.php +++ b/app/Template/task/edit.php @@ -2,16 +2,16 @@

    -
    + - formCsrf() ?> + form->csrf() ?>
    - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('required', 'maxlength="200"')) ?>
    + form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('required', 'maxlength="200"')) ?>
    - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
      @@ -23,7 +23,7 @@
    - formTextarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?> + form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?>
    @@ -35,23 +35,23 @@
    - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Assignee'), 'owner_id') ?> - formSelect('owner_id', $users_list, $values, $errors) ?>
    + form->label(t('Assignee'), 'owner_id') ?> + form->select('owner_id', $users_list, $values, $errors) ?>
    - formLabel(t('Category'), 'category_id') ?> - formSelect('category_id', $categories_list, $values, $errors) ?>
    + form->label(t('Category'), 'category_id') ?> + form->select('category_id', $categories_list, $values, $errors) ?>
    - formLabel(t('Color'), 'color_id') ?> - formSelect('color_id', $colors_list, $values, $errors) ?>
    + form->label(t('Color'), 'color_id') ?> + form->select('color_id', $colors_list, $values, $errors) ?>
    - formLabel(t('Complexity'), 'score') ?> - formNumber('score', $values, $errors) ?>
    + form->label(t('Complexity'), 'score') ?> + form->number('score', $values, $errors) ?>
    - formLabel(t('Due Date'), 'date_due') ?> - formText('date_due', $values, $errors, array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Due Date'), 'date_due') ?> + form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    @@ -59,9 +59,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> - 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'])) ?>
    diff --git a/app/Template/task/edit_description.php b/app/Template/task/edit_description.php index 2af26ef4..84f0cebd 100644 --- a/app/Template/task/edit_description.php +++ b/app/Template/task/edit_description.php @@ -2,10 +2,10 @@

    -
    + - formCsrf() ?> - formHidden('id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?>
      @@ -17,7 +17,7 @@
    - formTextarea('description', $values, $errors, array('autofocus', 'placeholder="'.t('Leave a description').'"'), 'description-textarea') ?> + form->textarea('description', $values, $errors, array('autofocus', 'placeholder="'.t('Leave a description').'"'), 'description-textarea') ?>
    @@ -30,9 +30,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> - 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'])) ?>
    diff --git a/app/Template/task/edit_recurrence.php b/app/Template/task/edit_recurrence.php index 76894bd4..c261e368 100644 --- a/app/Template/task/edit_recurrence.php +++ b/app/Template/task/edit_recurrence.php @@ -15,36 +15,36 @@ -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('project_id', $values) ?> + form->hidden('id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Generate recurrent task'), 'recurrence_status') ?> - formSelect('recurrence_status', $recurrence_status_list, $values, $errors) ?> + form->label(t('Generate recurrent task'), 'recurrence_status') ?> + form->select('recurrence_status', $recurrence_status_list, $values, $errors) ?> - formLabel(t('Trigger to generate recurrent task'), 'recurrence_trigger') ?> - formSelect('recurrence_trigger', $recurrence_trigger_list, $values, $errors) ?> + form->label(t('Trigger to generate recurrent task'), 'recurrence_trigger') ?> + form->select('recurrence_trigger', $recurrence_trigger_list, $values, $errors) ?> - formLabel(t('Factor to calculate new due date'), 'recurrence_factor') ?> - formNumber('recurrence_factor', $values, $errors) ?> + form->label(t('Factor to calculate new due date'), 'recurrence_factor') ?> + form->number('recurrence_factor', $values, $errors) ?> - formLabel(t('Timeframe to calculate new due date'), 'recurrence_timeframe') ?> - formSelect('recurrence_timeframe', $recurrence_timeframe_list, $values, $errors) ?> + form->label(t('Timeframe to calculate new due date'), 'recurrence_timeframe') ?> + form->select('recurrence_timeframe', $recurrence_timeframe_list, $values, $errors) ?> - formLabel(t('Base date to calculate new due date'), 'recurrence_basedate') ?> - formSelect('recurrence_basedate', $recurrence_basedate_list, $values, $errors) ?> + form->label(t('Base date to calculate new due date'), 'recurrence_basedate') ?> + form->select('recurrence_basedate', $recurrence_basedate_list, $values, $errors) ?>
    - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id'])) ?> - 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'])) ?>
    diff --git a/app/Template/task/layout.php b/app/Template/task/layout.php index dd59a9fc..18ddea36 100644 --- a/app/Template/task/layout.php +++ b/app/Template/task/layout.php @@ -3,11 +3,11 @@
    • - a(t('Back to the board'), 'board', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('Back to the board'), 'board', 'show', array('project_id' => $task['project_id'])) ?>
    • - a(t('Calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?> + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $task['project_id'])) ?>
    diff --git a/app/Template/task/move_project.php b/app/Template/task/move_project.php index ccc67851..b0b33f81 100644 --- a/app/Template/task/move_project.php +++ b/app/Template/task/move_project.php @@ -6,18 +6,18 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formLabel(t('Project'), 'project_id') ?> - formSelect('project_id', $projects_list, $values, $errors) ?>
    + form->hidden('id', $values) ?> + form->label(t('Project'), 'project_id') ?> + form->select('project_id', $projects_list, $values, $errors) ?>
    - 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'])) ?>
    diff --git a/app/Template/task/new.php b/app/Template/task/new.php index 37294c89..bd00d347 100644 --- a/app/Template/task/new.php +++ b/app/Template/task/new.php @@ -1,7 +1,7 @@ @@ -11,15 +11,15 @@
    -
    + - formCsrf() ?> + form->csrf() ?>
    - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"'), 'form-input-large') ?>
    + form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"'), 'form-input-large') ?>
    - formLabel(t('Description'), 'description') ?> + form->label(t('Description'), 'description') ?>
      @@ -31,7 +31,7 @@
    - formTextarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?> + form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"')) ?>
    @@ -41,44 +41,44 @@
    - formCheckbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?> + form->checkbox('another_task', t('Create another task'), 1, isset($values['another_task']) && $values['another_task'] == 1) ?>
    - formHidden('project_id', $values) ?> + form->hidden('project_id', $values) ?> - formLabel(t('Assignee'), 'owner_id') ?> - formSelect('owner_id', $users_list, $values, $errors) ?>
    + form->label(t('Assignee'), 'owner_id') ?> + form->select('owner_id', $users_list, $values, $errors) ?>
    - formLabel(t('Category'), 'category_id') ?> - formSelect('category_id', $categories_list, $values, $errors) ?>
    + form->label(t('Category'), 'category_id') ?> + form->select('category_id', $categories_list, $values, $errors) ?>
    - formLabel(t('Swimlane'), 'swimlane_id') ?> - formSelect('swimlane_id', $swimlanes_list, $values, $errors) ?>
    + form->label(t('Swimlane'), 'swimlane_id') ?> + form->select('swimlane_id', $swimlanes_list, $values, $errors) ?>
    - formLabel(t('Column'), 'column_id') ?> - formSelect('column_id', $columns_list, $values, $errors) ?>
    + form->label(t('Column'), 'column_id') ?> + form->select('column_id', $columns_list, $values, $errors) ?>
    - formLabel(t('Color'), 'color_id') ?> - formSelect('color_id', $colors_list, $values, $errors) ?>
    + form->label(t('Color'), 'color_id') ?> + form->select('color_id', $colors_list, $values, $errors) ?>
    - formLabel(t('Complexity'), 'score') ?> - formNumber('score', $values, $errors) ?>
    + form->label(t('Complexity'), 'score') ?> + form->number('score', $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) ?>
    - formLabel(t('Due Date'), 'date_due') ?> - formText('date_due', $values, $errors, array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?>
    + form->label(t('Due Date'), 'date_due') ?> + form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
    - a(t('cancel'), 'board', 'show', array('project_id' => $values['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $values['project_id']), false, 'close-popover') ?>
    diff --git a/app/Template/task/open.php b/app/Template/task/open.php index 1fcdcd80..fbcc1111 100644 --- a/app/Template/task/open.php +++ b/app/Template/task/open.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> + url->link(t('Yes'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/task/public.php b/app/Template/task/public.php index 9f32f669..73116de9 100644 --- a/app/Template/task/public.php +++ b/app/Template/task/public.php @@ -2,7 +2,7 @@ render('task/details', array('task' => $task, 'project' => $project, 'not_editable' => true)) ?> -

    a(t('Back to the board'), 'board', 'readonly', array('token' => $project['token'])) ?>

    +

    url->link(t('Back to the board'), 'board', 'readonly', array('token' => $project['token'])) ?>

    render('task/show_description', array( 'task' => $task, diff --git a/app/Template/task/recurring_info.php b/app/Template/task/recurring_info.php index 897f6207..ad64ae19 100644 --- a/app/Template/task/recurring_info.php +++ b/app/Template/task/recurring_info.php @@ -24,13 +24,13 @@
  • - a('#'.$task['recurrence_parent'], 'task', 'show', array('task_id' => $task['recurrence_parent'], 'project_id' => $task['project_id'])) ?> + url->link('#'.$task['recurrence_parent'], 'task', 'show', array('task_id' => $task['recurrence_parent'], 'project_id' => $task['project_id'])) ?>
  • - a('#'.$task['recurrence_child'], 'task', 'show', array('task_id' => $task['recurrence_child'], 'project_id' => $task['project_id'])) ?> + url->link('#'.$task['recurrence_child'], 'task', 'show', array('task_id' => $task['recurrence_child'], 'project_id' => $task['project_id'])) ?>
  • diff --git a/app/Template/task/remove.php b/app/Template/task/remove.php index c1eea5a0..2f6edc22 100644 --- a/app/Template/task/remove.php +++ b/app/Template/task/remove.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> + url->link(t('Yes'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/task/show.php b/app/Template/task/show.php index 5aa352a6..54c124f6 100644 --- a/app/Template/task/show.php +++ b/app/Template/task/show.php @@ -1,9 +1,9 @@ render('task/details', array( 'task' => $task, 'project' => $project, - 'recurrence_trigger_list' => $this->task->getRecurrenceTriggerList(), - 'recurrence_timeframe_list' => $this->task->getRecurrenceTimeframeList(), - 'recurrence_basedate_list' => $this->task->getRecurrenceBasedateList(), + 'recurrence_trigger_list' => $this->task->recurrenceTriggers(), + 'recurrence_timeframe_list' => $this->task->recurrenceTimeframes(), + 'recurrence_basedate_list' => $this->task->recurrenceBasedates(), )) ?> render('task/time', array('task' => $task, 'values' => $values, 'date_format' => $date_format, 'date_formats' => $date_formats)) ?> diff --git a/app/Template/task/show_description.php b/app/Template/task/show_description.php index 3807ddd2..f823e7d6 100644 --- a/app/Template/task/show_description.php +++ b/app/Template/task/show_description.php @@ -6,7 +6,7 @@
    - markdown( + text->markdown( $task['description'], array( 'controller' => 'task', @@ -17,7 +17,7 @@ ) ) ?> - markdown( + text->markdown( $task['description'], array( 'controller' => 'task', diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index 7c82700a..bb137ac9 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -2,65 +2,65 @@

    • - a(t('Summary'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Summary'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Activity stream'), 'task', 'activites', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Activity stream'), 'task', 'activites', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Transitions'), 'task', 'transitions', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Transitions'), 'task', 'transitions', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • 0 || $task['time_spent'] > 0): ?>
    • - a(t('Time tracking'), 'task', 'timesheet', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Time tracking'), 'task', 'timesheet', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>

    • - a(t('Edit the task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Edit the task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Edit the description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Edit the description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Edit recurrence'), 'task', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Edit recurrence'), 'task', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Add a sub-task'), 'subtask', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Add a sub-task'), 'subtask', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Attach a document'), 'file', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Attach a document'), 'file', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Add a screenshot'), 'file', 'screenshot', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Add a screenshot'), 'file', 'screenshot', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Duplicate'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Duplicate'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Duplicate to another project'), 'task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Duplicate to another project'), 'task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Move to another project'), 'task', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Move to another project'), 'task', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - a(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> - a(t('Open this task'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Open this task'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • - taskPermission->canRemoveTask($task)): ?> + task->canRemove($task)): ?>
    • - a(t('Remove'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('Remove'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    diff --git a/app/Template/task/table.php b/app/Template/task/table.php index 4ccf83b9..d06bc7b7 100644 --- a/app/Template/task/table.php +++ b/app/Template/task/table.php @@ -13,16 +13,16 @@ getCollection() as $task): ?> - a('#'.$this->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link('#'.$this->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> - inList($task['column_id'], $columns) ?> + text->in($task['column_id'], $columns) ?> - inList($task['category_id'], $categories, '') ?> + text->in($task['category_id'], $categories, '') ?> - a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> diff --git a/app/Template/task/time.php b/app/Template/task/time.php index 4aeddc70..6682a08d 100644 --- a/app/Template/task/time.php +++ b/app/Template/task/time.php @@ -1,15 +1,15 @@ -
    - formCsrf() ?> - formHidden('id', $values) ?> + + form->csrf() ?> + form->hidden('id', $values) ?> - formLabel(t('Start date'), 'date_started') ?> - formText('date_started', $values, array(), array('placeholder="'.$this->inList($date_format, $date_formats).'"'), 'form-date') ?> + form->label(t('Start date'), 'date_started') ?> + form->text('date_started', $values, array(), array('placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?> - formLabel(t('Time estimated'), 'time_estimated') ?> - formNumeric('time_estimated', $values, array(), array('placeholder="'.t('hours').'"')) ?> + form->label(t('Time estimated'), 'time_estimated') ?> + form->numeric('time_estimated', $values, array(), array('placeholder="'.t('hours').'"')) ?> - formLabel(t('Time spent'), 'time_spent') ?> - formNumeric('time_spent', $values, array(), array('placeholder="'.t('hours').'"')) ?> + form->label(t('Time spent'), 'time_spent') ?> + form->numeric('time_spent', $values, array(), array('placeholder="'.t('hours').'"')) ?>
    \ No newline at end of file diff --git a/app/Template/task/time_tracking.php b/app/Template/task/time_tracking.php index 55d33e5e..441cb585 100644 --- a/app/Template/task/time_tracking.php +++ b/app/Template/task/time_tracking.php @@ -14,7 +14,7 @@ getCollection() as $record): ?> - a($this->e($record['user_fullname'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?> + url->link($this->e($record['user_fullname'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?> diff --git a/app/Template/task/transitions.php b/app/Template/task/transitions.php index 2f45eb39..6455fd66 100644 --- a/app/Template/task/transitions.php +++ b/app/Template/task/transitions.php @@ -18,7 +18,7 @@ e($transition['src_column']) ?> e($transition['dst_column']) ?> - a($this->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?> + url->link($this->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?> diff --git a/app/Template/tasklink/create.php b/app/Template/tasklink/create.php index 3394271a..749f2968 100644 --- a/app/Template/tasklink/create.php +++ b/app/Template/tasklink/create.php @@ -2,17 +2,17 @@

    -
    + - formCsrf() ?> - formHidden('task_id', array('task_id' => $task['id'])) ?> - formHidden('opposite_task_id', $values) ?> + form->csrf() ?> + form->hidden('task_id', array('task_id' => $task['id'])) ?> + form->hidden('opposite_task_id', $values) ?> - formLabel(t('Label'), 'link_id') ?> - formSelect('link_id', $labels, $values, $errors) ?> + form->label(t('Label'), 'link_id') ?> + form->select('link_id', $labels, $values, $errors) ?> - formLabel(t('Task'), 'title') ?> - formText( + form->label(t('Task'), 'title') ?> + form->text( 'title', $values, $errors, @@ -21,7 +21,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') ?> @@ -29,9 +29,9 @@ - a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> + url->link(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?> - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/tasklink/edit.php b/app/Template/tasklink/edit.php index 37c3cb14..73b43277 100644 --- a/app/Template/tasklink/edit.php +++ b/app/Template/tasklink/edit.php @@ -2,18 +2,18 @@

    -
    + - formCsrf() ?> - formHidden('id', $values) ?> - formHidden('task_id', $values) ?> - formHidden('opposite_task_id', $values) ?> + form->csrf() ?> + form->hidden('id', $values) ?> + form->hidden('task_id', $values) ?> + form->hidden('opposite_task_id', $values) ?> - formLabel(t('Label'), 'link_id') ?> - formSelect('link_id', $labels, $values, $errors) ?> + form->label(t('Label'), 'link_id') ?> + form->select('link_id', $labels, $values, $errors) ?> - formLabel(t('Task'), 'title') ?> - formText( + form->label(t('Task'), 'title') ?> + form->text( 'title', $values, $errors, @@ -22,13 +22,13 @@ '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') ?>
    - 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'])) ?>
    \ No newline at end of file diff --git a/app/Template/tasklink/remove.php b/app/Template/tasklink/remove.php index 9322ec24..262fb488 100644 --- a/app/Template/tasklink/remove.php +++ b/app/Template/tasklink/remove.php @@ -8,8 +8,8 @@

    - a(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?> + url->link(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?> - 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'])) ?>
    \ No newline at end of file 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 @@
      -
    • a(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • -
    • a(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • +
    • url->link(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    • +
    • url->link(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
    @@ -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') ?> diff --git a/app/Template/timetable/index.php b/app/Template/timetable/index.php index 27cbe39c..7a63a2ec 100644 --- a/app/Template/timetable/index.php +++ b/app/Template/timetable/index.php @@ -1,24 +1,24 @@ - formHidden('controller', $values) ?> - formHidden('action', $values) ?> - formHidden('user_id', $values) ?> + form->hidden('controller', $values) ?> + form->hidden('action', $values) ?> + form->hidden('user_id', $values) ?> - formLabel(t('From'), 'from') ?> - formText('from', $values, array(), array(), 'form-date') ?> + form->label(t('From'), 'from') ?> + form->text('from', $values, array(), array(), 'form-date') ?> - formLabel(t('To'), 'to') ?> - formText('to', $values, array(), array(), 'form-date') ?> + form->label(t('To'), 'to') ?> + form->text('to', $values, array(), array(), 'form-date') ?>
    diff --git a/app/Template/timetable_day/index.php b/app/Template/timetable_day/index.php index 50aca602..d2877816 100644 --- a/app/Template/timetable_day/index.php +++ b/app/Template/timetable_day/index.php @@ -15,7 +15,7 @@ - a(t('Remove'), 'timetableday', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> + url->link(t('Remove'), 'timetableday', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> @@ -24,16 +24,16 @@

    -
    + - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Start time'), 'start') ?> - formSelect('start', $this->getDayHours(), $values, $errors) ?> + form->label(t('Start time'), 'start') ?> + form->select('start', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('End time'), 'end') ?> - formSelect('end', $this->getDayHours(), $values, $errors) ?> + form->label(t('End time'), 'end') ?> + form->select('end', $this->datetime->getDayHours(), $values, $errors) ?>
    diff --git a/app/Template/timetable_day/remove.php b/app/Template/timetable_day/remove.php index b3ee8775..1b33b266 100644 --- a/app/Template/timetable_day/remove.php +++ b/app/Template/timetable_day/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'timetableday', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'timetableday', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> - a(t('cancel'), 'timetableday', 'index', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'timetableday', 'index', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/timetable_extra/index.php b/app/Template/timetable_extra/index.php index a0a55bec..d3224ae6 100644 --- a/app/Template/timetable_extra/index.php +++ b/app/Template/timetable_extra/index.php @@ -21,7 +21,7 @@ e($slot['comment']) ?> - a(t('Remove'), 'timetableextra', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> + url->link(t('Remove'), 'timetableextra', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> @@ -31,24 +31,24 @@ - + - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Day'), 'date') ?> - formText('date', $values, $errors, array('required'), 'form-date') ?> + form->label(t('Day'), 'date') ?> + form->text('date', $values, $errors, array('required'), 'form-date') ?> - formCheckbox('all_day', t('All day'), 1) ?> + form->checkbox('all_day', t('All day'), 1) ?> - formLabel(t('Start time'), 'start') ?> - formSelect('start', $this->getDayHours(), $values, $errors) ?> + form->label(t('Start time'), 'start') ?> + form->select('start', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('End time'), 'end') ?> - formSelect('end', $this->getDayHours(), $values, $errors) ?> + form->label(t('End time'), 'end') ?> + form->select('end', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('Comment'), 'comment') ?> - formText('comment', $values, $errors) ?> + form->label(t('Comment'), 'comment') ?> + form->text('comment', $values, $errors) ?>
    diff --git a/app/Template/timetable_extra/remove.php b/app/Template/timetable_extra/remove.php index d8dc5b3b..fc907438 100644 --- a/app/Template/timetable_extra/remove.php +++ b/app/Template/timetable_extra/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'timetableextra', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'timetableextra', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> - a(t('cancel'), 'timetableextra', 'index', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'timetableextra', 'index', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/timetable_off/index.php b/app/Template/timetable_off/index.php index f35d331e..75e02dbd 100644 --- a/app/Template/timetable_off/index.php +++ b/app/Template/timetable_off/index.php @@ -21,7 +21,7 @@ e($slot['comment']) ?> - a(t('Remove'), 'timetableoff', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> + url->link(t('Remove'), 'timetableoff', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> @@ -31,24 +31,24 @@ - + - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Day'), 'date') ?> - formText('date', $values, $errors, array('required'), 'form-date') ?> + form->label(t('Day'), 'date') ?> + form->text('date', $values, $errors, array('required'), 'form-date') ?> - formCheckbox('all_day', t('All day'), 1) ?> + form->checkbox('all_day', t('All day'), 1) ?> - formLabel(t('Start time'), 'start') ?> - formSelect('start', $this->getDayHours(), $values, $errors) ?> + form->label(t('Start time'), 'start') ?> + form->select('start', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('End time'), 'end') ?> - formSelect('end', $this->getDayHours(), $values, $errors) ?> + form->label(t('End time'), 'end') ?> + form->select('end', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('Comment'), 'comment') ?> - formText('comment', $values, $errors) ?> + form->label(t('Comment'), 'comment') ?> + form->text('comment', $values, $errors) ?>
    diff --git a/app/Template/timetable_off/remove.php b/app/Template/timetable_off/remove.php index 64863781..621e191c 100644 --- a/app/Template/timetable_off/remove.php +++ b/app/Template/timetable_off/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'timetableoff', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'timetableoff', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> - a(t('cancel'), 'timetableoff', 'index', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'timetableoff', 'index', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/timetable_week/index.php b/app/Template/timetable_week/index.php index 8fb51909..552e9302 100644 --- a/app/Template/timetable_week/index.php +++ b/app/Template/timetable_week/index.php @@ -13,11 +13,11 @@ - getWeekDay($slot['day']) ?> + datetime->getWeekDay($slot['day']) ?> - a(t('Remove'), 'timetableweek', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> + url->link(t('Remove'), 'timetableweek', 'confirm', array('user_id' => $user['id'], 'slot_id' => $slot['id'])) ?> @@ -26,19 +26,19 @@

    - + - formHidden('user_id', $values) ?> - formCsrf() ?> + form->hidden('user_id', $values) ?> + form->csrf() ?> - formLabel(t('Day'), 'day') ?> - formSelect('day', $this->getWeekDays(), $values, $errors) ?> + form->label(t('Day'), 'day') ?> + form->select('day', $this->datetime->getWeekDays(), $values, $errors) ?> - formLabel(t('Start time'), 'start') ?> - formSelect('start', $this->getDayHours(), $values, $errors) ?> + form->label(t('Start time'), 'start') ?> + form->select('start', $this->datetime->getDayHours(), $values, $errors) ?> - formLabel(t('End time'), 'end') ?> - formSelect('end', $this->getDayHours(), $values, $errors) ?> + form->label(t('End time'), 'end') ?> + form->select('end', $this->datetime->getDayHours(), $values, $errors) ?>
    diff --git a/app/Template/timetable_week/remove.php b/app/Template/timetable_week/remove.php index f8eb2bbe..f5a10199 100644 --- a/app/Template/timetable_week/remove.php +++ b/app/Template/timetable_week/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'timetableweek', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> + url->link(t('Yes'), 'timetableweek', 'remove', array('user_id' => $user['id'], 'slot_id' => $slot_id), true, 'btn btn-red') ?> - a(t('cancel'), 'timetableweek', 'index', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'timetableweek', 'index', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/twofactor/check.php b/app/Template/twofactor/check.php index c29c0129..0e29d526 100644 --- a/app/Template/twofactor/check.php +++ b/app/Template/twofactor/check.php @@ -1,8 +1,8 @@ - + - formCsrf() ?> - formLabel(t('Code'), 'code') ?> - formText('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?> + form->csrf() ?> + form->label(t('Code'), 'code') ?> + form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?>
    diff --git a/app/Template/twofactor/disable.php b/app/Template/twofactor/disable.php index 6909b446..36be4ef9 100644 --- a/app/Template/twofactor/disable.php +++ b/app/Template/twofactor/disable.php @@ -8,7 +8,7 @@

    - a(t('Yes'), 'twofactor', 'disable', array('user_id' => $user['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('Yes'), 'twofactor', 'disable', array('user_id' => $user['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> + url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/twofactor/index.php b/app/Template/twofactor/index.php index 28e93f14..36b92653 100644 --- a/app/Template/twofactor/index.php +++ b/app/Template/twofactor/index.php @@ -2,10 +2,10 @@

    - + - formCsrf() ?> - formCheckbox('twofactor_activated', t('Enable/disable two factor authentication'), 1, isset($user['twofactor_activated']) && $user['twofactor_activated'] == 1) ?> + form->csrf() ?> + form->checkbox('twofactor_activated', t('Enable/disable two factor authentication'), 1, isset($user['twofactor_activated']) && $user['twofactor_activated'] == 1) ?>
    @@ -24,11 +24,11 @@

    - + - formCsrf() ?> - formLabel(t('Code'), 'code') ?> - formText('code', array(), array(), array('placeholder="123456"'), 'form-numeric') ?> + form->csrf() ?> + form->label(t('Code'), 'code') ?> + form->text('code', array(), array(), array('placeholder="123456"'), 'form-numeric') ?>
    diff --git a/app/Template/user/calendar.php b/app/Template/user/calendar.php index 6708c5c3..7ec12496 100644 --- a/app/Template/user/calendar.php +++ b/app/Template/user/calendar.php @@ -1,6 +1,6 @@
    \ No newline at end of file diff --git a/app/Template/user/edit.php b/app/Template/user/edit.php index bd1c4889..e29dcfca 100644 --- a/app/Template/user/edit.php +++ b/app/Template/user/edit.php @@ -1,42 +1,42 @@ - + - formCsrf() ?> + form->csrf() ?> - formHidden('id', $values) ?> - formHidden('is_ldap_user', $values) ?> + form->hidden('id', $values) ?> + form->hidden('is_ldap_user', $values) ?> - formLabel(t('Username'), 'username') ?> - formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
    + form->label(t('Username'), 'username') ?> + form->text('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
    - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors) ?>
    + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors) ?>
    - formLabel(t('Email'), 'email') ?> - formEmail('email', $values, $errors) ?>
    + form->label(t('Email'), 'email') ?> + form->email('email', $values, $errors) ?>
    - formLabel(t('Default project'), 'default_project_id') ?> - formSelect('default_project_id', $projects, $values, $errors) ?>
    + form->label(t('Default project'), 'default_project_id') ?> + form->select('default_project_id', $projects, $values, $errors) ?>
    - formLabel(t('Timezone'), 'timezone') ?> - formSelect('timezone', $timezones, $values, $errors) ?>
    + form->label(t('Timezone'), 'timezone') ?> + form->select('timezone', $timezones, $values, $errors) ?>
    - formLabel(t('Language'), 'language') ?> - formSelect('language', $languages, $values, $errors) ?>
    + form->label(t('Language'), 'language') ?> + form->select('language', $languages, $values, $errors) ?>
    - formCheckbox('disable_login_form', t('Disable login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
    + form->checkbox('disable_login_form', t('Disable login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
    - userSession->isAdmin()): ?> - formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1) ?>
    + user->isAdmin()): ?> + form->checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1) ?>
    - a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/user/external.php b/app/Template/user/external.php index b4cea156..df85ace7 100644 --- a/app/Template/user/external.php +++ b/app/Template/user/external.php @@ -6,11 +6,11 @@

    - userSession->isCurrentUser($user['id'])): ?> + user->isCurrentUser($user['id'])): ?> - a(t('Link my Google Account'), 'user', 'google', array(), true) ?> + url->link(t('Link my Google Account'), 'user', 'google', array(), true) ?> - a(t('Unlink my Google Account'), 'user', 'unlinkGoogle', array(), true) ?> + url->link(t('Unlink my Google Account'), 'user', 'unlinkGoogle', array(), true) ?> @@ -22,11 +22,11 @@

    - userSession->isCurrentUser($user['id'])): ?> + user->isCurrentUser($user['id'])): ?> - a(t('Link my GitHub Account'), 'user', 'github', array(), true) ?> + url->link(t('Link my GitHub Account'), 'user', 'github', array(), true) ?> - a(t('Unlink my GitHub Account'), 'user', 'unlinkGitHub', array(), true) ?> + url->link(t('Unlink my GitHub Account'), 'user', 'unlinkGitHub', array(), true) ?> diff --git a/app/Template/user/index.php b/app/Template/user/index.php index d6b0fecf..6b4396b2 100644 --- a/app/Template/user/index.php +++ b/app/Template/user/index.php @@ -1,8 +1,8 @@

    @@ -26,10 +26,10 @@ getCollection() as $user): ?> - a('#'.$user['id'], 'user', 'show', array('user_id' => $user['id'])) ?> + url->link('#'.$user['id'], 'user', 'show', array('user_id' => $user['id'])) ?> - a($this->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link($this->e($user['username']), 'user', 'show', array('user_id' => $user['id'])) ?> e($user['name']) ?> diff --git a/app/Template/user/last.php b/app/Template/user/last.php index 317334b8..ab25f79b 100644 --- a/app/Template/user/last.php +++ b/app/Template/user/last.php @@ -17,7 +17,7 @@ e($login['auth_type']) ?> e($login['ip']) ?> - e($this->summary($login['user_agent'])) ?> + e($this->text->truncate($login['user_agent'])) ?> diff --git a/app/Template/user/layout.php b/app/Template/user/layout.php index a5a78a3f..e60ab77d 100644 --- a/app/Template/user/layout.php +++ b/app/Template/user/layout.php @@ -1,9 +1,9 @@
    diff --git a/app/Template/user/new.php b/app/Template/user/new.php index e56f38b1..ba7a3881 100644 --- a/app/Template/user/new.php +++ b/app/Template/user/new.php @@ -1,44 +1,44 @@
    -
    + - formCsrf() ?> + form->csrf() ?> - formLabel(t('Username'), 'username') ?> - formText('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    + form->label(t('Username'), 'username') ?> + form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
    - formLabel(t('Name'), 'name') ?> - formText('name', $values, $errors) ?>
    + form->label(t('Name'), 'name') ?> + form->text('name', $values, $errors) ?>
    - formLabel(t('Email'), 'email') ?> - formEmail('email', $values, $errors) ?>
    + form->label(t('Email'), 'email') ?> + form->email('email', $values, $errors) ?>
    - formLabel(t('Password'), 'password') ?> - formPassword('password', $values, $errors, array('required')) ?>
    + form->label(t('Password'), 'password') ?> + form->password('password', $values, $errors, array('required')) ?>
    - formLabel(t('Confirmation'), 'confirmation') ?> - formPassword('confirmation', $values, $errors, array('required')) ?>
    + form->label(t('Confirmation'), 'confirmation') ?> + form->password('confirmation', $values, $errors, array('required')) ?>
    - formLabel(t('Default project'), 'default_project_id') ?> - formSelect('default_project_id', $projects, $values, $errors) ?>
    + form->label(t('Default project'), 'default_project_id') ?> + form->select('default_project_id', $projects, $values, $errors) ?>
    - formLabel(t('Timezone'), 'timezone') ?> - formSelect('timezone', $timezones, $values, $errors) ?>
    + form->label(t('Timezone'), 'timezone') ?> + form->select('timezone', $timezones, $values, $errors) ?>
    - formLabel(t('Language'), 'language') ?> - formSelect('language', $languages, $values, $errors) ?>
    + form->label(t('Language'), 'language') ?> + form->select('language', $languages, $values, $errors) ?>
    - formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?> + form->checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?>
    - a(t('cancel'), 'user', 'index') ?> + url->link(t('cancel'), 'user', 'index') ?>
    diff --git a/app/Template/user/notifications.php b/app/Template/user/notifications.php index 56c48f8f..df5cbb9b 100644 --- a/app/Template/user/notifications.php +++ b/app/Template/user/notifications.php @@ -2,18 +2,18 @@

    -
    + - formCsrf() ?> + form->csrf() ?> - formCheckbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?>
    + form->checkbox('notifications_enabled', t('Enable email notifications'), '1', $notifications['notifications_enabled'] == 1) ?>



    $project_name): ?> - formCheckbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
    + form->checkbox('projects['.$project_id.']', $project_name, '1', isset($notifications['project_'.$project_id])) ?>
    @@ -21,6 +21,6 @@
    - a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/user/password.php b/app/Template/user/password.php index 14de0d42..3ef28d33 100644 --- a/app/Template/user/password.php +++ b/app/Template/user/password.php @@ -2,25 +2,25 @@

    -
    + - formHidden('id', $values) ?> - formCsrf() ?> + form->hidden('id', $values) ?> + form->csrf() ?>
    - formLabel(t('Current password for the user "%s"', $this->getFullname()), 'current_password') ?> - formPassword('current_password', $values, $errors) ?>
    + form->label(t('Current password for the user "%s"', $this->user->getFullname()), 'current_password') ?> + form->password('current_password', $values, $errors) ?>
    - formLabel(t('New password for the user "%s"', $this->getFullname($user)), 'password') ?> - formPassword('password', $values, $errors) ?>
    + form->label(t('New password for the user "%s"', $this->user->getFullname($user)), 'password') ?> + form->password('password', $values, $errors) ?>
    - formLabel(t('Confirmation'), 'confirmation') ?> - formPassword('confirmation', $values, $errors) ?>
    + form->label(t('Confirmation'), 'confirmation') ?> + form->password('confirmation', $values, $errors) ?>
    - a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
    diff --git a/app/Template/user/remove.php b/app/Template/user/remove.php index e4b09cfa..810a3a3f 100644 --- a/app/Template/user/remove.php +++ b/app/Template/user/remove.php @@ -6,8 +6,8 @@

    - a(t('Yes'), 'user', 'remove', array('user_id' => $user['id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> + url->link(t('Yes'), 'user', 'remove', array('user_id' => $user['id'], 'confirmation' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('cancel'), 'user', 'show', array('user_id' => $user['id'])) ?>
    \ No newline at end of file diff --git a/app/Template/user/sessions.php b/app/Template/user/sessions.php index 5a06057c..a7504a7a 100644 --- a/app/Template/user/sessions.php +++ b/app/Template/user/sessions.php @@ -18,8 +18,8 @@ e($session['ip']) ?> - e($this->summary($session['user_agent'])) ?> - a(t('Remove'), 'user', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?> + e($this->text->truncate($session['user_agent'])) ?> + url->link(t('Remove'), 'user', 'removeSession', array('user_id' => $user['id'], 'id' => $session['id']), true) ?> diff --git a/app/Template/user/share.php b/app/Template/user/share.php index 55d06897..8f333a6b 100644 --- a/app/Template/user/share.php +++ b/app/Template/user/share.php @@ -6,12 +6,12 @@
      -
    • a(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    - a(t('Disable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> + url->link(t('Disable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> - a(t('Enable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> + url->link(t('Enable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> diff --git a/app/Template/user/show.php b/app/Template/user/show.php index 1be39cc3..5442e2e7 100644 --- a/app/Template/user/show.php +++ b/app/Template/user/show.php @@ -21,8 +21,8 @@
    • e($projects[$user['default_project_id']]) : t('None') ?>
    • -
    • inList($user['timezone'], $timezones) ?>
    • -
    • inList($user['language'], $languages) ?>
    • +
    • text->in($user['timezone'], $timezones) ?>
    • +
    • text->in($user['language'], $languages) ?>
    @@ -33,7 +33,7 @@
      -
    • a(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php index 8c7e3cf8..2c8e909a 100644 --- a/app/Template/user/sidebar.php +++ b/app/Template/user/sidebar.php @@ -2,75 +2,75 @@

    • - a(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?> + url->link(t('Summary'), 'user', 'show', array('user_id' => $user['id'])) ?>
    • - userSession->isAdmin()): ?> + user->isAdmin()): ?>
    • - a(t('User dashboard'), 'app', 'dashboard', array('user_id' => $user['id'])) ?> + url->link(t('User dashboard'), 'app', 'dashboard', array('user_id' => $user['id'])) ?>
    • - a(t('User calendar'), 'user', 'calendar', array('user_id' => $user['id'])) ?> + url->link(t('User calendar'), 'user', 'calendar', array('user_id' => $user['id'])) ?>
    • - userSession->isAdmin() || $this->userSession->isCurrentUser($user['id'])): ?> + user->isAdmin() || $this->user->isCurrentUser($user['id'])): ?>
    • - a(t('Time tracking'), 'user', 'timesheet', array('user_id' => $user['id'])) ?> + url->link(t('Time tracking'), 'user', 'timesheet', array('user_id' => $user['id'])) ?>
    • - a(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?> + url->link(t('Last logins'), 'user', 'last', array('user_id' => $user['id'])) ?>
    • - a(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?> + url->link(t('Persistent connections'), 'user', 'sessions', array('user_id' => $user['id'])) ?>

      - userSession->isAdmin() || $this->userSession->isCurrentUser($user['id'])): ?> + user->isAdmin() || $this->user->isCurrentUser($user['id'])): ?>
    • - a(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?> + url->link(t('Edit profile'), 'user', 'edit', array('user_id' => $user['id'])) ?>
    • - a(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?> + url->link(t('Change password'), 'user', 'password', array('user_id' => $user['id'])) ?>
    • - userSession->isCurrentUser($user['id'])): ?> + user->isCurrentUser($user['id'])): ?>
    • - a(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?> + url->link(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?>
    • - userSession->isAdmin() && $user['twofactor_activated'] == 1): ?> + user->isAdmin() && $user['twofactor_activated'] == 1): ?>
    • - a(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?> + url->link(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?>
    • - a(t('Public access'), 'user', 'share', array('user_id' => $user['id'])) ?> + url->link(t('Public access'), 'user', 'share', array('user_id' => $user['id'])) ?>
    • - a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?> + url->link(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
    • - a(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?> + url->link(t('External accounts'), 'user', 'external', array('user_id' => $user['id'])) ?>
    • - userSession->isAdmin()): ?> + user->isAdmin()): ?>
    • - a(t('Hourly rates'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?> + url->link(t('Hourly rates'), 'hourlyrate', 'index', array('user_id' => $user['id'])) ?>
    • - a(t('Manage timetable'), 'timetable', 'index', array('user_id' => $user['id'])) ?> + url->link(t('Manage timetable'), 'timetable', 'index', array('user_id' => $user['id'])) ?>
    • - userSession->isAdmin() && ! $this->userSession->isCurrentUser($user['id'])): ?> + user->isAdmin() && ! $this->user->isCurrentUser($user['id'])): ?>
    • - a(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?> + url->link(t('Remove'), 'user', 'remove', array('user_id' => $user['id'])) ?>
    diff --git a/app/Template/user/timesheet.php b/app/Template/user/timesheet.php index 3ae84df0..5c0d3af8 100644 --- a/app/Template/user/timesheet.php +++ b/app/Template/user/timesheet.php @@ -16,8 +16,8 @@ getCollection() as $record): ?> - a($this->e($record['task_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?> - a($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?> + url->link($this->e($record['task_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?> + url->link($this->e($record['subtask_title']), 'task', 'show', array('project_id' => $record['project_id'], 'task_id' => $record['task_id'])) ?> -- cgit v1.2.3