.
This commit is contained in:
+5
-1
@@ -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)}")
|
||||||
|
|||||||
@@ -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 )
|
||||||
} ]
|
} ]
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user