equal
deleted
inserted
replaced
|
1 {% extends "admin/base_site.html" %} |
|
2 {% load i18n %} |
|
3 {% block extrahead %} |
|
4 {{ block.super }} |
|
5 <style type="text/css"> |
|
6 .module table { width:100%; } |
|
7 .module table p { padding: 0; margin: 0; } |
|
8 </style> |
|
9 {% endblock %} |
|
10 |
|
11 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › <a href="../">Models</a> › {{ name }}</div>{% endblock %} |
|
12 |
|
13 {% block title %}Model: {{ name }}{% endblock %} |
|
14 |
|
15 {% block content %} |
|
16 <div id="content-main"> |
|
17 <h1>{{ summary }}</h1> |
|
18 |
|
19 {% if description %} |
|
20 <p>{% filter linebreaksbr %}{% trans description %}{% endfilter %}</p> |
|
21 {% endif %} |
|
22 |
|
23 <div class="module"> |
|
24 <table class="model"> |
|
25 <thead> |
|
26 <tr> |
|
27 <th>Field</th> |
|
28 <th>Type</th> |
|
29 <th>Description</th> |
|
30 </tr> |
|
31 </thead> |
|
32 <tbody> |
|
33 {% for field in fields|dictsort:"name" %} |
|
34 <tr> |
|
35 <td>{{ field.name }}</td> |
|
36 <td>{{ field.data_type }}</td> |
|
37 <td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text }}{% endif %}</td> |
|
38 </tr> |
|
39 {% endfor %} |
|
40 </tbody> |
|
41 </table> |
|
42 </div> |
|
43 |
|
44 <p class="small"><a href="../">‹ Back to Models Documentation</a></p> |
|
45 </div> |
|
46 {% endblock %} |