2017-02-02 07:19:45 +00:00
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
2017-02-02 07:46:15 +00:00
|
|
|
{% if user %}
|
|
|
|
<a class="navbar-brand" href="/dashboard">Inventario</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="navbar-brand active" href="/login">Inventario</a>
|
|
|
|
{% endif %}
|
2017-02-02 07:19:45 +00:00
|
|
|
</div>
|
2017-02-02 07:46:15 +00:00
|
|
|
{% if user %}
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="{% if type is equalto "ente" %}active{% endif %}"><a href="/ente_list">Enti</a></li>
|
|
|
|
<li class="{% if type is equalto "serv" %}active{% endif %}"><a href="/serv_list">Servizi</a></li>
|
|
|
|
<li class="{% if type is equalto "imp" %}active{% endif %}"><a href="/imp_list">Impiegati</a></li>
|
2017-02-03 12:04:11 +00:00
|
|
|
<li class="{% if type is equalto "disp" %}active{% endif %}"><a href="/disp_list">Dispositivi</a></li>
|
2017-02-02 07:46:15 +00:00
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<p class="navbar-text">
|
|
|
|
{{user}}
|
|
|
|
</p>
|
|
|
|
<a href="/login" class="btn btn-danger navbar-btn btn-right">Logout</a>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2017-02-02 07:19:45 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|