mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 00:54:18 +00:00
41 lines
1.9 KiB
HTML
41 lines
1.9 KiB
HTML
{% extends "base.htm" %}
|
|
{% block title %}Elenco ordini • estus{% endblock %}
|
|
{% block content %}
|
|
<h1>
|
|
Ordini esistenti
|
|
</h1>
|
|
<a class="btn btn-success" href="/order_add"><span class="glyphicon glyphicon-plus"></span> Aggiungi</a>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Data dell'ordine</th>
|
|
<th>Numero dell'ordine</th>
|
|
<th>Fornitore</th>
|
|
<th>Stato garanzia</th>
|
|
<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>
|
|
<td>{% if order.fornitore %}{{ order.fornitore }}{% endif %}</td>
|
|
<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>
|
|
<td><a href="/order_details/{{ order.oid }}" title="Dettagli"><span class="glyphicon glyphicon-zoom-in"></span></a> <a href="/order_show/{{ order.oid }}"><span class="glyphicon glyphicon-pencil"></span></a> <a href="/order_del/{{ order.oid }}"><span class="glyphicon glyphicon-remove"></span></a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|