2017-09-19 07:36:39 +00:00
|
|
|
{% extends "base.htm" %}
|
|
|
|
{% block title %}Elenco ordini • estus{% endblock %}
|
|
|
|
{% block content %}
|
2017-09-20 10:01:07 +00:00
|
|
|
<div class="page-header">
|
|
|
|
<h1>
|
|
|
|
Ordini
|
2017-09-21 07:29:49 +00:00
|
|
|
<a class="btn btn-success" href="{{ url_for("page_order_add") }}"><span class="glyphicon glyphicon-plus"></span> Aggiungi</a>
|
2017-09-20 10:01:07 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
2017-09-19 07:36:39 +00:00
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Data dell'ordine</th>
|
|
|
|
<th>Numero dell'ordine</th>
|
2017-09-19 13:49:01 +00:00
|
|
|
<th>Fornitore</th>
|
2017-09-19 09:28:08 +00:00
|
|
|
<th>Stato garanzia</th>
|
2017-09-19 07:36:39 +00:00
|
|
|
<th>Azioni</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for order in orders %}
|
|
|
|
<tr>
|
|
|
|
<td>{% if order.data %}{{ order.data }}{% endif %}</td>
|
|
|
|
<td>{% if order.numero_ordine %}{{ order.numero_ordine }}{% endif %}</td>
|
2017-09-19 13:49:01 +00:00
|
|
|
<td>{% if order.fornitore %}{{ order.fornitore }}{% endif %}</td>
|
2017-09-19 09:28:08 +00:00
|
|
|
<td>
|
|
|
|
{% if order.garanzia %}
|
|
|
|
{% if order.garanzia > soon %}
|
|
|
|
<span class="label label-success">Valida</span>
|
|
|
|
{% elif order.garanzia > today %}
|
|
|
|
<span class="label label-warning">In scadenza</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="label label-danger">Scaduta</span>
|
|
|
|
{% endif %}
|
|
|
|
{{ order.garanzia }}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2017-09-22 09:44:36 +00:00
|
|
|
<td>
|
|
|
|
<a href="{{ url_for("page_order_details", oid=order.oid) }}" title="Dettagli"><span class="glyphicon glyphicon-zoom-in"></span></a>
|
|
|
|
<a href="{{ url_for("page_order_show", oid=order.oid) }}" title="Modifica"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
<a href="javascript:void(0)" onclick="delet("{{ url_for("page_order_del", oid=12341234) }}", {{ order.oid }}, "{{ order }}");" title="Elimina"><span class="glyphicon glyphicon-remove"></span></a></td>
|
2017-09-19 07:36:39 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|