From 17a3781bd8c03e6b653104dbcb996a1ff1213959 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 14 Aug 2015 17:03:55 -0400 Subject: Add Gantt chart for projects --- app/Template/gantt/project.php | 49 +++++++++++++++++++++++++++ app/Template/gantt/task_creation.php | 65 ++++++++++++++++++++++++++++++++++++ app/Template/project/dropdown.php | 4 +++ 3 files changed, 118 insertions(+) create mode 100644 app/Template/gantt/project.php create mode 100644 app/Template/gantt/task_creation.php (limited to 'app/Template') diff --git a/app/Template/gantt/project.php b/app/Template/gantt/project.php new file mode 100644 index 00000000..0c545be8 --- /dev/null +++ b/app/Template/gantt/project.php @@ -0,0 +1,49 @@ +
+ + + +
+

+ +

+ +
\ No newline at end of file diff --git a/app/Template/gantt/task_creation.php b/app/Template/gantt/task_creation.php new file mode 100644 index 00000000..d0d14c1e --- /dev/null +++ b/app/Template/gantt/task_creation.php @@ -0,0 +1,65 @@ + +
+ form->csrf() ?> + form->hidden('project_id', $values) ?> + form->hidden('column_id', $values) ?> + form->hidden('position', $values) ?> + +
+ form->label(t('Title'), 'title') ?> + form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="200"', 'tabindex="1"'), 'form-input-large') ?> + + form->label(t('Description'), 'description') ?> + +
+
+ form->textarea('description', $values, $errors, array('placeholder="'.t('Leave a description').'"', 'tabindex="2"')) ?> +
+
+
+
+
    +
  • + +
  • +
  • + +
  • +
+
+
+ +
+ form->label(t('Assignee'), 'owner_id') ?> + form->select('owner_id', $users_list, $values, $errors, array('tabindex="3"')) ?>
+ + form->label(t('Category'), 'category_id') ?> + form->select('category_id', $categories_list, $values, $errors, array('tabindex="4"')) ?>
+ + + form->label(t('Swimlane'), 'swimlane_id') ?> + form->select('swimlane_id', $swimlanes_list, $values, $errors, array('tabindex="5"')) ?>
+ + + form->label(t('Color'), 'color_id') ?> + form->select('color_id', $colors_list, $values, $errors, array('tabindex="7"')) ?>
+ + form->label(t('Complexity'), 'score') ?> + form->number('score', $values, $errors, array('tabindex="8"')) ?>
+ + form->label(t('Start Date'), 'date_started') ?> + form->text('date_started', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"', 'tabindex="9"'), 'form-date') ?> + + form->label(t('Due Date'), 'date_due') ?> + form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"', 'tabindex="10"'), 'form-date') ?>
+
+
+ +
+ + + url->link(t('cancel'), 'board', 'show', array('project_id' => $values['project_id']), false, 'close-popover') ?> +
+
diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php index 0a53cc05..7b599d60 100644 --- a/app/Template/project/dropdown.php +++ b/app/Template/project/dropdown.php @@ -14,6 +14,10 @@ url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> +
  • + + url->link(t('Gantt chart'), 'gantt', 'project', array('project_id' => $project['id'])) ?> +
  • url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?> -- cgit v1.2.3