{% extends '../template.html' %}
{% block title %}Blacklist{% endblock %}
{% block subcontent %}
	<h1>Blacklist</h1>
	
	<a href="{% nav blacklist_new %}" class="admin_new_btn">New</a><br/>
	{% if data.length > 0 %}		
	<table class="data">
		<tr>
				<th>id</th>
				<th>telepon</th>
				<th>jenis</th>
				<th>date</th>
				<th>keterangan</th>
				<th>id_center</th>
				<th></th>
			</tr>
		{% for row in data %}
			<tr>
				<td>{{row.id}}</td>
				<td>{{row.telepon}}</td>
				<td>{{row.jenis}}</td>
				<td>{{row.date}}</td>
				<td>{{row.keterangan}}</td>
				<td>{{row.id_center}}</td>
				<td><a href="{% nav blacklist %}/{{ row.id }}">view</a>
				<a href="{% nav blacklist_edit %}/{{ row.id }}">edit</a>
				<a  onclick="return confirm('Apakah Anda Yakin ?');" href="{% nav blacklist_del %}/{{ row.id }}">del</a></td>
			</tr>
		{% endfor %}
	</table>
	{% else %}
		Blacklist 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 %}
	
{% endblock %}
