summaryrefslogtreecommitdiff
path: root/app/Template/user_view/layout.php
blob: 8f24adcc54e2d27fdfda45f8464fc792b91b3c03 (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
<section id="main">
    <div class="page-header">
        <?php if ($this->user->hasAccess('UserCreationController', 'show')): ?>
        <ul>
            <li>
                <?= $this->url->icon('user', t('All users'), 'UserListController', 'show') ?>
            </li>
            <li>
                <?= $this->modal->medium('plus', t('New user'), 'UserCreationController', 'show') ?>
            </li>
            <li>
                <?= $this->modal->medium('upload', t('Import'), 'UserImportController', 'show') ?>
            </li>
            <li>
                <?= $this->url->icon('users', t('View all groups'), 'GroupListController', 'index') ?>
            </li>
        </ul>
        <?php endif ?>
    </div>
    <section class="sidebar-container" id="user-section">
        <?= $this->render('user_view/sidebar', array('user' => $user)) ?>
        <div class="sidebar-content">
            <?= $content_for_sublayout ?>
        </div>
    </section>
</section>