diff --git a/src/templates/admin/copyediting/add_copyeditor_assignment.html b/src/templates/admin/copyediting/add_copyeditor_assignment.html index 76b62af9f1..08adab3c8b 100644 --- a/src/templates/admin/copyediting/add_copyeditor_assignment.html +++ b/src/templates/admin/copyediting/add_copyeditor_assignment.html @@ -25,7 +25,8 @@

1. Select Copyeditor

Select - Name + First Name + Last Name Email Address Active Copyedits @@ -35,7 +36,8 @@

1. Select Copyeditor

{% for copyeditor_role in copyeditors %} - {{ 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 @@

2. Select Files

Uploaded Download + {% for file in article.manuscript_files.all %} 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 %} });