removed dead code... added sorting
This commit is contained in:
parent
aaee137c07
commit
c1f8a18c8f
|
|
@ -50,7 +50,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if pages %}
|
{% if pages %}
|
||||||
{% trans "Select page" as checkbox_aria_label %}
|
{% trans "Select page" as checkbox_aria_label %}
|
||||||
{% for page in pages %}
|
{% for page in pages|dictsort:"title"%}
|
||||||
{% page_permissions page as page_perms %}
|
{% page_permissions page as page_perms %}
|
||||||
<tr {% if ordering == "ord" %}id="page_{{ page.id|unlocalize }}"
|
<tr {% if ordering == "ord" %}id="page_{{ page.id|unlocalize }}"
|
||||||
data-page-title="{{ page.get_admin_display_title }}"{% endif %}
|
data-page-title="{{ page.get_admin_display_title }}"{% endif %}
|
||||||
|
|
@ -108,29 +108,6 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</tr>
|
</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 %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% block no_results %}{% endblock %}
|
{% block no_results %}{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue