{% extends 'template.html' %}
{% block title %}Edit Pasien{% endblock %}
{% block subcontent %}
		{% if session.flash.error != "" %}
			{{ session.flash.error | safe }}
		{% endif %}
		
		<h2>Data Obat > Edit Obat</h2>
		<form method="post">
			<table class="data" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>Nama</td>
					<td><input type="text" name="nama" value="{{ data.nama }}"/></td>
				</tr>
				<tr>
					<td>Kode</td>
					<td><input type="text" name="kode" value="{{ data.kode }}"/></td>
				</tr>
				<tr>
					<td>Harga Jual</td>
					<td><input type="text" name="harga_jual" value="{{ data.harga_jual }}"/></td>
				</tr>
				<tr>
					<td>Subsidi</td>
					<td>
						<select name="status">
							<option value="" {% if data.status == '' %}selected="true"{% endif %}>Tidak</option>
							<option value="s" {% if data.status == 's' %}selected="true"{% endif %}>Ya</option>
						</select>
					</td>
				</tr>
					<td>Exp Date</td>
					<td><input type="text" name="exp" value="{{ data.exp }}"/>yyyy-mm-dd</td>
				</tr>
			</table>
			<br/><input type="submit" class="btn btn-success" value="Simpan" /> <a class="btn btn-danger" href="{% nav apotik_obat %}">Batal</a>
		</form>
{% endblock %}
