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