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

52 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "admin2/bootstrap/base.html" %}
2013-05-25 17:44:48 +00:00
{% load admin2_tags i18n %}
2013-05-18 10:49:08 +00:00
{% block content %}
2013-05-19 11:03:25 +00:00
2013-05-19 11:29:28 +00:00
<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 #}
2013-05-19 11:47:51 +00:00
<a href="{% url model_admin|admin2_urlname:'create' %}">
2013-05-19 11:29:28 +00:00
<i class="icon-plus"></i>
2013-05-25 17:44:48 +00:00
{% trans "Add" %}
2013-05-19 11:29:28 +00:00
</a>
{# endif #}
2013-05-19 11:29:28 +00:00
</td>
<td class="text-right">
<a href="{{ model_admin.get_index_url }}">
2013-05-19 11:29:28 +00:00
<i class="icon-pencil"></i>
2013-05-25 17:44:48 +00:00
{% trans "Change" %}
2013-05-19 11:29:28 +00:00
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
2013-05-19 11:03:25 +00:00
{% endfor %}
2013-05-19 11:29:28 +00:00
</div>
<div class="span5">
2013-05-25 17:44:48 +00:00
<h4>{% trans "Recent Actions" %}</h4>
<h5>{% trans "My Actions" %}</h5>
2013-05-19 11:29:28 +00:00
TODO
</div>
</div>
2013-05-18 10:49:08 +00:00
{% endblock content %}