{% extends '../template.html' %}
{% block title %}New Customer order{% endblock %}
{% block subcontent %}
		{% if session.flash.error != "" %}
			{{ session.flash.error | safe }}
		{% endif %}
	
		<h1>New Customer order</h1>
		<form method="post">
			<table class="data" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>Id customer</td>
					<td><input type="text" name="id_customer" value="{{ data.id_customer }}"/></td>
				</tr>
				<tr>
					<td>Id store</td>
					<td><input type="text" name="id_store" value="{{ data.id_store }}"/></td>
				</tr>
				<tr>
					<td>Date</td>
					<td><input type="text" name="date" value="{{ data.date }}"/></td>
				</tr>
				<tr>
					<td>Status</td>
					<td>
						<select name="status">
							<option value="unconfirmed" {% if data.status == "unconfirmed"%}selected="selected"{%endif%}>Unconfirmed</option>
							<option value="cooking" {% if data.status == "cooking"%}selected="selected"{%endif%}>Cooking</option>
							<option value="bagging" {% if data.status == "bagging"%}selected="selected"{%endif%}>Bagging</option>
							<option value="delivery" {% if data.status == "delivery"%}selected="selected"{%endif%}>Delivery</option>
							<option value="success" {% if data.status == "success"%}selected="selected"{%endif%}>Success</option>
							<option value="fail" {% if data.status == "fail"%}selected="selected"{%endif%}>Fail</option>
						</select>
					</td>
				</tr>
			</table>
			<br/><input type="submit" value="Submit" /> <a href="{% nav customer_order %}">Cancel</a>
		</form>
{% endblock %}
