summaryrefslogtreecommitdiff
path: root/app/Template/board
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-01 16:12:47 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-01 16:12:47 -0500
commit695ed5701c4151dcab53fbdec1f21b0277cb7cf7 (patch)
tree7fd7911be2508055bfd9d75705b8810e39b2e3c4 /app/Template/board
parent3e2f4f9c2cd4cd67bee428a23ce55fc36b8c6e31 (diff)
Add dropdown menu to the board menu
Diffstat (limited to 'app/Template/board')
-rw-r--r--app/Template/board/filters.php65
1 files changed, 37 insertions, 28 deletions
diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php
index 45255231..148f3de6 100644
--- a/app/Template/board/filters.php
+++ b/app/Template/board/filters.php
@@ -1,40 +1,49 @@
<div class="page-header">
<ul class="board-filters">
- <li class="hide-tablet">
- <?= t('Filter by user') ?>
- <?= $this->formSelect('user_id', $users) ?>
- </li>
- <li class="hide-tablet">
- <?= t('Filter by category') ?>
- <?= $this->formSelect('category_id', $categories) ?>
- </li>
- <li class="hide-tablet">
- <a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a>
- </li>
<li>
- <i class="fa fa-search fa-fw"></i>
- <?= $this->a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
+ <ul class="dropdown">
+ <li>
+ <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a>
+ <ul>
+ <li>
+ <i class="fa fa-search fa-fw"></i>
+ <?= $this->a(t('Search'), 'project', 'search', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <i class="fa fa-check-square-o fa-fw"></i>
+ <?= $this->a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <i class="fa fa-dashboard fa-fw"></i>
+ <?= $this->a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <i class="fa fa-calendar fa-fw"></i>
+ <?= $this->a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
+ </li>
+ <?php if ($this->acl->isManagerActionAllowed($project['id'])): ?>
+ <li>
+ <i class="fa fa-line-chart fa-fw"></i>
+ <?= $this->a(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <i class="fa fa-cog fa-fw"></i>
+ <?= $this->a(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?>
+ </li>
+ </ul>
+ </li>
+ </ul>
</li>
<li>
- <i class="fa fa-check-square-o fa-fw"></i>
- <?= $this->a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $project['id'])) ?>
- </li>
- <li>
- <i class="fa fa-dashboard fa-fw"></i>
- <?= $this->a(t('Activity'), 'project', 'activity', array('project_id' => $project['id'])) ?>
- </li>
- <li>
- <i class="fa fa-calendar fa-fw"></i>
- <?= $this->a(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
+ <?= t('Filter by user') ?>
+ <?= $this->formSelect('user_id', $users) ?>
</li>
- <?php if ($this->acl->isManagerActionAllowed($project['id'])): ?>
<li>
- <i class="fa fa-line-chart fa-fw"></i>
- <?= $this->a(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
+ <?= t('Filter by category') ?>
+ <?= $this->formSelect('category_id', $categories) ?>
</li>
<li>
- <i class="fa fa-cog fa-fw"></i>
- <?= $this->a(t('Configure'), 'project', 'show', array('project_id' => $project['id'])) ?>
+ <a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a>
</li>
<?php endif ?>
</ul>