diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-15 20:09:43 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-15 20:09:43 -0400 |
commit | 8a6f02735b628033a3284d06a9f633bd260e19ef (patch) | |
tree | 57d0c2acb22d6afe0412903a088ed77ac0ba3596 /app/Template/board | |
parent | 67b836164997527b91452b19adbcb8aa3c5decf1 (diff) |
Added task creation menu for all projects views
Diffstat (limited to 'app/Template/board')
-rw-r--r-- | app/Template/board/table_column.php | 8 | ||||
-rw-r--r-- | app/Template/board/table_container.php | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index e2f69036..a356849c 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -12,9 +12,9 @@ <!-- column in expanded mode --> <div class="board-column-expanded"> - <?php if (! $not_editable && $this->user->hasProjectAccess('taskcreation', 'create', $column['project_id'])): ?> + <?php if (! $not_editable && $this->user->hasProjectAccess('TaskCreationController', 'show', $column['project_id'])): ?> <div class="board-add-icon"> - <?= $this->url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> + <?= $this->url->link('+', 'TaskCreationController', 'show', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> </div> <?php endif ?> @@ -35,10 +35,10 @@ <i class="fa fa-minus-square fa-fw"></i> <a href="#" class="board-toggle-column-view" data-column-id="<?= $column['id'] ?>"><?= t('Hide this column') ?></a> </li> - <?php if ($this->user->hasProjectAccess('Taskcreation', 'create', $column['project_id'])): ?> + <?php if ($this->user->hasProjectAccess('TaskCreationController', 'show', $column['project_id'])): ?> <li> <i class="fa fa-align-justify" aria-hidden="true"></i> - <?= $this->url->link(t('Create tasks in bulk'), 'TaskBulk', 'show', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> + <?= $this->url->link(t('Create tasks in bulk'), 'TaskBulkController', 'show', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?> </li> <?php if ($column['nb_tasks'] > 0): ?> <li> diff --git a/app/Template/board/table_container.php b/app/Template/board/table_container.php index e30f9ce8..82bbec93 100644 --- a/app/Template/board/table_container.php +++ b/app/Template/board/table_container.php @@ -13,7 +13,7 @@ data-save-url="<?= $this->url->href('board', 'save', array('project_id' => $project['id'])) ?>" data-reload-url="<?= $this->url->href('board', 'reload', array('project_id' => $project['id'])) ?>" data-check-url="<?= $this->url->href('board', 'check', array('project_id' => $project['id'], 'timestamp' => time())) ?>" - data-task-creation-url="<?= $this->url->href('taskcreation', 'create', array('project_id' => $project['id'])) ?>" + data-task-creation-url="<?= $this->url->href('TaskCreationController', 'show', array('project_id' => $project['id'])) ?>" > <?php endif ?> @@ -55,4 +55,4 @@ </table> <?php endif ?> -</div>
\ No newline at end of file +</div> |