1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-22 23:54:20 +00:00
estus/templates/ordine/details.htm

59 lines
2 KiB
HTML
Raw Normal View History

2017-09-19 08:57:53 +00:00
{% extends "base.htm" %}
2017-09-19 09:28:08 +00:00
{% block title %}Dettagli dell'ordine • estus{% endblock %}
2017-09-19 08:57:53 +00:00
{% block content %}
<h1>
2017-09-19 09:28:08 +00:00
Dettagli dell'ordine
2017-09-19 08:57:53 +00:00
</h1>
<ul class="list-group">
2017-09-19 09:28:08 +00:00
{% if ordine.numero_ordine %}
2017-09-19 08:57:53 +00:00
<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>
2017-09-19 09:28:08 +00:00
{% endif %}
{% if ordine.data %}
<li class="list-group-item">
2017-09-19 08:57:53 +00:00
<h4 class="list-group-item-heading">
2017-09-19 09:28:08 +00:00
Data dell'ordine
2017-09-19 08:57:53 +00:00
</h4>
<div class="list-group-item-text">
{{ ordine.data }}
</div>
2017-09-19 09:28:08 +00:00
</li>
{% endif %}
{% if ordine.garanzia %}
<li class="list-group-item">
2017-09-19 08:57:53 +00:00
<h4 class="list-group-item-heading">
2017-09-19 09:28:08 +00:00
Garanzia
2017-09-19 08:57:53 +00:00
</h4>
<div class="list-group-item-text">
2017-09-19 09:28:08 +00:00
{% 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 }}
2017-09-19 08:57:53 +00:00
</div>
2017-09-19 09:28:08 +00:00
</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 %}
2017-09-19 08:57:53 +00:00
</ul>
2017-09-19 09:28:08 +00:00
<a href="/ordine_show/{{ ordine.oid }}" class="btn btn-primary">
2017-09-19 08:57:53 +00:00
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica
</a>
{% endblock %}