summaryrefslogtreecommitdiff
path: root/app/Template/board/table_container.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-04 11:14:21 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-04 11:14:21 -0400
commit554500aa493faa66b43b2ddce72338880a874724 (patch)
tree73066cfbe6af3cabf81b5be1dc5ef81e44792a21 /app/Template/board/table_container.php
parenta327f790ee036664439bf50e00c95fb8a0e1f97e (diff)
Refactoring to implement new layout with filters: board/calendar/list views (work in progress)
Diffstat (limited to 'app/Template/board/table_container.php')
-rw-r--r--app/Template/board/table_container.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Template/board/table_container.php b/app/Template/board/table_container.php
new file mode 100644
index 00000000..9d3a1134
--- /dev/null
+++ b/app/Template/board/table_container.php
@@ -0,0 +1,30 @@
+<div id="board-container">
+ <?php if (isset($not_editable)): ?>
+ <table id="board" class="board-project-<?= $project['id'] ?>">
+ <?php else: ?>
+ <table id="board"
+ class="board-project-<?= $project['id'] ?>"
+ data-project-id="<?= $project['id'] ?>"
+ data-check-interval="<?= $board_private_refresh_interval ?>"
+ data-save-url="<?= $this->url->href('board', 'save', 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('task', 'create', array('project_id' => $project['id'])) ?>"
+ >
+ <?php endif ?>
+
+ <?php foreach ($swimlanes as $swimlane): ?>
+ <?php if (empty($swimlane['columns'])): ?>
+ <p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
+ <?php break ?>
+ <?php else: ?>
+ <?= $this->render('board/table_swimlane', array(
+ 'project' => $project,
+ 'swimlane' => $swimlane,
+ 'board_highlight_period' => $board_highlight_period,
+ 'hide_swimlane' => count($swimlanes) === 1,
+ 'not_editable' => isset($not_editable),
+ )) ?>
+ <?php endif ?>
+ <?php endforeach ?>
+ </table>
+</div> \ No newline at end of file