Add view to print PDF examination compensation form

This commit is contained in:
Claude Paroz 2018-04-12 14:14:29 +02:00
parent 7d80994587
commit 66cd4b7a8c
5 changed files with 194 additions and 7 deletions

View file

@ -149,9 +149,11 @@ class StudentAdmin(admin.ModelAdmin):
if obj.klass.section.name == 'EDE' and obj.klass.level.name == "3":
return format_html(
'<a class="button" href="{}">Courrier pour lexpert</a>&nbsp;'
'<a class="button" href="{}">Mail convocation soutenance</a>',
'<a class="button" href="{}">Mail convocation soutenance</a>&nbsp;',
'<a class="button" href="{}">Indemnité aux experts</a>',
reverse('print-pdf-to-expert-ede', args=[obj.pk]),
reverse('student-ede-convocation', args=[obj.pk])
reverse('student-ede-convocation', args=[obj.pk]),
reverse('examination-compensation', args=[obj.pk])
)
else:
return ''