diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-11 17:38:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-11 17:38:41 -0400 |
commit | ea9d402587d6fbcb39080a5d9a26e94ff4575443 (patch) | |
tree | acd1a97de1f7fd541529d154912ddde6eda3ce23 /app/Template | |
parent | 340f4f912b46ff711be304ecb3a12115f82e5f48 (diff) |
Add column controller
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/column/edit.php (renamed from app/Template/board/edit_column.php) | 6 | ||||
-rw-r--r-- | app/Template/column/index.php (renamed from app/Template/board/edit.php) | 10 | ||||
-rw-r--r-- | app/Template/column/remove.php (renamed from app/Template/board/remove.php) | 4 | ||||
-rw-r--r-- | app/Template/project/sidebar.php | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/app/Template/board/edit_column.php b/app/Template/column/edit.php index ef76b180..7e16c326 100644 --- a/app/Template/board/edit_column.php +++ b/app/Template/column/edit.php @@ -2,7 +2,7 @@ <h2><?= t('Edit column "%s"', $column['title']) ?></h2> </div> -<form method="post" action="<?= $this->u('board', 'updateColumn', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?>" autocomplete="off"> +<form method="post" action="<?= $this->u('column', 'update', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?>" autocomplete="off"> <?= $this->formCsrf() ?> @@ -16,9 +16,9 @@ <?= $this->formNumber('task_limit', $values, $errors) ?> <?= $this->formLabel(t('Description'), 'description') ?> - + <div class="form-tabs"> - + <div class="write-area"> <?= $this->formTextarea('description', $values, $errors) ?> </div> diff --git a/app/Template/board/edit.php b/app/Template/column/index.php index a6df1000..d55aa3a8 100644 --- a/app/Template/board/edit.php +++ b/app/Template/column/index.php @@ -22,20 +22,20 @@ <td class="column-30"> <ul> <li> - <?= $this->a(t('Edit'), 'board', 'editColumn', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> + <?= $this->a(t('Edit'), 'column', 'edit', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> </li> <?php if ($column['position'] != 1): ?> <li> - <?= $this->a(t('Move Up'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> + <?= $this->a(t('Move Up'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'up'), true) ?> </li> <?php endif ?> <?php if ($column['position'] != count($columns)): ?> <li> - <?= $this->a(t('Move Down'), 'board', 'moveColumn', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> + <?= $this->a(t('Move Down'), 'column', 'move', array('project_id' => $project['id'], 'column_id' => $column['id'], 'direction' => 'down'), true) ?> </li> <?php endif ?> <li> - <?= $this->a(t('Remove'), 'board', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> + <?= $this->a(t('Remove'), 'column', 'confirm', array('project_id' => $project['id'], 'column_id' => $column['id'])) ?> </li> </ul> </td> @@ -44,7 +44,7 @@ </table> <h3><?= t('Add a new column') ?></h3> -<form method="post" action="<?= $this->u('board', 'add', array('project_id' => $project['id'])) ?>" autocomplete="off"> +<form method="post" action="<?= $this->u('column', 'create', array('project_id' => $project['id'])) ?>" autocomplete="off"> <?= $this->formCsrf() ?> diff --git a/app/Template/board/remove.php b/app/Template/column/remove.php index 4b0370eb..3dcbd62f 100644 --- a/app/Template/board/remove.php +++ b/app/Template/column/remove.php @@ -9,7 +9,7 @@ </p> <div class="form-actions"> - <?= $this->a(t('Yes'), 'board', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> - <?= t('or') ?> <?= $this->a(t('cancel'), 'board', 'edit', array('project_id' => $project['id'])) ?> + <?= $this->a(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> + <?= t('or') ?> <?= $this->a(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?> </div> </div>
\ 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 @@ <?= $this->a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?> </li> <li> - <?= $this->a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?> + <?= $this->a(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?> </li> <li> <?= $this->a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?> |