PDF: date des examens not printed for mentors
This commit is contained in:
parent
368d5654c1
commit
f2882f29cf
1 changed files with 9 additions and 3 deletions
|
|
@ -567,9 +567,7 @@ class CompensationPDFForm(CompensationForm, EpcBaseDocTemplate):
|
|||
), style_normal_center
|
||||
))
|
||||
self.story.append(Spacer(0, 0.2 * cm))
|
||||
self.story.append(Paragraph("Date des examens : {}".format(
|
||||
django_format(self.exam.date_exam, 'j F Y') if self.exam else self.points
|
||||
), style_normal_center))
|
||||
self.produce_under_mandat()
|
||||
self.story.append(Spacer(0, 3 * cm))
|
||||
|
||||
self.add_accounting_stamp(self.student, self.mandat_type)
|
||||
|
|
@ -588,6 +586,9 @@ class MentorCompensationPdfForm(CompensationPDFForm):
|
|||
self.exam = None
|
||||
super().__init__(out)
|
||||
|
||||
def produce_under_mandat(self):
|
||||
pass
|
||||
|
||||
|
||||
class EntretienProfCompensationPdfForm(CompensationPDFForm):
|
||||
mandat_type = CompensationPDFForm.EXPERT_MANDAT
|
||||
|
|
@ -600,6 +601,11 @@ class EntretienProfCompensationPdfForm(CompensationPDFForm):
|
|||
self.exam = exam
|
||||
super().__init__(out)
|
||||
|
||||
def produce_under_mandat(self):
|
||||
self.story.append(Paragraph("Date des examens : {}".format(
|
||||
django_format(self.exam.date_exam, 'j F Y') if self.exam else self.points
|
||||
), style_normal_center))
|
||||
|
||||
|
||||
class SoutenanceCompensationPdfForm(EntretienProfCompensationPdfForm):
|
||||
mandat_template = "Mandat : Soutenance pour {0} {1}, classe {2}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue