summaryrefslogtreecommitdiff
path: root/app/lib/grappelli/templates/admin_doc/model_detail.html
blob: 85593f0a9ecf186234a579fa1199ce44705e970d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends "admin/base_site.html" %}
{% load adminmedia %}
{% load i18n %}
{% block javascripts %}
    {{ block.super }}
    <script type="text/javascript">
        (function($) {
            $(document).ready(function(){
                $('.rte .module').each(function(){
                    var childWidth = $('.rte .module').children("table").outerWidth();
                    $('.rte .module').css("width", childWidth);
                });
            });
        })(django.jQuery);
    </script>
{% endblock %}
{% block bodyclass %}documentation{% endblock %}
{% block content-class %}content-grid{% endblock %}
{% block breadcrumbs %}<div id="breadcrumbs"><a href="../../../">Home</a> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Models</a> &rsaquo; {{ name }}</div>{% endblock %}

{% block title %}Model: {{ name }}{% endblock %}

{% block content %}
    <h1>{{ summary }}</h1>
    <div class="container-grid rte">
        {% if description %}
            <p>{% filter linebreaksbr %}{% trans description %}{% endfilter %}</p>
        {% endif %}
        <div class="module model">
            <table class="model" style="width: auto">
                <thead>
                    <tr>
                        <th>Field</th>
                        <th>Type</th>
                        <th>Description</th>
                    </tr>
                </thead>
                <tbody>
                    {% for field in fields|dictsort:"name" %}
                        <tr>
                            <td class="nowrap focus">{{ field.name }}</td>
                            <td class="nowrap">{{ field.data_type }}</td>
                            <td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
        <a href="../" class="back">&lsaquo; Back to Models Documentation</a>
    </div>
{% endblock %}