Skip to content
Snippets Groups Projects
Commit b076991a authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Updated navbar for admin

Made Dashboard a dropdown menu
Put departments, roles and employees under dashboard
parent 28d27d33
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,15 @@
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_authenticated %}
{% if current_user.is_admin %}
<li><a href="{{ url_for('home.admin_dashboard') }}">Dashboard</a></li>
<li><a href="{{ url_for('admin.list_departments') }}">Departments</a></li>
<li><a href="{{ url_for('admin.list_roles') }}">Roles</a></li>
<li><a href="{{ url_for('admin.list_employees') }}">Employees</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Dashboard<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ url_for('admin.list_departments') }}">Departments</a></li>
<li><a href="{{ url_for('admin.list_roles') }}">Roles</a></li>
<li><a href="{{ url_for('admin.list_employees') }}">Employees</a></li>
</ul>
</li>
{% else %}
<li><a href="{{ url_for('home.dashboard') }}">Dashboard</a></li>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment