diff --git a/examples/excel_examples/course-credential.xlsx b/examples/excel_examples/course-credential.xlsx index e2216a4..70b4516 100644 Binary files a/examples/excel_examples/course-credential.xlsx and b/examples/excel_examples/course-credential.xlsx differ diff --git a/examples/excel_examples/federation-membership.xlsx b/examples/excel_examples/federation-membership.xlsx index cfae58c..7aa9db8 100644 Binary files a/examples/excel_examples/federation-membership.xlsx and b/examples/excel_examples/federation-membership.xlsx differ diff --git a/idhub/templates/certificates/course-credential_ca.html b/idhub/templates/certificates/course-credential_ca.html index 1d1913f..e9a6912 100644 --- a/idhub/templates/certificates/course-credential_ca.html +++ b/idhub/templates/certificates/course-credential_ca.html @@ -77,15 +77,15 @@
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



- 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



- 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