mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-21 16:40:28 +00:00
50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
{% extends "admin2/bootstrap/base.html" %}
|
|
{% load admin2_tags %}
|
|
|
|
{% block title %}Select {{ model }} to change{% endblock %}
|
|
|
|
{% block page_title %}Select {{ model }} to change{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
<div class="span12">
|
|
<div class="space-below">
|
|
<div class="btn-group">
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
|
Actions
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a tabindex="-1" href="#">Delete selected {{ model }}{{ object_list|pluralize }}</a></li>
|
|
</ul>
|
|
</div>
|
|
<small class="muted">TODO of {{ object_list|length }} selected</small>
|
|
<div class="pull-right">
|
|
{# if has_add_permission #}
|
|
<a href="{% url view|admin2_urlname:'create' %}" class="btn"><i class="icon-plus"></i> Add {{ model }}</a>
|
|
{# endif #}
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<th class="checkbox-column"><input type="checkbox"></th>
|
|
<th>{{ model|title}}</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for obj in object_list %}
|
|
<tr>
|
|
<td><input type="checkbox"></td>
|
|
<td>
|
|
<a href="{% url view|admin2_urlname:'update' pk=obj.pk %}">{{ obj }}</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<p>{{ object_list|length }} {{ model }}{{ object_list|pluralize }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|