{% include 'devtool_header.html' %}
<table>
<tr>
<th>Page Id</th>
<th>Asset Directory</th>
<th>Index File</th>
<th>Actions</th>
</tr>
	<tr>
	<form action="/editor.php?a=pages&command=add" method="post">
		<td>
		NEW
		</td>
		<td>
		<input type="text" id="template_path" name="template_path" value="" placeholder="coreg123"/>
		</td>
		<td>
		<input type="text" id="template_filename" name="template_filename" value="" placeholder="index.html" />
		</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>
		<a href="/?action=generic&id={{ page['page_id'] }}">{{ page['template_filename'] }}</a>
		</td>
		<td>
		<a href="/editor.php?a=pages&id={{ page['page_id'] }}&command=edit">Edit</a>
		<a href="/editor.php?a=pages&id={{ page['page_id'] }}&command=delete" onclick="return confirm('Are you sure you want to PERMANENTLY DELETE page #{{ page['page_id'] }}? This action cannot be undone.')">Delete</a>
		</td>
	</tr>
{% endfor %}
</table>
{% include 'devtool_footer.html' %}