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

74 lines
2.6 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 %}
2017-09-20 10:01:07 +00:00
<div class="page-header">
<h1>
{{ ordine }}
<a href="/ordine_show/{{ ordine.oid }}" class="btn btn-primary">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica
</a>
2017-09-20 10:04:39 +00:00
<a href="/ordine_del/{{ ordine.oid }}" class="btn btn-danger">
<span class="glyphicon glyphicon-remove"></span> Elimina
</a>
2017-09-20 10:01:07 +00:00
</h1>
</div>
2017-09-19 08:57:53 +00:00
<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 ordine.fornitore %}
<li class="list-group-item">
<h4 class="list-group-item-heading">
Fornitore
</h4>
<div class="list-group-item-text">
{{ ordine.fornitore }}
</div>
</li>
{% endif %}
2017-09-19 09:28:08 +00:00
{% 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>
{% endblock %}