summaryrefslogtreecommitdiff
path: root/app/Template/project_user_overview/sidebar.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 13:41:54 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 13:41:54 -0400
commit1353929a7dbd3f2e897fa7d3ab88e959ca573f9f (patch)
tree30bdbac4e466e74c3dfb4d451422f03c62bcbe41 /app/Template/project_user_overview/sidebar.php
parentab48a09f0d674b703467975b376c5ac7352670ae (diff)
Rename controllers
Diffstat (limited to 'app/Template/project_user_overview/sidebar.php')
-rw-r--r--app/Template/project_user_overview/sidebar.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Template/project_user_overview/sidebar.php b/app/Template/project_user_overview/sidebar.php
new file mode 100644
index 00000000..9a87d4eb
--- /dev/null
+++ b/app/Template/project_user_overview/sidebar.php
@@ -0,0 +1,30 @@
+<div class="sidebar">
+ <h2><?= t('Actions') ?></h2>
+
+ <?= $this->form->select(
+ 'user_id',
+ $users,
+ $filter,
+ array(),
+ array('data-redirect-url="'.$this->url->href('ProjectUserOverviewController', $this->app->getRouterAction(), array('user_id' => 'USER_ID')).'"', 'data-redirect-regex="USER_ID"'),
+ 'chosen-select select-auto-redirect'
+ ) ?>
+
+ <br><br>
+ <ul>
+ <li <?= $this->app->checkMenuSelection('ProjectUserOverviewController', 'managers') ?>>
+ <?= $this->url->link(t('Project managers'), 'ProjectUserOverviewController', 'managers', $filter) ?>
+ </li>
+ <li <?= $this->app->checkMenuSelection('ProjectUserOverviewController', 'members') ?>>
+ <?= $this->url->link(t('Project members'), 'ProjectUserOverviewController', 'members', $filter) ?>
+ </li>
+ <li <?= $this->app->checkMenuSelection('ProjectUserOverviewController', 'opens') ?>>
+ <?= $this->url->link(t('Open tasks'), 'ProjectUserOverviewController', 'opens', $filter) ?>
+ </li>
+ <li <?= $this->app->checkMenuSelection('ProjectUserOverviewController', 'closed') ?>>
+ <?= $this->url->link(t('Closed tasks'), 'ProjectUserOverviewController', 'closed', $filter) ?>
+ </li>
+
+ <?= $this->hook->render('template:project-user:sidebar') ?>
+ </ul>
+</div>