1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-22 15:44:19 +00:00
estus/templates/ordine/details.htm
2017-09-19 11:28:08 +02:00

59 lines
No EOL
2 KiB
HTML

{% extends "base.htm" %}
{% block title %}Dettagli dell'ordine • estus{% endblock %}
{% block content %}
<h1>
Dettagli dell'ordine
</h1>
<ul class="list-group">
{% if ordine.numero_ordine %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Numero ordine
</h4>
<div class="list-group-item-text">
{{ ordine.numero_ordine }}
</div>
</li>
{% endif %}
{% if ordine.data %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Data dell'ordine
</h4>
<div class="list-group-item-text">
{{ ordine.data }}
</div>
</li>
{% endif %}
{% if ordine.garanzia %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Garanzia
</h4>
<div class="list-group-item-text">
{% if ordine.garanzia > soon %}
<span class="label label-success">Valida</span>
{% elif ordine.garanzia > today %}
<span class="label label-warning">In scadenza</span>
{% else %}
<span class="label label-danger">Scaduta</span>
{% endif %}
{{ ordine.garanzia }}
</div>
</li>
{% endif %}
{% if dispositivi %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Dispositivi associati
</h4>
<div class="list-group-item-text">
{% for dispositivo in dispositivi %} <a href="/disp_details/{{ dispositivo.did }}">{{ dispositivo }}</a> <br>{% endfor %}
</div>
</li>
{% endif %}
</ul>
<a href="/ordine_show/{{ ordine.oid }}" class="btn btn-primary">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica
</a>
{% endblock %}