mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-28 18:24:20 +00:00
74 lines
No EOL
2.6 KiB
HTML
74 lines
No EOL
2.6 KiB
HTML
{% extends "base.htm" %}
|
|
{% block title %}Dettagli dell'ordine • estus{% endblock %}
|
|
{% block content %}
|
|
<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>
|
|
<a href="/ordine_del/{{ ordine.oid }}" class="btn btn-danger">
|
|
<span class="glyphicon glyphicon-remove"></span> Elimina
|
|
</a>
|
|
</h1>
|
|
</div>
|
|
<ul class="list-group">
|
|
{% if ordine.numero_ordine %}
|
|
<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>
|
|
{% endif %}
|
|
{% if ordine.data %}
|
|
<li class="list-group-item">
|
|
<h4 class="list-group-item-heading">
|
|
Data dell'ordine
|
|
</h4>
|
|
<div class="list-group-item-text">
|
|
{{ ordine.data }}
|
|
</div>
|
|
</li>
|
|
{% endif %}
|
|
{% if ordine.garanzia %}
|
|
<li class="list-group-item">
|
|
<h4 class="list-group-item-heading">
|
|
Garanzia
|
|
</h4>
|
|
<div class="list-group-item-text">
|
|
{% 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 }}
|
|
</div>
|
|
</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 %}
|
|
{% 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 %}
|
|
</ul>
|
|
{% endblock %} |