<p><a href="/blocks/add">{"Add Block"}</a></p>

{% if offset > 0 %}
<p class="previous"><a href="/blocks/admin?offset={{ prev }}">&laquo; {"Previous"}</a></p>
{% end %}

<p>
<table width="100%">
	<tr>
		<th width="20%">{"ID"}</th>
		<th width="40%">{"Title"}</th>
		<th width="25%">{"Access"}</th>
		<th width="15%">&nbsp;</th>
	</tr>
{% foreach blocks %}
	<tr>
		<td>{{ loop_value->id }}</td>
		<td>{{ loop_value->title }}</td>
		<td>{{ loop_value->access|ucfirst }}</td>
		<td>
			{% if loop_value->locked %}
			{"Editing Locked"}
			{% else %}
			<a href="/blocks/edit?id={{ loop_value->id }}">{"Edit"}</a> | <a href="/blocks/delete?id={{ loop_value->id }}" onclick="return confirm ('{"Are you sure you want to delete this block?"}');">{"Delete"}</a>
			{% end %}
		</td>
	</tr>
{% end %}
</table>
</p>

{% if more %}
<p class="next"><a href="/blocks/admin?offset={{ next }}">{"Next"} &raquo;</a></p>
{% end %}
