{% extends '../template.html' %}
{% block title %}Absensi{% endblock %}
{% block subcontent %}
	<h1>Absensi</h1>
	
	{% if data.length > 0 %}		
	<table class="data">
		<tr>
				<th>id</th>
				<th>id_kurir</th>
				<th>tgl</th>
				<th>jam_datang</th>
				<th>jam_keluar</th>
				<th>hantaran</th>
				<th>kehadiran</th>
				<th>backup</th>
				<th></th>
			</tr>
		{% for row in data %}
			<tr>
				<td>{{row.id}}</td>
				<td>{{row.id_kurir}}</td>
				<td>{{row.tgl}}</td>
				<td>{{row.jam_datang}}</td>
				<td>{{row.jam_keluar}}</td>
				<td>{{row.hantaran}}</td>
				<td>{{row.kehadiran}}</td>
				<td>{{row.backup}}</td>
				<td><a href="{% nav absensi %}/{{ row.id }}">view</a>
				<a href="{% nav absensi_edit %}/{{ row.id }}">edit</a>
				<a href="{% nav absensi_del %}/{{ row.id }}">del</a></td>
			</tr>
		{% endfor %}
	</table>
	{% else %}
		Absensi is empty, klik new button bellow to make one.<br/>
	{% endif %}
	
	{% for p in page %}
	<a href="{{ p.link }}" class="{% if p.active == 'yes' %}active{% endif %} page">{{ p.number }}</a>
	{% endfor %}
	
	<a href="{% nav absensi_new %}" class="admin_new_btn">New</a>
{% endblock %}
