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

52 lines
1.7 KiB
HTML

{% extends "admin2/bootstrap/base.html" %}
{% load admin2_tags %}
{% block content %}
<div class="row">
<div class="span7">
{% for app, registry in apps.items %}
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th colspan="3">
<a href="TODO {{ app.get_index_url }}">{{ app|title }}</a>
</th>
</tr>
</thead>
<tbody>
{% for model_class, model_admin in registry.items %}
<tr>
<td width="40%">
<a href="{{ model_admin.get_index_url }}">
{{ model_admin.verbose_name_plural|title }}
</a>
</td>
<td class="text-right">
{# if has_add_permission #}
<a href="{% url model_admin|admin2_urlname:'create' %}">
<i class="icon-plus"></i>
Add
</a>
{# endif #}
</td>
<td class="text-right">
<a href="{{ model_admin.get_index_url }}">
<i class="icon-pencil"></i>
Change
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</div>
<div class="span5">
<h4>Recent Actions</h4>
<h5>My Actions</h5>
TODO
</div>
</div>
{% endblock content %}