mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-25 09:04:18 +00:00
43 lines
2.1 KiB
HTML
43 lines
2.1 KiB
HTML
{% extends "base.htm" %}
|
|
{% block title %}Modifica ordine • estus{% endblock %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<h1>
|
|
{% if action == "add" %}
|
|
Crea ordine
|
|
{% elif action == "show" %}
|
|
Modifica ordine
|
|
{% endif %}
|
|
</h1>
|
|
</div>
|
|
<div class="alert alert-warning">
|
|
Il campo data non è ancora <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1366188">correttamente supportato da Firefox</a>, Internet Explorer 11 e probabilmente altri browser. Se il calendario non viene fuori, inserite le date nel formato AAAA-MM-GG.
|
|
</div>
|
|
<form class="form-horizontal" method="post">
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-tipo">Data di acquisto</label>
|
|
<div class="col-xs-10">
|
|
<input class="form-control" type="date" placeholder="yyyy-mm-dd" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" name="data" {% if order %}value="{{ order.data }}"{% endif %}>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-tipo">Fornitore</label>
|
|
<div class="col-xs-10">
|
|
<input class="form-control" type="text" placeholder="Fornitore" name="fornitore" {% if order %} value="{{ order.fornitore }}" {% endif %}>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-tipo">Numero ordine</label>
|
|
<div class="col-xs-10">
|
|
<input class="form-control" type="text" placeholder="Numero ordine" name="numero_ordine" {% if order %}value="{{ order.numero_ordine }}"{% endif %}>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-xs-2" for="form-tipo">Data scadenza garanzia</label>
|
|
<div class="col-xs-10">
|
|
<input class="form-control" type="date" placeholder="yyyy-mm-dd" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}" name="garanzia" {% if order %}value="{{ order.garanzia }}"{% endif %}>
|
|
</div>
|
|
</div>
|
|
<input class="btn btn-primary" type="submit" value="Salva">
|
|
</form>
|
|
{% endblock %}
|