From c62e14f1cc1a092996076e96b1074f36ba5a3425 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 5 Sep 2015 18:24:46 -0400 Subject: Replace color dropdown by color picker in task forms --- app/Template/gantt/task_creation.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'app/Template/gantt/task_creation.php') diff --git a/app/Template/gantt/task_creation.php b/app/Template/gantt/task_creation.php index d0d14c1e..7997e231 100644 --- a/app/Template/gantt/task_creation.php +++ b/app/Template/gantt/task_creation.php @@ -12,7 +12,6 @@ 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"')) ?> @@ -29,6 +28,8 @@
+ + render('task/color_picker', array('colors_list' => $colors_list, 'values' => $values)) ?>
@@ -43,17 +44,14 @@ 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->number('score', $values, $errors, array('tabindex="6"')) ?>
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->text('date_started', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"', 'tabindex="7"'), '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') ?>
+ form->text('date_due', $values, $errors, array('placeholder="'.$this->text->in($date_format, $date_formats).'"', 'tabindex="8"'), 'form-date') ?>
-- cgit v1.2.3