django-admin2/djadmin2/templates/admin2/bootstrap/model_list.html

51 lines
1.7 KiB
HTML
Raw Normal View History

2013-05-18 14:53:17 +00:00
{% extends "admin2/bootstrap/base.html" %}
2013-05-20 22:45:22 +00:00
{% load admin2_tags %}
2013-05-18 11:37:46 +00:00
{% block title %}Select {{ model }} to change{% endblock %}
2013-05-18 11:37:46 +00:00
{% block page_title %}Select {{ model }} to change{% endblock %}
{% block content %}
2013-05-18 16:16:25 +00:00
<div class="row">
<div class="span12">
2013-05-19 12:29:29 +00:00
<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>
2013-05-19 12:29:29 +00:00
<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>
2013-05-18 16:37:20 +00:00
2013-05-18 16:16:25 +00:00
<table class="table table-bordered table-striped">
<thead>
2013-05-19 12:29:29 +00:00
<th class="checkbox-column"><input type="checkbox"></th>
2013-05-18 16:16:25 +00:00
<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>
2013-05-18 16:16:25 +00:00
{% endfor %}
</tbody>
</table>
2013-05-19 12:29:29 +00:00
<p>{{ object_list|length }} {{ model }}{{ object_list|pluralize }}</p>
2013-05-18 16:16:25 +00:00
</div>
</div>
2013-05-18 11:37:46 +00:00
{% endblock content %}