model_list.html 804 B

123456789101112131415161718192021222324252627
  1. {% load i18n %}
  2. <ul>
  3. {% for model in module.children %}
  4. <li>
  5. <span class="float-right">
  6. {% if model.add_url %}
  7. <a href="{{ model.add_url }}" class="addlink" title="{% trans 'Add' %}"></a>
  8. {% else %}
  9. &nbsp;
  10. {% endif %}
  11. {% if model.admin_url %}
  12. <a href="{{ model.admin_url }}" class="changelink" title="{% trans 'Change' %}"></a>
  13. {% else %}
  14. &nbsp;
  15. {% endif %}
  16. </span>
  17. {% if model.admin_url %}
  18. <a href="{{ model.admin_url }}">{{ model.name }}</a>
  19. {% else %}
  20. {{ model.name }}
  21. {% endif %}
  22. </li>
  23. {% endfor %}
  24. </ul>