2017-09-12 09:07:10 +00:00
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
2017-09-12 08:55:22 +00:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
{% if user %}
|
2017-09-12 09:07:10 +00:00
|
|
|
<a class="navbar-brand" href="/dashboard"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
|
2017-09-12 08:55:22 +00:00
|
|
|
{% else %}
|
2017-09-12 09:07:10 +00:00
|
|
|
<a class="navbar-brand" href="/login"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
|
2017-09-12 08:55:22 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% 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>
|
|
|
|
<li class="{% if type is equalto "disp" %}active{% endif %}"><a href="/disp_list">Dispositivi</a></li>
|
|
|
|
<li class="{% if type is equalto "net" %}active{% endif %}"><a href="/net_list">Reti</a></li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2017-09-13 08:24:59 +00:00
|
|
|
<li class="{% if type is equalto "user" %}active{% endif %}"><a href="/user_list">Utenti</a></li>
|
|
|
|
<li class="{% if type is equalto "query" %}active{% endif %}"><a href="/query">Query</a></li>
|
2017-09-12 09:07:10 +00:00
|
|
|
<li class="navbar-text">
|
2017-09-12 13:11:23 +00:00
|
|
|
Sei connesso come <b>{{user}}</b>
|
2017-09-12 09:07:10 +00:00
|
|
|
</li>
|
2017-09-13 07:17:23 +00:00
|
|
|
<a href="/logout" class="btn btn-danger navbar-btn btn-right">Logout</a>
|
2017-09-12 08:55:22 +00:00
|
|
|
</ul>
|
2017-09-13 07:06:59 +00:00
|
|
|
{% endif %}
|
2017-02-02 07:19:45 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|