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

Fix <code> displaying in the imp pages (closes #19)

Also, indentation
This commit is contained in:
Steffo 2017-09-19 17:22:11 +02:00
parent 81f0c784f8
commit 906de4cb77
2 changed files with 27 additions and 21 deletions

View file

@ -13,30 +13,35 @@
{{ impiegato.nomeimpiegato }} {{ impiegato.nomeimpiegato }}
</div> </div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<h4 class="list-group-item-heading"> <h4 class="list-group-item-heading">
Servizio di appartenenza Servizio di appartenenza
</h4> </h4>
<div class="list-group-item-text"> <div class="list-group-item-text">
{{ impiegato.servizio.ente.nomeente }} - {{ impiegato.servizio.nomeservizio }} {{ impiegato.servizio.ente.nomeente }} - {{ impiegato.servizio.nomeservizio }}
</div> </div>
</li> </li>
<li class="list-group-item"> {% if impiegato.username %}
<h4 class="list-group-item-heading"> <li class="list-group-item">
Username <h4 class="list-group-item-heading">
</h4> Username
<div class="list-group-item-text"> </h4>
<code>{{ impiegato.username }}</code> <div class="list-group-item-text">
</div> <code>{{ impiegato.username }}</code>
</li> </div>
<li class="list-group-item"> </li>
<h4 class="list-group-item-heading"> {% endif %}
Password {% if impiegato.passwd %}
</h4> <li class="list-group-item">
<div class="list-group-item-text"> <h4 class="list-group-item-heading">
<code>{{ impiegato.passwd }}</code> Password
</div> </h4>
</li> <div class="list-group-item-text">
<code>{{ impiegato.passwd }}</code>
</div>
</li>
{% endif %}
{% if accessi %}
<li class="list-group-item"> <li class="list-group-item">
<h4 class="list-group-item-heading"> <h4 class="list-group-item-heading">
Dispositivi associati Dispositivi associati
@ -46,7 +51,8 @@
<a href="/disp_details/{{ accesso.dispositivo.did }}">{{ accesso.dispositivo }}</a><br> <a href="/disp_details/{{ accesso.dispositivo.did }}">{{ accesso.dispositivo }}</a><br>
{% endfor %} {% endfor %}
</div> </div>
</li> </li>
{% endif %}
</ul> </ul>
<a href="/imp_show/{{ impiegato.iid }}" class="btn btn-primary"> <a href="/imp_show/{{ impiegato.iid }}" 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

@ -21,8 +21,8 @@
<td>{{ imp.servizio.ente.nomeente }}</td> <td>{{ imp.servizio.ente.nomeente }}</td>
<td>{{ imp.servizio.nomeservizio }} <td>{{ imp.servizio.nomeservizio }}
<td>{{ imp.nomeimpiegato }}</td> <td>{{ imp.nomeimpiegato }}</td>
<td><code>{{ imp.username }}</code></td> <td>{% if imp.username %}<code>{{ imp.username }}</code>{% endif %}</td>
<td><code>{{ imp.passwd }}</code></td> <td>{% if imp.passwd %}<code>{{ imp.passwd }}</code>{% endif %}</td>
<td><a href="/imp_details/{{ imp.iid }}" title="Dettagli"><span class="glyphicon glyphicon-zoom-in"></span></a> <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_details/{{ imp.iid }}" title="Dettagli"><span class="glyphicon glyphicon-zoom-in"></span></a> <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> </tr>
{% endfor %} {% endfor %}