{% extends "exodus-template.html" %}

{% block content %}

<P class="blue">{{ modelName }} List </P>
{# XXX: Not DRY #}
<a href="/add/{{ modelURL }}/new/">New {{ modelName }}</a><p />

{% if objects %}
	<table border="0" cellpadding="1">
	{% for object in objects %}
		<tr>
		<td>
		{{ object }}
		</td>
		<td>
		:
		<a href="{% url exodus.views.genericModel "edit" modelURL object %}">EDIT</a>
		<a href="{% url exodus.views.genericModel "delete" modelURL object %}">DELETE</a>
		</td>
		</tr>
    {% endfor %}
	</table>
{% else %}
    <p class="blue"> No {{ modelName }} are available </p>
{% endif %}

{% endblock %}

