removed dead code... added sorting

This commit is contained in:
Lorenz Padberg 2022-07-18 14:14:41 +02:00
parent aaee137c07
commit c1f8a18c8f
1 changed files with 1 additions and 24 deletions

View File

@ -50,7 +50,7 @@
<tbody>
{% if pages %}
{% trans "Select page" as checkbox_aria_label %}
{% for page in pages %}
{% for page in pages|dictsort:"title"%}
{% page_permissions page as page_perms %}
<tr {% if ordering == "ord" %}id="page_{{ page.id|unlocalize }}"
data-page-title="{{ page.get_admin_display_title }}"{% endif %}
@ -108,29 +108,6 @@
{% endblock %}
</tr>
{# {% if page.content_type.model == 'chapter' %}#}
{# <tr>#}
{# <td>#}
{##}
{# </td>#}
{# <td>#}
{# <ul>#}
{# {% for c in page.get_children %}#}
{# <li>{{ c.get_admin_display_title }}</li>#}
{# {% endfor %}#}
{# </ul>#}
{# </td>#}
{##}
{##}
{# </tr>#}
{##}
{# {% endif %}#}
{##}
{% endfor %}
{% else %}
{% block no_results %}{% endblock %}