{% extends '../template.html' %}
{% block title %}Edit Absensi{% endblock %}
{% block subcontent %}
		{% if session.flash.error != "" %}
			{{ session.flash.error | safe }}
		{% endif %}
		
		<h1>Edit Absensi</h1>
		<form method="post">
			<table class="data" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>Id Rider</td>
					<td><input type="text" name="id_kurir" value="{{ data.id_kurir }}"/></td>
				</tr>
				<tr>
					<td>Tgl</td>
					<td><input type="text" name="tgl" value="{{ data.tgl }}"/></td>
				</tr>
				<tr>
					<td>Jam datang</td>
					<td><input type="text" name="jam_datang" value="{{ data.jam_datang }}"/></td>
				</tr>
				<tr>
					<td>Jam keluar</td>
					<td><input type="text" name="jam_keluar" value="{{ data.jam_keluar }}"/></td>
				</tr>
				<tr>
					<td>Hantaran</td>
					<td><input type="text" name="hantaran" value="{{ data.hantaran }}"/></td>
				</tr>
				<tr>
					<td>Kehadiran</td>
					<td>
						<select name="kehadiran">
							<option value="hadir" {% if data.kehadiran == "hadir"%}selected="selected"{%endif%}>Hadir</option>
							<option value="off" {% if data.kehadiran == "off"%}selected="selected"{%endif%}>Off</option>
							<option value="backup" {% if data.kehadiran == "backup"%}selected="selected"{%endif%}>Backup</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>Backup</td>
					<td><input type="text" name="backup" value="{{ data.backup }}"/></td>
				</tr>
			</table>
			<br/><input type="submit" value="Submit" /> <a href="{% nav absensi %}">Cancel</a>
		</form>
{% endblock %}
