summaryrefslogtreecommitdiff
path: root/app/Template/project_user/sidebar.php
blob: 98219a874f1c19fc20e52ed12ad9d60d60a242fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div class="sidebar">
    <h2><?= t('Actions') ?></h2>

    <?= $this->form->select(
            'user_id',
            $users,
            $filter,
            array(),
            array('data-redirect-url="'.$this->url->href('projectuser', $this->app->getRouterAction(), array('user_id' => 'USER_ID')).'"', 'data-redirect-regex="USER_ID"'),
            'chosen-select select-auto-redirect'
        ) ?>

    <br/><br/>
    <ul>
        <li <?= $this->app->getRouterAction() === 'managers' ? 'class="active"' : '' ?>>
            <?= $this->url->link(t('Project managers'), 'projectuser', 'managers', $filter) ?>
        </li>
        <li <?= $this->app->getRouterAction() === 'members' ? 'class="active"' : '' ?>>
            <?= $this->url->link(t('Project members'), 'projectuser', 'members', $filter) ?>
        </li>
        <li <?= $this->app->getRouterAction() === 'opens' ? 'class="active"' : '' ?>>
            <?= $this->url->link(t('Open tasks'), 'projectuser', 'opens', $filter) ?>
        </li>
        <li <?= $this->app->getRouterAction() === 'closed' ? 'class="active"' : '' ?>>
            <?= $this->url->link(t('Closed tasks'), 'projectuser', 'closed', $filter) ?>
        </li>

        <?= $this->hook->render('project-user:sidebar') ?>
    </ul>
</div>