PageRenderTime 32ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admindocs/templates/admin_doc/model_detail.html

https://code.google.com/p/mango-py/
HTML | 46 lines | 40 code | 6 blank | 0 comment | 0 complexity | dc58f3d4961016077ecc7d4a709166d9 MD5 | raw file
Possible License(s): BSD-3-Clause
  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. {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Models</a> &rsaquo; {{ name }}</div>{% endblock %}
  11. {% block title %}Model: {{ name }}{% endblock %}
  12. {% block content %}
  13. <div id="content-main">
  14. <h1>{{ summary }}</h1>
  15. {% if description %}
  16. <p>{% filter linebreaksbr %}{% trans description %}{% endfilter %}</p>
  17. {% endif %}
  18. <div class="module">
  19. <table class="model">
  20. <thead>
  21. <tr>
  22. <th>Field</th>
  23. <th>Type</th>
  24. <th>Description</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {% for field in fields|dictsort:"name" %}
  29. <tr>
  30. <td>{{ field.name }}</td>
  31. <td>{{ field.data_type }}</td>
  32. <td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
  33. </tr>
  34. {% endfor %}
  35. </tbody>
  36. </table>
  37. </div>
  38. <p class="small"><a href="../">&lsaquo; Back to Models Documentation</a></p>
  39. </div>
  40. {% endblock %}