app/django/contrib/admindocs/templates/admin_doc/model_detail.html
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     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> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Models</a> &rsaquo; {{ 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>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
       
    38 </tr>
       
    39 {% endfor %}
       
    40 </tbody>
       
    41 </table>
       
    42 </div>
       
    43 
       
    44 <p class="small"><a href="../">&lsaquo; Back to Models Documentation</a></p>
       
    45 </div>
       
    46 {% endblock %}