mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-03 06:40:23 +00:00
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
{% extends "admin2/bootstrap/base.html" %}
|
|
{% load admin2_urls %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="span10">
|
|
<h3>Select {{ model }} to change</h3>
|
|
</div>
|
|
<div class="span2">
|
|
{# if has_add_permission #}
|
|
<a href="{% url view|admin2_urlname:'create' %}">add</a>
|
|
{# endif #}
|
|
</div>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div class="row">
|
|
<div class="span12">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<th><input type="checkbox"></th>
|
|
<th>{{ model|title}}</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for obj in object_list %}
|
|
<td><input type="checkbox"></td>
|
|
<td>
|
|
{{ obj }} <a href="{% url view|admin2_urlname:'detail' pk=obj.pk %}">detail</a>
|
|
{# if has_edit_permission #}
|
|
<a href="{% url view|admin2_urlname:'update' pk=obj.pk %}">edit</a>
|
|
{# endif #}
|
|
{# if has_delete_permission #}
|
|
<a href="{% url view|admin2_urlname:'delete' pk=obj.pk %}">delete</a>
|
|
{# endif #}
|
|
</td>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|