diff --git a/generic/templates/generic/trainees_bulk_update.html b/generic/templates/generic/trainees_bulk_update.html index 60d2bd8e..ee845a45 100644 --- a/generic/templates/generic/trainees_bulk_update.html +++ b/generic/templates/generic/trainees_bulk_update.html @@ -1,93 +1,93 @@ {% extends 'generic/base.html' %} {% block content %} -

Bulk update trainees (paste spreadsheet text)

+

Bulk update trainees (paste spreadsheet text)

-

Paste the spreadsheet rows below. Headings like "Year 1 - Group 1" are used to set the grade (Year N -> STN). Rows should contain "Name Supervisor".

+

Paste the spreadsheet rows below. Headings like "Year 1 - Group 1" are used to set the grade (Year N -> STN). Rows should contain "Name Supervisor".

-
- {% csrf_token %} - -
- - -
-
+
+ {% csrf_token %} + +
+ + +
+
-{% if preview %} -

Preview ({{ preview|length }} rows)

- - - - - - - - - - - - - {% for r in preview %} - - - - - - - - - {% endfor %} - -
RawNameGradeMatched userSupervisor textMatched supervisor
{{ r.raw }}
{{ r.norm_name }}{{ r.grade }} - {% if r.matched_user %} - {{ r.matched_user.first_name }} {{ r.matched_user.last_name }} - {% else %} -
- No match -
-
- - - -
-
-
- -
- {% endif %} -
{{ r.supervisor_text }}{% if r.matched_supervisor %}{{ r.matched_supervisor.name }}{% else %}No match{% endif %}
-{% endif %} + {% if preview %} +

Preview ({{ preview|length }} rows)

+ + + + + + + + + + + + + {% for r in preview %} + + + + + + + + + {% endfor %} + +
RawNameGradeMatched userSupervisor textMatched supervisor
{{ r.raw }}
{{ r.norm_name }}{{ r.grade }} + {% if r.matched_user %} + {{ r.matched_user.first_name }} {{ r.matched_user.last_name }} + {% else %} +
+ No match +
+
+ + + +
+
+
+ +
+ {% endif %} +
{{ r.supervisor_text }}{% if r.matched_supervisor %}{{ r.matched_supervisor.name }}{% else %}No match{% endif %}
+ {% endif %} -{% if report %} -

Apply report

-

Updated: {{ report.updated }}; Skipped (no user matched): {{ report.skipped }}

-{% endif %} + {% if report %} +

Apply report

+

Updated: {{ report.updated }}; Skipped (no user matched): {{ report.skipped }}

+ {% endif %} {% endblock %} -{% block extra_scripts %} - + function escapeHtml(unsafe) { + if (!unsafe) return ''; + return String(unsafe) + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/\"/g, """) + .replace(/'/g, "'"); + } + {% endblock %}