1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-22 07:34:19 +00:00
estus/templates/nav.htm

35 lines
2.4 KiB
HTML
Raw Normal View History

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">
2017-09-14 07:56:22 +00:00
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navcollapse"><span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button>
2017-09-12 08:55:22 +00:00
{% if user %}
2017-09-21 07:29:49 +00:00
<a class="navbar-brand" href="{{ url_for("page_dashboard") }}"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
2017-09-12 08:55:22 +00:00
{% else %}
2017-09-21 07:29:49 +00:00
<a class="navbar-brand" href="{{ url_for("page_login") }}"><img alt="Inventario" src="{{ url_for('static', filename='UTdClogo.png') }}"></a>
2017-09-12 08:55:22 +00:00
{% endif %}
</div>
2017-09-14 07:56:22 +00:00
<div id="navcollapse" class="collapse navbar-collapse">
2017-09-12 08:55:22 +00:00
<ul class="nav navbar-nav">
2017-09-14 07:56:22 +00:00
{% if user %}
2017-09-21 07:29:49 +00:00
<li class="{% if pagetype is equalto "ente" %}active{% endif %}"><a href="{{ url_for("page_ente_list") }}">Enti</a></li>
<li class="{% if pagetype is equalto "serv" %}active{% endif %}"><a href="{{ url_for("page_serv_list") }}">Servizi</a></li>
<li class="{% if pagetype is equalto "imp" %}active{% endif %}"><a href="{{ url_for("page_imp_list") }}">Impiegati</a></li>
<li class="{% if pagetype is equalto "net" %}active{% endif %}"><a href="{{ url_for("page_net_list") }}">Reti</a></li>
<li class="{% if pagetype is equalto "order" %}active{% endif %}"><a href="{{ url_for("page_order_list") }}">Ordini</a></li>
<li class="{% if pagetype is equalto "disp" %}active{% endif %}"><a href="{{ url_for("page_disp_list") }}">Dispositivi</a></li>
2017-09-14 07:56:22 +00:00
</ul>
<ul class="nav navbar-nav navbar-right">
2017-09-21 07:29:49 +00:00
<li class="{% if pagetype is equalto "user" %}active{% endif %}"><a href="{{ url_for("page_user_list") }}">Utenti</a></li>
<li class="{% if pagetype is equalto "query" %}active{% endif %}"><a href="{{ url_for("page_query") }}">Query</a></li>
2017-09-14 07:56:22 +00:00
<li class="navbar-text">
Sei connesso come <b>{{user}}</b>
</li>
2017-09-21 07:29:49 +00:00
<a href="{{ url_for("page_logout") }}" class="btn btn-danger navbar-btn btn-right">Logout</a>
2017-09-14 07:56:22 +00:00
{% endif %}
2017-09-12 08:55:22 +00:00
</ul>
2017-09-14 07:56:22 +00:00
</div>
</div>
</nav>