From ea9d402587d6fbcb39080a5d9a26e94ff4575443 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Apr 2015 17:38:41 -0400 Subject: Add column controller --- app/Template/board/edit.php | 82 -------------------------------------- app/Template/board/edit_column.php | 42 ------------------- app/Template/board/remove.php | 15 ------- app/Template/column/edit.php | 42 +++++++++++++++++++ app/Template/column/index.php | 82 ++++++++++++++++++++++++++++++++++++++ app/Template/column/remove.php | 15 +++++++ app/Template/project/sidebar.php | 2 +- 7 files changed, 140 insertions(+), 140 deletions(-) delete mode 100644 app/Template/board/edit.php delete mode 100644 app/Template/board/edit_column.php delete mode 100644 app/Template/board/remove.php create mode 100644 app/Template/column/edit.php create mode 100644 app/Template/column/index.php create mode 100644 app/Template/column/remove.php (limited to 'app/Template') diff --git a/app/Template/board/edit.php b/app/Template/board/edit.php deleted file mode 100644 index a6df1000..00000000 --- a/app/Template/board/edit.php +++ /dev/null @@ -1,82 +0,0 @@ - - -

- - - - - - - - - - - - - -
e($column['title']) ?> - - '> - - - - 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'])) ?> -
  • -
-
- -

-
- - formCsrf() ?> - - formHidden('project_id', $values) ?> - - formLabel(t('Title'), 'title') ?> - formText('title', $values, $errors, array('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/edit_column.php b/app/Template/board/edit_column.php deleted file mode 100644 index ef76b180..00000000 --- a/app/Template/board/edit_column.php +++ /dev/null @@ -1,42 +0,0 @@ - - -
- - 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/remove.php b/app/Template/board/remove.php deleted file mode 100644 index 4b0370eb..00000000 --- a/app/Template/board/remove.php +++ /dev/null @@ -1,15 +0,0 @@ - - -
-

- - -

- -
- a(t('Yes'), 'board', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> - a(t('cancel'), 'board', 'edit', array('project_id' => $project['id'])) ?> -
-
\ No newline at end of file diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php new file mode 100644 index 00000000..7e16c326 --- /dev/null +++ b/app/Template/column/edit.php @@ -0,0 +1,42 @@ + + +
+ + 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/column/index.php b/app/Template/column/index.php new file mode 100644 index 00000000..d55aa3a8 --- /dev/null +++ b/app/Template/column/index.php @@ -0,0 +1,82 @@ + + +

+ + + + + + + + + + + + + +
e($column['title']) ?> + + '> + + + + e($column['task_limit']) ?> +
    +
  • + a(t('Edit'), 'column', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> +
  • + +
  • + a(t('Move Up'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> +
  • + + +
  • + a(t('Move Down'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> +
  • + +
  • + a(t('Remove'), 'column', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> +
  • +
+
+ +

+
+ + formCsrf() ?> + + formHidden('project_id', $values) ?> + + formLabel(t('Title'), 'title') ?> + formText('title', $values, $errors, array('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/column/remove.php b/app/Template/column/remove.php new file mode 100644 index 00000000..3dcbd62f --- /dev/null +++ b/app/Template/column/remove.php @@ -0,0 +1,15 @@ + + +
+

+ + +

+ +
+ a(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> + a(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?> +
+
\ No newline at end of file diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 47458144..31e3ff04 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -16,7 +16,7 @@ a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
  • - a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?> + a(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?>
  • a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?> -- cgit v1.2.3