Adaptations modèles/PDF pour CPNE
This commit is contained in:
parent
83652a92f9
commit
704f6e8835
6 changed files with 14 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ from reportlab.platypus import PageTemplate, Paragraph, Spacer, Table, TableStyl
|
|||
|
||||
from django.utils.dateformat import format as django_format
|
||||
|
||||
from stages.pdf import EpcBaseDocTemplate, LOGO_EPC, LOGO_ESNE, style_normal, style_bold
|
||||
from stages.pdf import EpcBaseDocTemplate, LOGO_CPNE_ADR, style_normal, style_bold
|
||||
from .models import (
|
||||
AES_ACCORDS_CHOICES, DIPLOMA_CHOICES, DIPLOMA_STATUS_CHOICES,
|
||||
OPTION_CHOICES, RESIDENCE_PERMITS_CHOICES,
|
||||
|
|
@ -23,20 +23,18 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
])
|
||||
|
||||
def header(self, canvas, doc):
|
||||
section = "Filière EDE"
|
||||
section = "Filière ES"
|
||||
title = "Dossier d’inscription"
|
||||
|
||||
canvas.saveState()
|
||||
canvas.drawImage(
|
||||
LOGO_EPC, doc.leftMargin, doc.height - 1.5 * cm, 5 * cm, 3 * cm, preserveAspectRatio=True
|
||||
LOGO_CPNE_ADR, doc.leftMargin, doc.height - 2.2 * cm, 7 * cm, 3 * cm, preserveAspectRatio=True
|
||||
)
|
||||
canvas.drawImage(
|
||||
LOGO_ESNE, doc.width - 2.5 * cm, doc.height - 1.2 * cm, 5 * cm, 3.3 * cm, preserveAspectRatio=True
|
||||
)
|
||||
canvas.line(doc.leftMargin, doc.height - 2 * cm, doc.width + doc.leftMargin, doc.height - 2 * cm)
|
||||
canvas.drawString(doc.leftMargin, doc.height - 2.5 * cm, section)
|
||||
canvas.drawRightString(doc.width + doc.leftMargin, doc.height - 2.5 * cm, title)
|
||||
canvas.line(doc.leftMargin, doc.height - 2.7 * cm, doc.width + doc.leftMargin, doc.height - 2.7 * cm)
|
||||
section_start = doc.height - 2.2 * cm
|
||||
canvas.line(doc.leftMargin, section_start, doc.width + doc.leftMargin, section_start)
|
||||
canvas.drawString(doc.leftMargin, section_start - 0.5 * cm, section)
|
||||
canvas.drawRightString(doc.width + doc.leftMargin, section_start - 0.5 * cm, title)
|
||||
canvas.line(doc.leftMargin, section_start - 0.7 * cm, doc.width + doc.leftMargin, section_start - 0.7 * cm)
|
||||
canvas.restoreState()
|
||||
|
||||
def produce(self, candidate):
|
||||
|
|
@ -63,7 +61,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
['Prénom:', candidate.first_name, 'Canton:', candidate.district],
|
||||
['N° de tél.:', candidate.mobile, '',''],
|
||||
]
|
||||
t = Table(data, colWidths=[4 * cm, 5 * cm, 4 * cm, 4 * cm], hAlign=TA_LEFT)
|
||||
t = Table(data, colWidths=[3.8 * cm, 4.6 * cm, 3.8 * cm, 3.8 * cm], hAlign=TA_LEFT)
|
||||
t.setStyle(ts)
|
||||
self.story.append(t)
|
||||
|
||||
|
|
@ -72,7 +70,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
data = [
|
||||
[candidate.get_section_display(), candidate.get_option_display()]
|
||||
]
|
||||
t = Table(data, colWidths=[6 * cm, 11 * cm], hAlign=TA_LEFT)
|
||||
t = Table(data, colWidths=[5 * cm, 11 * cm], hAlign=TA_LEFT)
|
||||
t.setStyle(ts)
|
||||
self.story.append(t)
|
||||
|
||||
|
|
@ -115,7 +113,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
data.append(["Contrat de travail", candidate.get_ok('contract')])
|
||||
data.append(["Promesse d'engagement", candidate.get_ok('promise')])
|
||||
data.append(["Taux d'activité", candidate.activity_rate])
|
||||
t = Table(data, colWidths=[13 * cm, 4 * cm], hAlign=TA_LEFT)
|
||||
t = Table(data, colWidths=[12 * cm, 4 * cm], hAlign=TA_LEFT)
|
||||
t.setStyle(ts)
|
||||
self.story.append(t)
|
||||
|
||||
|
|
@ -131,7 +129,7 @@ class InscriptionSummaryPDF(EpcBaseDocTemplate):
|
|||
data.append(['Validation des accords AES', aes_accords[candidate.aes_accords]])
|
||||
data.append(['Autorisation de séjour (pour les personnes étrangères)', residence_permits[candidate.residence_permits]])
|
||||
|
||||
t = Table(data, colWidths=[13 * cm, 4 * cm], hAlign=TA_LEFT)
|
||||
t = Table(data, colWidths=[12 * cm, 4 * cm], hAlign=TA_LEFT)
|
||||
t.setStyle(ts)
|
||||
self.story.append(t)
|
||||
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ tél. 032 886 33 00"""
|
|||
|
||||
Nous vous adressons par la présente votre convocation personnelle à la procédure d’admission de la filière Éducation de l’enfance, dipl. ES.
|
||||
|
||||
Vous êtes attendu à l’École Santé-social Pierre-Coullery, rue Sophie-Mairet 29-31, à La Chaux-de-Fonds aux dates suivantes:
|
||||
Vous êtes attendu au CPNE - Pôle Santé et Social, rue Sophie-Mairet 29-31, à La Chaux-de-Fonds aux dates suivantes:
|
||||
|
||||
- le mercredi 7 mars 2018, à 13h30, salle A405 pour l’examen écrit (analyse de texte d’une durée de 2h30 env.). Le numéro de la classe sera indiqué sur un panneau à l’entrée du bâtiment ;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ style_smaller = PS(name='CORPS', fontName='Helvetica', fontSize=font_size_base -
|
|||
style_bold_title = PS(name="CORPS", fontName="Helvetica-Bold", fontSize=font_size_base + 4, alignment=TA_LEFT)
|
||||
style_smallx = PS(name='CORPS', fontName="Helvetica-BoldOblique", fontSize=font_size_base - 2, alignment=TA_LEFT)
|
||||
|
||||
LOGO_EPC = find('img/logo_EPC.png')
|
||||
LOGO_ESNE = find('img/logo_ESNE.png')
|
||||
LOGO_EPC_LONG = find('img/header.gif')
|
||||
LOGO_CPNE = find('img/logo_CPNE.jpg')
|
||||
LOGO_CPNE_ADR = find('img/logo_CPNE_avec_adr.png')
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 90 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB |
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Nous vous adressons par la présente votre convocation personnelle à la procédure d’admission de la filière {{ filiere }}, dipl. ES.
|
||||
|
||||
Vous êtes attendu{% if candidate.gender == "F" %}e{% endif %} à l’École Santé-social Pierre-Coullery, rue Sophie-Mairet 29-31, à La Chaux-de-Fonds aux dates suivantes:
|
||||
Vous êtes attendu{% if candidate.gender == "F" %}e{% endif %} au CPNE - Pôle Santé et Social, rue Sophie-Mairet 29-31, à La Chaux-de-Fonds aux dates suivantes:
|
||||
|
||||
- le {{ date_lieu_examen }} pour l’examen écrit (analyse de texte d’une durée de {{ duree_examen }} env.). Le numéro de la classe sera indiqué sur un panneau à l’entrée du bâtiment ;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue