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 %} -
Paste the spreadsheet rows below. Headings like "Year 1 - Group 1" are used to set the grade (Year N -> STN). Rows should contain "Name
Paste the spreadsheet rows below. Headings like "Year 1 - Group 1" are used to set the grade (Year N -> STN). Rows should contain "Name
| Raw | -Name | -Grade | -Matched user | -Supervisor text | -Matched 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 %} | -
| Raw | +Name | +Grade | +Matched user | +Supervisor text | +Matched 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 %} | +
Updated: {{ report.updated }}; Skipped (no user matched): {{ report.skipped }}
-{% endif %} + {% if 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 %}