This commit is contained in:
Ross
2022-01-07 09:42:55 +00:00
parent 53a08d73b8
commit eadadeba40
3 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -320,7 +320,11 @@ class CidUser(models.Model):
def generate_exam_report(self): def generate_exam_report(self):
exam_list = self.get_cid_exams() exam_list = self.get_cid_exams()
exam_text = [f"Candidate {self.cid} [{self.email}]"] name = ""
if self.name:
name = f"{self.name} "
exam_text = [f"Candidate {name}{self.cid} [{self.email}]"]
for exam_type, exams in exam_list: for exam_type, exams in exam_list:
exam_text.append(f"{'='*len(exam_type)}\n{exam_type}\n{'='*len(exam_type)}") exam_text.append(f"{'='*len(exam_type)}\n{exam_type}\n{'='*len(exam_type)}")
+1 -1
View File
@@ -202,7 +202,7 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml )
$("table").DataTable({ $("table").DataTable({
columnDefs: [ { columnDefs: [ {
targets: [7,8,9,10,11], targets: [6,7,8,9,10],
render: $.fn.dataTable.render.ellipsis( 17, true ) render: $.fn.dataTable.render.ellipsis( 17, true )
} ] } ]
}); });
+2 -2
View File
@@ -13,8 +13,8 @@
{% for cid in cid_users %} {% for cid in cid_users %}
<li><a href="{% url 'generic:update_cid' cid.pk %}">{{cid.cid}}</a> [{{cid.passcode}}] {{cid.name}} / <li><a href="{% url 'generic:update_cid' cid.pk %}">{{cid.cid}}</a> [{{cid.passcode}}] {{cid.name}} /
Email: {{cid.email}} / Email: {{cid.email}}
Supervisor email: {{cid.supervisor_email}} <br /> {% if cid.supervisor_email %} / Supervisor email: {{cid.supervisor_email}}{% endif %} <br />
Internal candidate: {{cid.internal_candidate}} Internal candidate: {{cid.internal_candidate}}
{% if cid.login_email_sent %} / Login email sent{% endif %} {% if cid.login_email_sent %} / Login email sent{% endif %}
{% if cid.results_email_sent %} / Results email sent{% endif %} {% if cid.results_email_sent %} / Results email sent{% endif %}