1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23: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>
<th>Nome ente</th>
<th>Nome breve</th>
<th>Ispeziona</th>
<th>Modifica</th>
<th>Elimina</th>
<th>Azioni</th>
</tr>
</thead>
<tbody>
@ -20,9 +18,7 @@
<tr>
<td>{{ ente.nomeente }}</td>
<td>{{ ente.nomebreveente }}</td>
<td><a href="/serv_list/{{ ente.eid }}"><span class="glyphicon glyphicon-list-alt"></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>
<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>
</tr>
{% endfor %}
</tbody>

View file

@ -13,8 +13,7 @@
<th>Nome impiegato</th>
<th>Nome utente</th>
<th>Password</th>
<th>Modifica</th>
<th>Elimina</th>
<th>Azioni</th>
</tr>
</thead>
{% for imp in impiegati %}
@ -24,8 +23,7 @@
<td>{{ imp.nomeimpiegato }}</td>
<td><code>{{ imp.username }}</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_del/{{ imp.iid }}"><span class="glyphicon glyphicon-remove"></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>
</tr>
{% endfor %}
</table>

View file

@ -19,18 +19,14 @@
<tr>
<th>Nome Rete</th>
<th>IP</th>
<th>Dettagli</th>
<th>Modifica</th>
<th>Elimina</th>
<th>Azioni</th>
</tr>
</thead>
{% for rete in reti %}
<tr>
<td>{{ rete.nome }}</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_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>
<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>
</tr>
{% endfor %}
</table>

View file

@ -11,9 +11,7 @@
<th>Nome ente</th>
<th>Nome servizio</th>
<th>Locazione</th>
<th>Ispeziona</th>
<th>Modifica</th>
<th>Elimina</th>
<th>Azioni</th>
</tr>
</thead>
{% for servizio in serv %}
@ -21,9 +19,7 @@
<td>{{ servizio.ente.nomeente }}</td>
<td>{{ servizio.nomeservizio }}</td>
<td>{{ servizio.locazione }}</td>
<td><a href="/imp_list/{{ servizio.sid }}"><span class="glyphicon glyphicon-list-alt"></span></a></td>
<td><a href="/serv_show/{{ servizio.sid }}"><span class="glyphicon glyphicon-pencil"></span></a></td>
<td><a href="/serv_del/{{ servizio.sid }}"><span class="glyphicon glyphicon-remove"></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>
</tr>
{% endfor %}
</table>