mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-24 10:00:25 +00:00
53 lines
1.7 KiB
HTML
53 lines
1.7 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">
|
|
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="{% 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>
|
|
|
|
{{ object_list|length }} {{ model }}{{ object_list|pluralize }}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|