Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

model_detail.html 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 %}
  11. <div class="breadcrumbs">
  12. <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
  13. &rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
  14. &rsaquo; <a href="{% url 'django-admindocs-models-index' %}">{% trans 'Models' %}</a>
  15. &rsaquo; {{ name }}
  16. </div>
  17. {% endblock %}
  18. {% block title %}{% blocktrans %}Model: {{ name }}{% endblocktrans %}{% endblock %}
  19. {% block content %}
  20. <div id="content-main">
  21. <h1>{{ name }}</h1>
  22. <h2 class="subhead">{{ summary }}</h2>
  23. {{ description }}
  24. <h3>{% trans 'Fields' %}</h3>
  25. <div class="module">
  26. <table class="model">
  27. <thead>
  28. <tr>
  29. <th>{% trans 'Field' %}</th>
  30. <th>{% trans 'Type' %}</th>
  31. <th>{% trans 'Description' %}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. {% for field in fields|dictsort:"name" %}
  36. <tr>
  37. <td>{{ field.name }}</td>
  38. <td>{{ field.data_type }}</td>
  39. <td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
  40. </tr>
  41. {% endfor %}
  42. </tbody>
  43. </table>
  44. </div>
  45. {% if methods %}
  46. <h3>{% trans 'Methods with arguments' %}</h3>
  47. <div class="module">
  48. <table class="model">
  49. <thead>
  50. <tr>
  51. <th>{% trans 'Method' %}</th>
  52. <th>{% trans 'Arguments' %}</th>
  53. <th>{% trans 'Description' %}</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. {% for method in methods|dictsort:"name" %}
  58. <tr>
  59. <td>{{ method.name }}</td>
  60. <td>{{ method.arguments }}</td>
  61. <td>{{ method.verbose }}</td>
  62. </tr>
  63. {% endfor %}
  64. </tbody>
  65. </table>
  66. </div>
  67. {% endif %}
  68. <p class="small"><a href="{% url 'django-admindocs-models-index' %}">&lsaquo; {% trans 'Back to Model documentation' %}</a></p>
  69. </div>
  70. {% endblock %}