2006-05-02 09:31:56 +08:00
|
|
|
{% extends "admin/base_site.html" %}
|
2005-12-01 14:52:16 +08:00
|
|
|
{% load i18n %}
|
2011-09-21 02:30:06 +08:00
|
|
|
|
2005-07-29 23:25:31 +08:00
|
|
|
{% block coltype %}colSM{% endblock %}
|
2011-09-21 02:30:06 +08:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
|
|
› <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
|
|
|
|
› {% trans 'Models' %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2005-07-16 11:46:17 +08:00
|
|
|
|
2013-06-01 18:06:36 +08:00
|
|
|
{% block title %}{% trans 'Models' %}{% endblock %}
|
2005-07-16 11:46:17 +08:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2013-06-01 18:06:36 +08:00
|
|
|
<h1>{% trans 'Model documentation' %}</h1>
|
2006-05-02 09:31:56 +08:00
|
|
|
|
|
|
|
{% regroup models by app_label as grouped_models %}
|
2005-07-29 23:25:31 +08:00
|
|
|
|
2005-07-16 11:46:17 +08:00
|
|
|
<div id="content-main">
|
2005-07-29 23:25:31 +08:00
|
|
|
{% for group in grouped_models %}
|
2005-07-16 11:46:17 +08:00
|
|
|
<div class="module">
|
2009-04-02 05:33:22 +08:00
|
|
|
<h2 id="app-{{ group.grouper }}">{{ group.grouper|capfirst }}</h2>
|
2005-07-16 11:46:17 +08:00
|
|
|
|
|
|
|
<table class="xfull">
|
|
|
|
{% for model in group.list %}
|
2005-07-29 23:25:31 +08:00
|
|
|
<tr>
|
2013-12-30 01:42:12 +08:00
|
|
|
<th><a href="{% url 'django-admindocs-models-detail' app_label=model.app_label model_name=model.model_name %}">{{ model.object_name }}</a></th>
|
2005-07-16 11:46:17 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2005-07-29 23:25:31 +08:00
|
|
|
|
2005-07-16 11:46:17 +08:00
|
|
|
</div>
|
2005-07-29 23:25:31 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block sidebar %}
|
|
|
|
<div id="content-related" class="sidebar">
|
|
|
|
<div class="module">
|
2013-06-01 18:06:36 +08:00
|
|
|
<h2>{% trans 'Model groups' %}</h2>
|
2005-07-29 23:25:31 +08:00
|
|
|
<ul>
|
2006-05-02 09:31:56 +08:00
|
|
|
{% regroup models by app_label as grouped_models %}
|
2005-07-29 23:25:31 +08:00
|
|
|
{% for group in grouped_models %}
|
2009-06-24 22:03:10 +08:00
|
|
|
<li><a href="#app-{{ group.grouper }}">{{ group.grouper|capfirst }}</a></li>
|
2005-07-29 23:25:31 +08:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2005-07-16 11:46:17 +08:00
|
|
|
{% endblock %}
|