{% include 'devtool_header.html' %}
<table>
<tr>
<th>Rule Id</th>
<th>Page Id</th>
<th>Business Logic</th>
</tr>
	<tr>
	<form action="/editor.php?a=pagerules&command=add" method="post">
		<td>
		NEW
		</td>
		<td>
		___
		</td>
		<td>
		___
		</td>
		<td>
		<input type="submit" value="Save" />
		</td>
	</form>
	</tr>
{% for page in pages %}
<tr>
		<td>
		{{ page['page_id'] }}
		</td>
		<td>
		{{ page['template_path'] }}
		</td>
		<td>
		{{ page['template_filename'] }}
		</td>
		<td>
		<a href="/editor.php?a=pagerules&id={{ page['page_id'] }}&command=edit">Edit</a>
		<a href="/editor.php?a=pagerules&id={{ page['page_id'] }}&command=delete">Delete</a>
		</td>
	</tr>
{% endfor %}
</table>
{% include 'devtool_footer.html' %}