1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-26 01:24:18 +00:00

Shrink the list tables by merging the action fields together

This commit is contained in:
Steffo 2017-09-18 08:08:45 +02:00
parent 374bed25ef
commit c5355d6865
4 changed files with 23 additions and 37 deletions

View file

@ -10,9 +10,7 @@
<tr> <tr>
<th>Nome ente</th> <th>Nome ente</th>
<th>Nome breve</th> <th>Nome breve</th>
<th>Ispeziona</th> <th>Azioni</th>
<th>Modifica</th>
<th>Elimina</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -20,9 +18,7 @@
<tr> <tr>
<td>{{ ente.nomeente }}</td> <td>{{ ente.nomeente }}</td>
<td>{{ ente.nomebreveente }}</td> <td>{{ ente.nomebreveente }}</td>
<td><a href="/serv_list/{{ ente.eid }}"><span class="glyphicon glyphicon-list-alt"></span></a></td> <td><a href="/serv_list/{{ ente.eid }}"><span class="glyphicon glyphicon-list-alt"></span></a> <a href="/ente_show/{{ ente.eid }}"><span class="glyphicon glyphicon-pencil"></span></a> <a href="/ente_del/{{ ente.eid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
<td><a href="/ente_show/{{ ente.eid }}"><span class="glyphicon glyphicon-pencil"></span></a></td>
<td><a href="/ente_del/{{ ente.eid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View file

@ -13,8 +13,7 @@
<th>Nome impiegato</th> <th>Nome impiegato</th>
<th>Nome utente</th> <th>Nome utente</th>
<th>Password</th> <th>Password</th>
<th>Modifica</th> <th>Azioni</th>
<th>Elimina</th>
</tr> </tr>
</thead> </thead>
{% for imp in impiegati %} {% for imp in impiegati %}
@ -24,8 +23,7 @@
<td>{{ imp.nomeimpiegato }}</td> <td>{{ imp.nomeimpiegato }}</td>
<td><code>{{ imp.username }}</code></td> <td><code>{{ imp.username }}</code></td>
<td><code>{{ imp.passwd }}</code></td> <td><code>{{ imp.passwd }}</code></td>
<td><a href="/imp_show/{{ imp.iid }}"><span class="glyphicon glyphicon-pencil"></span></a></td> <td><a href="/imp_show/{{ imp.iid }}"><span class="glyphicon glyphicon-pencil"></span></a> <a href="/imp_del/{{ imp.iid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
<td><a href="/imp_del/{{ imp.iid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View file

@ -19,18 +19,14 @@
<tr> <tr>
<th>Nome Rete</th> <th>Nome Rete</th>
<th>IP</th> <th>IP</th>
<th>Dettagli</th> <th>Azioni</th>
<th>Modifica</th>
<th>Elimina</th>
</tr> </tr>
</thead> </thead>
{% for rete in reti %} {% for rete in reti %}
<tr> <tr>
<td>{{ rete.nome }}</td> <td>{{ rete.nome }}</td>
<td>{{ rete.network_ip }}/{{ rete.subnet }}</td> <td>{{ rete.network_ip }}/{{ rete.subnet }}</td>
<td><a href="/net_details/{{ rete.nid }}"><span class="glyphicon glyphicon-zoom-in"></span></a></td> <td><a href="/net_details/{{ rete.nid }}"><span class="glyphicon glyphicon-zoom-in"></span></a> <a href="/net_show/{{ rete.nid }}"><span class="glyphicon glyphicon-pencil"></span></a> {% if reti|length > 1 %}<a href="/net_del/{{ rete.nid }}"><span class="glyphicon glyphicon-remove"></span></a>{% endif %}</td>
<td><a href="/net_show/{{ rete.nid }}"><span class="glyphicon glyphicon-pencil"></span></a></td>
<td>{% if reti|length > 1 %}<a href="/net_del/{{ rete.nid }}"><span class="glyphicon glyphicon-remove"></span></a>{% endif %}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>

View file

@ -1,30 +1,26 @@
{% extends "base.htm" %} {% extends "base.htm" %}
{% block title %}Elenco servizi • estus{% endblock %} {% block title %}Elenco servizi • estus{% endblock %}
{% block content %} {% block content %}
<h1> <h1>
Servizi esistenti Servizi esistenti
</h1> </h1>
<a class="btn btn-success" href="/serv_add"><span class="glyphicon glyphicon-plus"></span> Aggiungi</a> <a class="btn btn-success" href="/serv_add"><span class="glyphicon glyphicon-plus"></span> Aggiungi</a>
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>Nome ente</th> <th>Nome ente</th>
<th>Nome servizio</th> <th>Nome servizio</th>
<th>Locazione</th> <th>Locazione</th>
<th>Ispeziona</th> <th>Azioni</th>
<th>Modifica</th> </tr>
<th>Elimina</th>
</tr>
</thead> </thead>
{% for servizio in serv %} {% for servizio in serv %}
<tr> <tr>
<td>{{ servizio.ente.nomeente }}</td> <td>{{ servizio.ente.nomeente }}</td>
<td>{{ servizio.nomeservizio }}</td> <td>{{ servizio.nomeservizio }}</td>
<td>{{ servizio.locazione }}</td> <td>{{ servizio.locazione }}</td>
<td><a href="/imp_list/{{ servizio.sid }}"><span class="glyphicon glyphicon-list-alt"></span></a></td> <td><a href="/imp_list/{{ servizio.sid }}"><span class="glyphicon glyphicon-list-alt"></span></a> <a href="/serv_show/{{ servizio.sid }}"><span class="glyphicon glyphicon-pencil"></span></a> <a href="/serv_del/{{ servizio.sid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
<td><a href="/serv_show/{{ servizio.sid }}"><span class="glyphicon glyphicon-pencil"></span></a></td> </tr>
<td><a href="/serv_del/{{ servizio.sid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
</tr>
{% endfor %} {% endfor %}
</table> </table>
{% endblock %} {% endblock %}