|
- {{ copyeditor_role.user.full_name }} |
+ {{ copyeditor_role.user.first_name }}{% if copyeditor_role.user.middle_name %} {{ copyeditor_role.user.middle_name }}{% endif %} |
+ {{ copyeditor_role.user.last_name }} |
{{ copyeditor_role.user.email }} |
{{ copyeditor_role.user.active_copyedits|length }} |
@@ -64,6 +66,7 @@
3. Set Options
{% endblock body %}
{% block js %}
- {% include "elements/datatables.html" with target="#copyeditor" %}
+ {% include "elements/datatables.html" with target="#copyeditor" sort=2 order='asc' %}
{% include "elements/datepicker.html" with target="#id_due" %}
{% include "elements/jqte.html" %}
diff --git a/src/templates/admin/elements/datatables.html b/src/templates/admin/elements/datatables.html
index 4b825f166e..190bcc0898 100644
--- a/src/templates/admin/elements/datatables.html
+++ b/src/templates/admin/elements/datatables.html
@@ -9,7 +9,7 @@
"lengthMenu": [[25, 50, 10, -1], [25, 50, 10, "All"]],
{% if hide_length %}"bLengthChange": false,{% endif %}
{% if hide_page %}"bPaginate": false,{% endif %}
- {% if sort %}"order": [[ {{ order }}, "{{ sort }}" ]],{% endif %}
+ {% if sort and order %}"order": [[ {{ sort }}, "{{ order }}" ]],{% endif %}
{% if disable_ordering %}"ordering": false,{% endif %}
{% if page_length %}"pageLength": {{ page_length }},{% endif %}
});
|