{% extends '../template.html' %}
{% block title %}New Store{% endblock %}
{% block subcontent %}
		{% if session.flash.error != "" %}
			{{ session.flash.error | safe }}
		{% endif %}
	
		<h1>New Store</h1>
			<form method="post">
			<table class="data" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>Kode</td>
					<td><input type="text" name="kode" value="{{ data.kode }}"/></td>
				</tr>
				<tr>
					<td>Nama</td>
					<td><input type="text" name="nama" value="{{ data.nama }}" style="width:350px;"/></td>
				</tr>
				<tr>
					<td>Alamat</td>
					<td><textarea name="alamat" style="width:350px;">{{ data.alamat }}</textarea></td>
				</tr>
				<tr>
					<td>Telepon</td>
					<td><input type="text" name="telepon" value="{{ data.telepon }}"/></td>
				</tr>
				<tr>
					<td>Status</td>
					<td>
						<select name="status">
							<option value="av" {% if data.status == "av"%}selected="selected"{%endif%}>Available</option>
							<option value="na" {% if data.status == "na"%}selected="selected"{%endif%}>Not Available</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>Kategori menu</td>
					<td>
						<select name="kategori_menu" id="">
							{% for k in kategori_menu %}
							<option {% if k == data.kategori_menu %}selected="selected"{% endif %} value="{{k}}">{{ k }}</option>
							{% endfor %}
						</select>
					
					</td>
				</tr>
				<tr>
					<td>Jam Buka</td>
					<td><input type="text" name="jam_buka" value="{{ data.jam_buka }}"/></td>
				</tr>
				<tr>
					<td>Jam Tutup</td>
					<td><input type="text" name="jam_tutup" value="{{ data.jam_tutup }}"/></td>
				</tr>
			</table>
			<br/><input type="submit" value="Submit" /> <a href="{% nav store %}">Cancel</a>
{% endblock %}
