27 lines
2.1 KiB
HTML
27 lines
2.1 KiB
HTML
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
<div class="position-sticky pt-3">
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item"><a class="nav-link {if !count($CHPU)}active" aria-current="page{/if}" href="{$TPL}/">Главная</a></li>
|
|
{if isset($aUSER.statuses[99])}
|
|
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">администратор</li>
|
|
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="students"}active" aria-current="page{/if}" href="{$TPL}/students/">Студенты</a></li>
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
<div class="fixed-bottom" style="width: fit-content;">
|
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
|
<span>Пользователь</span>
|
|
</h6>
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.fio}">{$aUSER.fio|truncate:20}</span></li>
|
|
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.dolgnost}">{$aUSER.teachers.dolgnost|truncate:20}</span></li>
|
|
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.fakultet}">{$aUSER.teachers.fakultet|truncate:20}</span></li>
|
|
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.kafedra}">{$aUSER.teachers.kafedra|truncate:20}</span></li>
|
|
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{foreach from=$aUSER.statuses item=status}{$status}; {/foreach}">Полномочия</span></li>
|
|
<li class="nav-item"><a class="nav-link" href="{$TPL}/logout/">Выход</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|