From 09ab17a00fd31a3ed5445955d5de70cfdea35928 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 15 Mar 2024 13:57:32 +0100 Subject: [PATCH] change some fields of certificates --- .../excel_examples/course-credential.xlsx | Bin 8944 -> 8947 bytes .../excel_examples/federation-membership.xlsx | Bin 8991 -> 9001 bytes .../certificates/course-credential_ca.html | 6 +++--- .../certificates/course-credential_es.html | 6 +++--- .../federation-membership_ca.html | 4 ++-- .../federation-membership_es.html | 4 ++-- idhub/user/views.py | 2 ++ 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/examples/excel_examples/course-credential.xlsx b/examples/excel_examples/course-credential.xlsx index e2216a4e9c5f279c38390b83d905fad00c4a2a3b..70b45169d2e9e7b9832ccbe0a9014dfb0e6211ec 100644 GIT binary patch delta 2290 zcmY*ac{~&T8{eFBLS9_pj1t^;-{W6GzX4v`6yVn!GLP zBTY0uEeYK9qBl|K%4}V zhJgqRXMb!4!VoL1FyFayNEh_mF5y5^Wrgd7VXLqm8 zal38fFR+>DE2cI8arvWx&!aCTg~BOsvRYvfzc}>G9No zL6i~o&gE?@?J}nG^jrz`Nl!RY`pDpX;BB9KW{yS{GD})*ZehMpmOJXfg*#jOcNV0i zgc?`!r;JCc*A7k-pqK5$hY40;>CH@~m6)^QL%(V^@#q-*M^9%Sx)1srH1f z4N2As=#gV6HWO2;w0M*It-~gj`)&5-RqnTMHYb2g(2w^(rrM8!J&yRTm>WNcNEi(k zG~RK#+(TL)j=Fk2NSlz6hFo4~xjn}^JjI?!JU>PhbN6cLsyc`#V z%&74Bn6~gJt1tpqCV%p#M2qhAs=2#vH5U`ZB_i=qnyg1e6)5GSN!rjz2|cfmoo*>O zWgs|{o37E5lJpduSm89u&^=sJQuPBcjvOo1utP_CG0~D*BogA#(H_$Fe3aU%t3qm! ztnti7Ql7-Z@SWVmrg)KvM0C-{0j|(zYk#fpMVX5PJ~2!78=$HOahKl=}D?9%M73K0S!Qk9K11jxfR&2E(*$!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7GWw&h53O{YL76Isrdb{@ZaVEfR|Jl8pTwcNAm-%sJdu0lM#>D1!^Q3$z&x* P%!T?IEy}8i{3-tz@wpB$ diff --git a/examples/excel_examples/federation-membership.xlsx b/examples/excel_examples/federation-membership.xlsx index cfae58c724f14ed61a90a49dbd47b45d5783f530..7aa9db8f51ef0324ebd3d5e320306297bd67d1c7 100644 GIT binary patch delta 2622 zcmZuzc{J4R7au#>#x}COvoy+hCrid!$THSmNw$Oba|_JM&4g^Nxws`k{QUf& z0nb_?MGnpZ&w34xqrdPXr#2_s&g8!Q3%7Y8+-w^x=*q=LyodpNAE{at4NL_W>wu$Y zstXCwTWYPP0gM6U0#bwicg95dq&AON@gbOF#z!5uXU7H9ct`F1`eH0iSEy%KLPyMU zV`BR3u9`Fzq6_HMrGG_U9)XP9&H!f)^|2ed7rpSNs5_)$Kl?PO`i8M5?o6;@CT8 zXP*4(I+1UmAtBr5sBQ19Or>}anO`S+>@}+x#C_(>j4VQBodlkGgd2?RL7VDJ%8|R- zFVYtkZFu77oYg%N{}>ADs}@Xf9j@@j8+_}1vF>{Y4plypL}I@Bd2`?ou7ttZXQ+vk zu5mGeDHT|2SPGVDBd4lM#QWH^DSvOq7}R~#wXQxbs5HXrG~_mYBt)qaPhLwzdw;Z> z&pDQnVUf{9{{+MwKM#wT^j1YzDs+0?ep7A_2PrIMMRSQU-d=i1zG>~KloFEh&@Zn_ z0=25S4Na_CA8_83oRc&)Zk-{tj`U4ADlQ36*V3{}DGvBCLC@;mlHDC;%SdUfY0gJa zYVLG|sX1$Rnuff?8|0OyZ95&~W-Z@9b@vBlSy%f#;VihHisTHq#2A)QeMqYeUD4Jeg(E8GW+i{Q(; z6UwCg_%8LAl?}NX&+*_RyJhq})kT{!zId&`^cg{#UU#XGRd1V(?qP+3Iybvb|K37N z-9O|DfD>qxi5#;;+qk<-J~NX`&U+u(A!6NIbpNX)Q$rbLp8b`)(J{MyXCWgfz(XiX z>6F1ji5F$uOW4M)x~Ez%4j-kO^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Aoo`mu6$>uXEwPP6Lu2DbV+I+(9sb7;rF&HKVDHMx3?Pj zN4P4{oD6u;ZX@uJj%;8*PtqSw{U5O#8+NStE_coSj`2(R#dplbtgpDVh#!m{k;~(y z(^b}(>rT*d{mBk7G zKz~vI017xdA%P3c&-Gvak7gRDErg&I;V#5S7mJG&61qqrFSP3(o(t2?Fa6&`-Eb{J V0 LAFEDE.CAT – ORGANITZACIONS PER A LA JUSTÍCIA GLOBAL
CERTIFICA QUE:

- {{ firstName }} {{ lastName }} amb DNI {{ document_id|default:"falta el dni" }}
- Ha realitzat el curs {{ courseName }}, a {{ address|default:"falta address" }} / de manera {{ modeOfInstruction }}, els dies {{ date_course|default:"falta fecha del curso" }}
+ {{ firstName }} {{ lastName }} amb DNI {{ personalIdentifier }}
+ Ha realitzat el curs {{ courseName }}, a {{ address|default:"" }} / de manera {{ modeOfInstruction }}, els dies {{ issued_date }}
La durada del curs ha estat de {{ courseDuration }} hores lectives corresponents a {{ courseDays }} sessions.



- I per deixar-ne constància als efectes oportuns, signo el present certificat en data de {{ issuedDate }} + I per deixar-ne constància als efectes oportuns, signo el present certificat en data de {{ issued_date }}
diff --git a/idhub/templates/certificates/course-credential_es.html b/idhub/templates/certificates/course-credential_es.html index 32056c6..f97ec3b 100644 --- a/idhub/templates/certificates/course-credential_es.html +++ b/idhub/templates/certificates/course-credential_es.html @@ -77,15 +77,15 @@
LAFEDE.CAT – ORGANIZACIONES PARA LA JUSTÍCIA GLOBAL
CERTIFICA QUE:

- {{ firstName }} {{ lastName }} con DNI {{ document_id|default:"falta el dni" }}
- Ha realizado el curso {{ courseName }}, en {{ address|default:"falta address" }} / de manera {{ modeOfInstruction }}, los días {{ date_course|default:"falta fecha del curso" }}
+ {{ firstName }} {{ lastName }} con DNI {{ personalIdentifier }}
+ Ha realizado el curso {{ courseName }}, en {{ address }} / de manera {{ modeOfInstruction }}, los días {{ issued_date }}
La duración del curso ha sido de {{ courseDuration }} horas lectivas correspondientes a {{ courseDays }} sessiones.



- Y para dejar constancia a los efectos oportunos, firmo el presente certificado en fecha de {{ issuedDate }} + Y para dejar constancia a los efectos oportunos, firmo el presente certificado en fecha de {{ issued_date }}
diff --git a/idhub/templates/certificates/federation-membership_ca.html b/idhub/templates/certificates/federation-membership_ca.html index 3b83531..472db16 100644 --- a/idhub/templates/certificates/federation-membership_ca.html +++ b/idhub/templates/certificates/federation-membership_ca.html @@ -87,13 +87,13 @@ CERTIFICA
  • - Que l’entitat {{ legalName }}, amb NIF {{ registrationIdentifier }} i domicili a {{ streetAddress }} {{ postCode }} {{ city }} forma part com a entitat membre de {{ federation }} (ple dret/observadora) de Lafede.cat - Federació d'Organitzacions per a la Justícia Global, des de l’Assemblea General Ordinària celebrada el {{ membershipSince }} + Que l’entitat {{ legalName }}, amb NIF {{ taxReference }} i domicili a {{ streetAddress }} {{ postCode }} {{ city }} forma part com a entitat membre de {{ federation }} (ple dret/observadora) de Lafede.cat - Federació d'Organitzacions per a la Justícia Global, des de l’Assemblea General Ordinària celebrada el {{ issue_date }}



- I per deixar-ne constància als efectes oportuns, signo el present certificat en data de {{ issue_date_now }} + I per deixar-ne constància als efectes oportuns, signo el present certificat en data de {{ issue_date }} diff --git a/idhub/templates/certificates/federation-membership_es.html b/idhub/templates/certificates/federation-membership_es.html index ef4a06f..0550ac6 100644 --- a/idhub/templates/certificates/federation-membership_es.html +++ b/idhub/templates/certificates/federation-membership_es.html @@ -87,13 +87,13 @@ CERTIFICA
  • - Que la entidad {{ legalName }}, con NIF {{ registrationIdentifier }} y domicilio {{ streetAddress }} {{ postCode }} {{ city }} forma parte como entidad miembro de {{ federation }} (por el derecho/observadora) de Lafede.cat - Federación de Organizaciones para la Justícia Global, desde la Asamblea General Ordinaria celebrada el {{ membershipSince }} + Que la entidad {{ legalName }}, con NIF {{ taxReference }} y domicilio {{ streetAddress }} {{ postCode }} {{ city }} forma parte como entidad miembro de {{ federation }} (por el derecho/observadora) de Lafede.cat - Federación de Organizaciones para la Justícia Global, desde la Asamblea General Ordinaria celebrada el {{ issue_date }}



- Y para dejar constancia a los efectos oportunos, firmo el presente certificado en fecha de {{ issue_date_now }} + Y para dejar constancia a los efectos oportunos, firmo el presente certificado en fecha de {{ issue_date }} diff --git a/idhub/user/views.py b/idhub/user/views.py index 50e0dd3..fb5dd63 100644 --- a/idhub/user/views.py +++ b/idhub/user/views.py @@ -286,6 +286,7 @@ class CredentialPdfView(MyWallet, TemplateView): img_foot = self.get_img_footer() qr = self.generate_qr_code(self.url_id) issue_date_now = datetime.datetime.now() + issue_date = context.get('issuedDate', issue_date_now) context.update(dict(self.object.get_datas())) context.update({ @@ -294,6 +295,7 @@ class CredentialPdfView(MyWallet, TemplateView): "image_header": img_head, "image_footer": img_foot, "issue_date_now": issue_date_now.strftime("%d/%m/%Y"), + "issue_date": issue_date.strftime("%d/%m/%Y"), "qr": qr, }) return context