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

74 lines
2.6 KiB
HTML
Raw Permalink 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 }}
2017-09-21 07:29:49 +00:00
<a href="{{ url_for("page_order_show", oid=ordine.oid) }}" class="btn btn-primary">
2017-09-20 10:01:07 +00:00
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Modifica
</a>
2017-09-21 07:29:49 +00:00
<a href="{{ url_for("page_order_del", oid=ordine.oid) }}" class="btn btn-danger">
2017-09-20 10:04:39 +00:00
<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">
2017-09-21 07:29:49 +00:00
{% for dispositivo in dispositivi %} <a href="{{ url_for("page_disp_show", did=dispositivo.did) }}">{{ dispositivo }}</a> <br>{% endfor %}
2017-09-19 09:28:08 +00:00
</div>
</li>
{% endif %}
2017-09-19 08:57:53 +00:00
</ul>
{% endblock %}