1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-25 17:14:19 +00:00

Improve disp_add and disp_show pages

This commit is contained in:
Steffo 2017-09-18 10:18:31 +02:00
parent d8b26c03de
commit 11c00c8de7
3 changed files with 90 additions and 70 deletions

View file

@ -43,8 +43,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-xs-2" for="form-utente">Utenti</label> <label class="col-xs-2" for="form-utente">Utenti</label>
<div class="col-xs-10" id="users-column"> <div class="col-xs-10" id="users-column">
<div id="add-user" class="btn btn-success" onclick="adduser()"><span class="glyphicon glyphicon-plus"></span></div> <p>
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()"><span class="glyphicon glyphicon-minus"></span></div> <div id="add-user" class="btn btn-success" onclick="adduser()"><span class="glyphicon glyphicon-plus"></span></div>
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()"><span class="glyphicon glyphicon-minus"></span></div>
</p>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View file

@ -13,65 +13,89 @@
{{ disp.tipo }} {{ disp.tipo }}
</div> </div>
</li> </li>
<li class="list-group-item"> {% if disp.marca %}
<h4 class="list-group-item-heading">
Marca
</h4>
<div class="list-group-item-text">
{{ disp.marca }}
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Modello
</h4>
<div class="list-group-item-text">
{{ disp.modello }}
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Modello
</h4>
<div class="list-group-item-text">
{{ disp.fornitore }}
</div>
</li>
<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>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Codice Inventario CED
</h4>
<div class="list-group-item-text">
<code>{{ disp.inv_ced }}</code>
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Codice Inventario Ente
</h4>
<div class="list-group-item-text">
<code>{{ disp.inv_ente }}</code>
</div>
</li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Codice Seriale
</h4>
<div class="list-group-item-text">
<code>{{ disp.seriale }}</code>
</div>
</li>
<li class="list-group-item"> <li class="list-group-item">
<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 %}
{% if disp.fornitore %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Fornitore
</h4>
<div class="list-group-item-text">
{{ disp.fornitore }}
</div>
</li>
{% endif %}
{% 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">
<code>{{ disp.inv_ced }}</code>
</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">
<code>{{ disp.inv_ente }}</code>
</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">
<code>{{ disp.seriale }}</code>
</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">
<code>{{ disp.ip }}</code>
</div>
</li>
{% endif %}
<li class="list-group-item">
<h4 class="list-group-item-heading"> <h4 class="list-group-item-heading">
Network Network
</h4> </h4>
@ -79,14 +103,6 @@
<a href="/net_details/{{ disp.rete.nid }}"><code>{{ disp.rete.nome }} - {{ disp.rete.network_ip }}/{{ disp.rete.subnet }}</code></a> <a href="/net_details/{{ disp.rete.nid }}"><code>{{ disp.rete.nome }} - {{ disp.rete.network_ip }}/{{ disp.rete.subnet }}</code></a>
</div> </div>
</li> </li>
<li class="list-group-item">
<h4 class="list-group-item-heading">
Indirizzo IP
</h4>
<div class="list-group-item-text">
<code>{{ disp.ip }}</code>
</div>
</li>
</ul> </ul>
<a href="/disp_show/{{ disp.did }}" class="btn btn-primary"> <a href="/disp_show/{{ disp.did }}" class="btn btn-primary">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica

View file

@ -52,8 +52,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-xs-2" for="form-utente">Utenti</label> <label class="col-xs-2" for="form-utente">Utenti</label>
<div class="col-xs-10" id="users-column"> <div class="col-xs-10" id="users-column">
<div id="add-user" class="btn btn-success" onclick="adduser()"><span class="glyphicon glyphicon-plus"></span></div> <p>
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()"><span class="glyphicon glyphicon-minus"></span></div> <div id="add-user" class="btn btn-success" onclick="adduser()"><span class="glyphicon glyphicon-plus"></span></div>
<div id="remove-user" class="btn btn-danger disabled" onclick="removeuser()"><span class="glyphicon glyphicon-minus"></span></div>
</p>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">