summaryrefslogtreecommitdiff
path: root/app/Template/board_index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/board_index.php')
-rw-r--r--app/Template/board_index.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/Template/board_index.php b/app/Template/board_index.php
new file mode 100644
index 00000000..bff7dcc9
--- /dev/null
+++ b/app/Template/board_index.php
@@ -0,0 +1,38 @@
+<section id="main">
+
+ <div class="page-header board">
+ <h2>
+ <?= t('Project "%s"', $current_project_name) ?>
+ </h2>
+ </div>
+
+ <div class="project-menu">
+ <ul>
+ <li>
+ <span class="hide-tablet"><?= t('Filter by user') ?></span>
+ <?= Helper\form_select('user_id', $users, $filters) ?>
+ </li>
+ <li>
+ <span class="hide-tablet"><?= t('Filter by category') ?></span>
+ <?= Helper\form_select('category_id', $categories, $filters) ?>
+ </li>
+ <li><a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a></li>
+ <li><a href="?controller=project&amp;action=search&amp;project_id=<?= $current_project_id ?>"><?= t('Search') ?></a></li>
+ <li><a href="?controller=project&amp;action=tasks&amp;project_id=<?= $current_project_id ?>"><?= t('Completed tasks') ?></a></li>
+ <li><a href="?controller=project&amp;action=activity&amp;project_id=<?= $current_project_id ?>"><?= t('Activity') ?></a></li>
+ </ul>
+ </div>
+
+ <?php if (empty($board)): ?>
+ <p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
+ <?php else: ?>
+ <?= Helper\template('board_show', array(
+ 'current_project_id' => $current_project_id,
+ 'board' => $board,
+ 'categories' => $categories,
+ 'board_private_refresh_interval' => $board_private_refresh_interval,
+ 'board_highlight_period' => $board_highlight_period,
+ )) ?>
+ <?php endif ?>
+
+</section>