django-admin2/djadmin2/templates/admin2/bootstrap/model_list.html
Daniel Greenfeld 55673a8649 Merge
2013-05-18 18:04:40 +02:00

22 lines
547 B
HTML

{% extends "admin2/bootstrap/base.html" %}
{% block content %}
<h2>{{ model_pluralized|title }}</h2>
{% if has_add_permission %}
<a class="btn" href="./create/">add</a>
{% endif %}
<hr/>
{% for obj in object_list %}
{{ obj }}
<a href="./{{ obj.pk }}/">detail</a>
{% if has_edit_permission %}
<a href="./{{ obj.pk }}/update/">edit</a>
{% endif %}
{% if has_delete_permission %}
<a href="./{{ obj.pk }}/delete/">delete</a>
{% endif %}
<br/>
{% endfor %}
{% endblock content %}