From 1500ff92b2dc3d3932c8e06755bec23f9017e8a4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 31 Jan 2016 12:15:26 -0500 Subject: Templates cleanup --- app/Template/action/event.php | 2 +- app/Template/action/index.php | 4 ++-- app/Template/board/tooltip_subtasks.php | 2 +- app/Template/config/application.php | 6 ++---- app/Template/config/board.php | 10 ++++------ app/Template/config/project.php | 8 +++----- app/Template/currency/index.php | 10 +++++----- app/Template/export/subtasks.php | 8 +++----- app/Template/export/summary.php | 8 +++----- app/Template/export/tasks.php | 8 +++----- app/Template/export/transitions.php | 8 +++----- app/Template/group/associate.php | 4 ++-- app/Template/group/create.php | 4 ++-- app/Template/group/edit.php | 4 ++-- app/Template/password_reset/change.php | 4 ++-- app/Template/project_user/sidebar.php | 2 +- app/Template/swimlane/index.php | 2 +- app/Template/tasklink/show.php | 2 +- app/Template/twofactor/show.php | 4 ++-- app/Template/user/password.php | 8 ++++---- 20 files changed, 47 insertions(+), 61 deletions(-) (limited to 'app/Template') diff --git a/app/Template/action/event.php b/app/Template/action/event.php index 7f968a97..b4741a98 100644 --- a/app/Template/action/event.php +++ b/app/Template/action/event.php @@ -11,7 +11,7 @@ form->hidden('action_name', $values) ?> form->label(t('Event'), 'event_name') ?> - form->select('event_name', $events, $values) ?>
+ form->select('event_name', $events, $values) ?>
diff --git a/app/Template/action/index.php b/app/Template/action/index.php index 8275f080..c28c7a4b 100644 --- a/app/Template/action/index.php +++ b/app/Template/action/index.php @@ -67,9 +67,9 @@ form->hidden('project_id', $values) ?> form->label(t('Action'), 'action_name') ?> - form->select('action_name', $available_actions, $values) ?>
+ form->select('action_name', $available_actions, $values) ?>
- +
\ No newline at end of file diff --git a/app/Template/board/tooltip_subtasks.php b/app/Template/board/tooltip_subtasks.php index 5c273e08..5e48fcf4 100644 --- a/app/Template/board/tooltip_subtasks.php +++ b/app/Template/board/tooltip_subtasks.php @@ -2,6 +2,6 @@ subtask->toggleStatus($subtask, 'board', $task['project_id']) ?> e(empty($subtask['username']) ? '' : ' ['.$this->user->getFullname($subtask).']') ?> -
+
diff --git a/app/Template/config/application.php b/app/Template/config/application.php index ec7d8462..35d85dd8 100644 --- a/app/Template/config/application.php +++ b/app/Template/config/application.php @@ -1,7 +1,6 @@ -
form->csrf() ?> @@ -23,10 +22,9 @@ form->checkbox('password_reset', t('Enable "Forget Password"'), 1, $values['password_reset'] == 1) ?> form->label(t('Custom Stylesheet'), 'application_stylesheet') ?> - form->textarea('application_stylesheet', $values, $errors) ?>
+ form->textarea('application_stylesheet', $values, $errors) ?>
- +
-
\ No newline at end of file diff --git a/app/Template/config/board.php b/app/Template/config/board.php index 19a4bcd7..f787a931 100644 --- a/app/Template/config/board.php +++ b/app/Template/config/board.php @@ -1,25 +1,23 @@ -
form->csrf() ?> form->label(t('Task highlight period'), 'board_highlight_period') ?> - form->number('board_highlight_period', $values, $errors) ?>
+ form->number('board_highlight_period', $values, $errors) ?>

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

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

- +
-
\ No newline at end of file diff --git a/app/Template/config/project.php b/app/Template/config/project.php index c58a7bac..a212f65f 100644 --- a/app/Template/config/project.php +++ b/app/Template/config/project.php @@ -1,7 +1,6 @@ -
form->csrf() ?> @@ -10,11 +9,11 @@ form->select('default_color', $colors, $values, $errors) ?> form->label(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> - form->text('board_columns', $values, $errors) ?>
+ form->text('board_columns', $values, $errors) ?>

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

form->checkbox('subtask_restriction', t('Allow only one subtask in progress at the same time for a user'), 1, $values['subtask_restriction'] == 1) ?> @@ -22,7 +21,6 @@ form->checkbox('cfd_include_closed_tasks', t('Include closed tasks in the cumulative flow diagram'), 1, $values['cfd_include_closed_tasks'] == 1) ?>
- +
-
\ No newline at end of file diff --git a/app/Template/currency/index.php b/app/Template/currency/index.php index 1c78c47a..07b58a8b 100644 --- a/app/Template/currency/index.php +++ b/app/Template/currency/index.php @@ -29,10 +29,10 @@ form->csrf() ?> form->label(t('Reference currency'), 'application_currency') ?> - form->select('application_currency', $currencies, $config_values, $errors) ?>
+ form->select('application_currency', $currencies, $config_values, $errors) ?>
- +
@@ -43,12 +43,12 @@ form->csrf() ?> form->label(t('Currency'), 'currency') ?> - form->select('currency', $currencies, $values, $errors) ?>
+ form->select('currency', $currencies, $values, $errors) ?> form->label(t('Rate'), 'rate') ?> - form->text('rate', $values, $errors, array(), 'form-numeric') ?>
+ form->text('rate', $values, $errors, array(), 'form-numeric') ?>
- +
diff --git a/app/Template/export/subtasks.php b/app/Template/export/subtasks.php index 4aad2641..f2a00f84 100644 --- a/app/Template/export/subtasks.php +++ b/app/Template/export/subtasks.php @@ -1,7 +1,5 @@

@@ -13,7 +11,7 @@ form->hidden('project_id', $values) ?> form->label(t('Start Date'), 'from') ?> - form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
+ form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($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') ?> @@ -21,6 +19,6 @@
- +
\ No newline at end of file diff --git a/app/Template/export/summary.php b/app/Template/export/summary.php index ffbd6ac2..0c2a96fb 100644 --- a/app/Template/export/summary.php +++ b/app/Template/export/summary.php @@ -1,7 +1,5 @@

@@ -13,7 +11,7 @@ form->hidden('project_id', $values) ?> form->label(t('Start Date'), 'from') ?> - form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
+ form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($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') ?> @@ -21,6 +19,6 @@
- +
\ No newline at end of file diff --git a/app/Template/export/tasks.php b/app/Template/export/tasks.php index c74c8f98..c27149d2 100644 --- a/app/Template/export/tasks.php +++ b/app/Template/export/tasks.php @@ -1,7 +1,5 @@

@@ -13,7 +11,7 @@ form->hidden('project_id', $values) ?> form->label(t('Start Date'), 'from') ?> - form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
+ form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($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') ?> @@ -21,6 +19,6 @@
- +
\ No newline at end of file diff --git a/app/Template/export/transitions.php b/app/Template/export/transitions.php index bf6ef249..d935bde1 100644 --- a/app/Template/export/transitions.php +++ b/app/Template/export/transitions.php @@ -1,7 +1,5 @@

@@ -13,7 +11,7 @@ form->hidden('project_id', $values) ?> form->label(t('Start Date'), 'from') ?> - form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($date_format, $date_formats).'"'), 'form-date') ?>
+ form->text('from', $values, $errors, array('required', 'placeholder="'.$this->text->in($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') ?> @@ -21,6 +19,6 @@
- +
\ No newline at end of file diff --git a/app/Template/group/associate.php b/app/Template/group/associate.php index dc665bb3..468281e2 100644 --- a/app/Template/group/associate.php +++ b/app/Template/group/associate.php @@ -13,10 +13,10 @@ form->hidden('group_id', $values) ?> form->label(t('User'), 'user_id') ?> - form->select('user_id', $users, $values, $errors, array('required'), 'chosen-select') ?>
+ form->select('user_id', $users, $values, $errors, array('required'), 'chosen-select') ?>
- + url->link(t('cancel'), 'group', 'index') ?>
diff --git a/app/Template/group/create.php b/app/Template/group/create.php index 696e5013..4a935c08 100644 --- a/app/Template/group/create.php +++ b/app/Template/group/create.php @@ -8,10 +8,10 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?>
+ form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?>
- + url->link(t('cancel'), 'group', 'index') ?>
diff --git a/app/Template/group/edit.php b/app/Template/group/edit.php index 4d7e5e81..d9646ee8 100644 --- a/app/Template/group/edit.php +++ b/app/Template/group/edit.php @@ -11,10 +11,10 @@ form->hidden('external_id', $values) ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?>
+ form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?>
- + url->link(t('cancel'), 'group', 'index') ?>
diff --git a/app/Template/password_reset/change.php b/app/Template/password_reset/change.php index 310f0f97..6d06f442 100644 --- a/app/Template/password_reset/change.php +++ b/app/Template/password_reset/change.php @@ -4,13 +4,13 @@ form->csrf() ?> form->label(t('New password'), 'password') ?> - form->password('password', $values, $errors) ?>
+ form->password('password', $values, $errors) ?> form->label(t('Confirmation'), 'confirmation') ?> form->password('confirmation', $values, $errors) ?>
- +
\ No newline at end of file diff --git a/app/Template/project_user/sidebar.php b/app/Template/project_user/sidebar.php index 27f1094c..ff113ebb 100644 --- a/app/Template/project_user/sidebar.php +++ b/app/Template/project_user/sidebar.php @@ -10,7 +10,7 @@ 'chosen-select select-auto-redirect' ) ?> -

+