mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-28 03:50:26 +00:00
42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
{% extends "admin2/bootstrap/base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="span10">
|
|
<h3>Select {{ model }} to change</h3>
|
|
</div>
|
|
<div class="span2">
|
|
{% if has_add_permission %}
|
|
<a class="btn" href="./create/">Add {{ model|title }} <i class=" icon-plus-sign"></i></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="./{{ 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 %}
|
|
</td>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|