{% extends '../template.html' %}
{% block title %}[[view]]{% endblock %}
{% block content %}
	<h1>[[view]]</h1>
	
	{% if data.length > 0 %}		
	<table>
		[[fields]]
	</table>
	{% else %}
		[[view]] 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 [[name]]_new %}">New</a>
{% endblock %}
