From e94a2f6a00b59a6e2b63d461794b01a2b9d07473 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 16 May 2015 21:04:46 -0400 Subject: Display tasks in the calendar + improve settings --- app/Template/config/board.php | 12 ------------ app/Template/config/calendar.php | 33 +++++++++++++++++++++++++++++++++ app/Template/config/project.php | 24 ++++++++++++++++++++++++ app/Template/config/sidebar.php | 6 ++++++ 4 files changed, 63 insertions(+), 12 deletions(-) create mode 100644 app/Template/config/calendar.php create mode 100644 app/Template/config/project.php (limited to 'app/Template') diff --git a/app/Template/config/board.php b/app/Template/config/board.php index 15e2b422..c55003de 100644 --- a/app/Template/config/board.php +++ b/app/Template/config/board.php @@ -18,18 +18,6 @@ formNumber('board_private_refresh_interval', $values, $errors) ?>

- formLabel(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> - formText('board_columns', $values, $errors) ?>
-

- - formLabel(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> - formText('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) ?> - formCheckbox('subtask_forecast', t('Show subtask estimates in the user calendar'), 1, $values['subtask_forecast'] == 1) ?> -
diff --git a/app/Template/config/calendar.php b/app/Template/config/calendar.php new file mode 100644 index 00000000..300d3419 --- /dev/null +++ b/app/Template/config/calendar.php @@ -0,0 +1,33 @@ + +
+
+ + formCsrf() ?> + +

+
+ formRadios('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) ?> +
+ +

+
+ formRadios('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) ?> +
+ +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/config/project.php b/app/Template/config/project.php new file mode 100644 index 00000000..b559d632 --- /dev/null +++ b/app/Template/config/project.php @@ -0,0 +1,24 @@ + +
+
+ + formCsrf() ?> + + formLabel(t('Default columns for new projects (Comma-separated)'), 'board_columns') ?> + formText('board_columns', $values, $errors) ?>
+

+ + formLabel(t('Default categories for new projects (Comma-separated)'), 'project_categories') ?> + formText('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) ?> + +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index a4f9d8e3..4bae9e2e 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -7,9 +7,15 @@
  • a(t('Application settings'), 'config', 'application') ?>
  • +
  • + a(t('Project settings'), 'config', 'project') ?> +
  • a(t('Board settings'), 'config', 'board') ?>
  • +
  • + a(t('Calendar settings'), 'config', 'calendar') ?> +
  • a(t('Link settings'), 'link', 'index') ?>
  • -- cgit v1.2.3