mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-17 13:21:06 +00:00
52 lines
1.6 KiB
HTML
52 lines
1.6 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">
|
|
Action:
|
|
<select>
|
|
<option>----------</option>
|
|
<option>Delete selected {{ model }}{{ object_list|pluralize }}</option>
|
|
</select>
|
|
<a class="btn btn-mini" href="TODO">Go</a>
|
|
TODO of {{ object_list|length }} selected
|
|
|
|
<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>
|
|
|
|
{{ object_list|length }} {{ model }}{{ object_list|pluralize }}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|