2017-09-11 13:00:04 +00:00
|
|
|
{% extends "base.htm" %}
|
2017-09-13 06:41:07 +00:00
|
|
|
{% block title %}Dettagli dispositivo • estus{% endblock %}
|
2017-09-22 06:29:20 +00:00
|
|
|
{% block extrahead %}
|
|
|
|
<script src="https://use.fontawesome.com/f463ccd2d9.js"></script>
|
|
|
|
{% endblock %}
|
2017-09-11 13:00:04 +00:00
|
|
|
{% block content %}
|
2017-09-20 10:01:07 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
|
|
|
{{ disp }}
|
2017-09-21 07:29:49 +00:00
|
|
|
<a href="{{ url_for("page_disp_show", did=disp.did) }}" class="btn btn-primary">
|
2017-09-20 10:01:07 +00:00
|
|
|
<span class="glyphicon glyphicon-pencil"></span> Modifica
|
|
|
|
</a>
|
2017-09-21 07:29:49 +00:00
|
|
|
<a href="{{ url_for("page_disp_del", did=disp.did) }}" class="btn btn-danger">
|
2017-09-20 10:04:39 +00:00
|
|
|
<span class="glyphicon glyphicon-remove"></span> Elimina
|
|
|
|
</a>
|
2017-09-20 10:01:07 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
2017-09-11 13:00:04 +00:00
|
|
|
<ul class="list-group">
|
2017-09-11 13:22:44 +00:00
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Tipo Dispositivo
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
|
|
|
{{ disp.tipo }}
|
|
|
|
</div>
|
|
|
|
</li>
|
2017-09-18 08:18:31 +00:00
|
|
|
{% if disp.marca %}
|
2017-09-11 15:05:45 +00:00
|
|
|
<li class="list-group-item">
|
2017-09-18 08:18:31 +00:00
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Marca
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
|
|
|
{{ disp.marca }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if disp.modello %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Modello
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
|
|
|
{{ disp.modello }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-19 08:44:55 +00:00
|
|
|
{% if disp.oid %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Ordine
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-19 09:28:08 +00:00
|
|
|
<a href="/order_details/{{ disp.ordine.oid }}">{{ disp.ordine }}</a>
|
2017-09-19 08:44:55 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-22 06:29:20 +00:00
|
|
|
{% if disp.so %}
|
2017-09-18 14:07:04 +00:00
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Sistema Operativo
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-22 06:29:20 +00:00
|
|
|
{% if "windows" in d[0].dispositivo.so.lower() %}
|
|
|
|
<i class="fa fa-windows"
|
|
|
|
{% if "server" not in d[0].dispositivo.so.lower() %}
|
|
|
|
style="color:
|
|
|
|
{% if "XP" in d[0].dispositivo.so %}#0046FF
|
|
|
|
{% elif "Vista" in d[0].dispositivo.so %}#69797E
|
|
|
|
{% elif "7" in d[0].dispositivo.so %}#30C6CC
|
|
|
|
{% elif "8" in d[0].dispositivo.so %}#F03A17
|
|
|
|
{% elif "10" in d[0].dispositivo.so %}#0078D7
|
|
|
|
{% endif %};"
|
|
|
|
{% endif %}></i>
|
|
|
|
{% elif "linux" in d[0].dispositivo.so.lower() or "ubuntu" in d[0].dispositivo.so.lower() or "debian" in d[0].dispositivo.so.lower() %}
|
|
|
|
<i class="fa fa-linux"></i>
|
|
|
|
{% elif "mac" in d[0].dispositivo.so.lower() or "iOS" in d[0].dispositivo.so %}
|
|
|
|
<i class="fa fa-apple"></i>
|
|
|
|
{% elif "android" in d[0].dispositivo.so.lower() %}
|
|
|
|
<i class="fa fa-android"></i>
|
|
|
|
{% endif %}
|
2017-09-18 14:07:04 +00:00
|
|
|
{{ disp.so }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-18 08:18:31 +00:00
|
|
|
{% if accessi %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Utenti
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
|
|
|
{% for accesso in accessi %}
|
|
|
|
<a href="/imp_details/{{ accesso.iid }}">{{ accesso.impiegato.nomeimpiegato }}</a><br>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if disp.inv_ced %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Codice Inventario CED
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-19 09:28:08 +00:00
|
|
|
{{ disp.inv_ced }}
|
2017-09-18 08:18:31 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if disp.inv_ente %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Codice Inventario Ente
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-19 15:49:21 +00:00
|
|
|
{{ disp.inv_ente }}
|
2017-09-18 08:18:31 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if disp.seriale %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Codice Seriale
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-19 15:49:21 +00:00
|
|
|
{{ disp.seriale }}
|
2017-09-18 08:18:31 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if disp.ip %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Indirizzo IP
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-21 07:29:49 +00:00
|
|
|
{{ disp.ip }}
|
2017-09-18 08:18:31 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-19 13:37:33 +00:00
|
|
|
{% if disp.hostname %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Hostname
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
2017-09-21 07:29:49 +00:00
|
|
|
{{ disp.hostname }}
|
2017-09-19 13:37:33 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-21 07:40:20 +00:00
|
|
|
{% if disp.nid %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="list-group-item-heading">
|
|
|
|
Network
|
|
|
|
</h4>
|
|
|
|
<div class="list-group-item-text">
|
|
|
|
<a href="{{ url_for("page_net_details", nid=disp.rete.nid) }}">{{ disp.rete.nome }} - {{ disp.rete.network_ip }}/{{ disp.rete.subnet }}</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-13 08:25:52 +00:00
|
|
|
</ul>
|
2017-09-11 13:00:04 +00:00
|
|
|
{% endblock %}
|