No Description
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.

list_classes_admin.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--
  2. This file is part of Lodel 2 (https://github.com/OpenEdition)
  3. Copyright (C) 2015-2017 Cléo UMS-3287
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. {% extends "base_backend.html" %}
  16. {% block title %}Lodel 2 - Admin - List of Classes{% endblock %}
  17. {% block body %}
  18. <ol class="breadcrumb">
  19. <li><a href="/{{ root_url }}/admin">Home</a></li>
  20. <li class="active">Edit</li>
  21. </ol>
  22. <h1 class="h1_lodel">Edition</h1>
  23. <h2>Select a class</h2>
  24. <ul>
  25. {% for classe in my_classes %}
  26. {% set abst = ' - Abstract' %}
  27. {% if not classe.is_abstract() %}
  28. {% set abst = ' - ' ~ classe.get(None)|length %}
  29. <li> <a href="/{{ root_url }}/admin/class_admin?classname={{ classe.__name__ }}" >{{ classe.__name__ }} </a>{{ abst }}</li>
  30. {% else %}
  31. <li> {{ classe.__name__ }} {{ abst }}</li>
  32. {% endif %}
  33. {% endfor %}
  34. </ul>
  35. <div>
  36. <a href="../admin/">Return</a>
  37. </div>
  38. {% endblock %}