2017-09-19 07:36:39 +00:00
{% extends "base.htm" %}
{% block title %}Modifica ordine • estus{% endblock %}
{% block content %}
< h1 >
{% if action == "add" %}
Crea ordine
{% elif action == "show" %}
Modifica ordine
{% endif %}
< / h1 >
< div class = "alert alert-warning" >
2017-09-19 15:43:05 +00:00
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.
2017-09-19 07:36:39 +00:00
< / div >
2017-09-19 15:43:05 +00:00
< form class = "form-horizontal" { % if order % } action = "/order_show/{{ order.oid }}" { % endif % } 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" >
2017-09-19 07:36:39 +00:00
< / form >
{% endblock %}