From 40ca850707b2f7f51d2d9028bcfd218cd966b32f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 1 Feb 2015 14:19:49 -0500 Subject: Add column description (merge/change pull-request #549) --- app/Template/board/edit.php | 79 ++++++++++++++++++-------------------- app/Template/board/edit_column.php | 24 ++++++++++++ app/Template/board/swimlane.php | 10 ++++- app/Template/project/show.php | 8 ++-- 4 files changed, 75 insertions(+), 46 deletions(-) create mode 100644 app/Template/board/edit_column.php (limited to 'app/Template') diff --git a/app/Template/board/edit.php b/app/Template/board/edit.php index f30a65c1..25a8eded 100644 --- a/app/Template/board/edit.php +++ b/app/Template/board/edit.php @@ -1,50 +1,44 @@ -

-
- formCsrf() ?> - - - - - - - - - - - - - - - - -
formLabel('#'.++$i, 'title['.$column['id'].']', array('title="column_id='.$column['id'].'"')) ?>formText('title['.$column['id'].']', $values, $errors, array('required', 'maxlength="50"')) ?>formNumber('task_limit['.$column['id'].']', $values, $errors, array('placeholder="'.t('limit').'"')) ?> -
    - -
  • - a(t('Move Up'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> -
  • - - -
  • - a(t('Move Down'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> -
  • - -
  • - a(t('Remove'), 'board', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> -
  • -
-
+ + + + + + + + + + + + + + + +
e($column['title']) ?>e($column['description']) ?>e($column['task_limit']) ?> +
    +
  • + a(t('Edit'), 'board', 'editColumn', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> +
  • + +
  • + a(t('Move Up'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> +
  • + + +
  • + a(t('Move Down'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> +
  • + +
  • + a(t('Remove'), 'board', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> +
  • +
+
-
- -
-
-

@@ -54,6 +48,9 @@ formLabel(t('Title'), 'title') ?> formText('title', $values, $errors, array('required', 'maxlength="50"')) ?> + formLabel(t('Description'), 'description') ?> + formTextarea('description', $values, $errors) ?> +
diff --git a/app/Template/board/edit_column.php b/app/Template/board/edit_column.php new file mode 100644 index 00000000..0d41bfbe --- /dev/null +++ b/app/Template/board/edit_column.php @@ -0,0 +1,24 @@ + + + + + formCsrf() ?> + + formHidden('id', $values) ?> + formHidden('project_id', $values) ?> + + formLabel(t('Title'), 'title') ?> + formText('title', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> + + formLabel(t('Task limit'), 'task_limit') ?> + formNumber('task_limit', $values, $errors) ?> + + formLabel(t('Description'), 'description') ?> + formTextarea('description', $values, $errors) ?> + +
+ +
+ \ No newline at end of file diff --git a/app/Template/board/swimlane.php b/app/Template/board/swimlane.php index 77bc4114..3e808bf2 100644 --- a/app/Template/board/swimlane.php +++ b/app/Template/board/swimlane.php @@ -25,8 +25,14 @@
- e($column['title']) ?> - + + + e($column['title']) ?> + + + e($column['title']) ?> + + (/e($column['task_limit']) ?>) diff --git a/app/Template/project/show.php b/app/Template/project/show.php index bc622d0d..486be643 100644 --- a/app/Template/project/show.php +++ b/app/Template/project/show.php @@ -41,13 +41,15 @@ - - - + + + + + -- cgit v1.2.3
e($column['title']) ?>e($column['description']) ?>