2017-09-11 10:47:52 +00:00
{% extends "base.htm" %}
2017-09-13 06:41:07 +00:00
{% block title %}Elenco dispositivi • 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 10:47:52 +00:00
{% block content %}
2017-09-20 10:01:07 +00:00
< div class = "page-header" >
< h1 >
Dispositivi
2017-09-21 07:29:49 +00:00
< a class = "btn btn-success" href = "{{ url_for(" page_disp_add " ) } } " > < span class = "glyphicon glyphicon-plus" > < / span > Aggiungi< / a >
2017-09-20 10:01:07 +00:00
< / h1 >
< / div >
2017-09-11 10:47:52 +00:00
< table class = "table table-hover" >
< thead >
< tr >
< th > Tipo dispositivo< / th >
< th > Utenti< / th >
< th > Inventario CED< / th >
2017-09-21 10:54:59 +00:00
< th > S.O.< / th >
< th > IP< / th >
2017-09-11 15:05:45 +00:00
< th > Seriale< / th >
2017-09-12 13:11:23 +00:00
< th > Azioni< / th >
2017-09-11 10:47:52 +00:00
< / tr >
< / thead >
{% for d in accessi %}
< tr >
< td > {{ d[0].dispositivo.tipo }}< / td >
2017-09-22 07:08:39 +00:00
< td > {% for u in d %}{% if u.iid != None %}< a href = "{{ url_for(" page_imp_details " , iid = u.impiegato.iid) } } " > {% endif %}{{ u.impiegato.nomeimpiegato }}{% if u.iid != None %}< / a > {% endif %}{% if loop.index < d | length % } < br > {% endif %}{% endfor %}< / td >
2017-09-18 12:54:52 +00:00
< td > {% if d[0].dispositivo.inv_ced %}{{ d[0].dispositivo.inv_ced }}{% endif %}< / td >
2017-09-22 06:29:20 +00:00
< td >
{% 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 %}
{{ d[0].dispositivo.so }}
< / td >
2017-09-21 10:54:59 +00:00
< td > {{ d[0].dispositivo.ip }}< / td >
2017-09-20 10:10:52 +00:00
< td > {% if d[0].dispositivo.seriale %}{{ d[0].dispositivo.seriale }}{% endif %}< / td >
2017-09-18 13:04:22 +00:00
< td >
2017-09-21 07:29:49 +00:00
< a href = "{{ url_for(" page_disp_details " , did = d[0].did) } } " title = "Dettagli" > < span class = "glyphicon glyphicon-zoom-in" > < / span > < / a >
< a href = "{{ url_for(" page_disp_show " , did = d[0].did) } } " title = "Modifica" > < span class = "glyphicon glyphicon-pencil" > < / span > < / a >
< a href = "{{ url_for(" page_disp_clone " , did = d[0].did) } } " title = "Clona" > < span class = "glyphicon glyphicon-duplicate" > < / span > < / a >
2017-09-22 09:20:31 +00:00
< a href = "javascript:void(0)" onclick = "delet("{{ url_for(" page_disp_del " , did = 12341234) } } & quot ; , { { d [ 0 ] . did } } , & quot ; il dispositivo & quot ; ) ; " title = "Elimina" > < span class = "glyphicon glyphicon-remove" > < / span > < / a >
2017-09-18 13:04:22 +00:00
< / td >
2017-09-11 10:47:52 +00:00
< / tr >
{% endfor %}
< / table >
{% endblock %}