From d195458f8c65e3d06d4375c7e7225799ecaf76d0 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 22 Feb 2024 18:37:10 +0100 Subject: [PATCH] add templates --- .../templates/idhub/admin/encryption_key.html | 33 +++++++++++++++++++ .../registration/start_app_admin_email.html | 9 +++++ .../registration/start_app_admin_email.txt | 7 ++++ .../registration/start_app_admin_subject.txt | 1 + idhub/templates/idhub/user/waiting.html | 10 ++++++ 5 files changed, 60 insertions(+) create mode 100644 idhub/templates/idhub/admin/encryption_key.html create mode 100644 idhub/templates/idhub/admin/registration/start_app_admin_email.html create mode 100644 idhub/templates/idhub/admin/registration/start_app_admin_email.txt create mode 100644 idhub/templates/idhub/admin/registration/start_app_admin_subject.txt create mode 100644 idhub/templates/idhub/user/waiting.html diff --git a/idhub/templates/idhub/admin/encryption_key.html b/idhub/templates/idhub/admin/encryption_key.html new file mode 100644 index 0000000..4bede95 --- /dev/null +++ b/idhub/templates/idhub/admin/encryption_key.html @@ -0,0 +1,33 @@ +{% extends "idhub/base_admin.html" %} +{% load i18n %} + +{% block content %} +

+ + {{ subtitle }} +

+{% load django_bootstrap5 %} +
+{% csrf_token %} +{% if form.errors %} + +{% endif %} +
+
+ {% bootstrap_form form %} +
+
+
+ +
+ +
+{% endblock %} diff --git a/idhub/templates/idhub/admin/registration/start_app_admin_email.html b/idhub/templates/idhub/admin/registration/start_app_admin_email.html new file mode 100644 index 0000000..15bd8ad --- /dev/null +++ b/idhub/templates/idhub/admin/registration/start_app_admin_email.html @@ -0,0 +1,9 @@ +Hola, se ha reiniciado el servicio de Idhub: {{ domain }} +
+no será plenamente funcional hasta que no introduzcas la contraseña de encriptacion del sistema. +
+
+Por favor entra en la aplicacion como administrador y añade esta contraseña. + +
+Muchas gracias diff --git a/idhub/templates/idhub/admin/registration/start_app_admin_email.txt b/idhub/templates/idhub/admin/registration/start_app_admin_email.txt new file mode 100644 index 0000000..ba23523 --- /dev/null +++ b/idhub/templates/idhub/admin/registration/start_app_admin_email.txt @@ -0,0 +1,7 @@ +Hola, se ha reiniciado el servicio de Idhub: {{ domain }} +no será plenamente funcional hasta que no introduzcas la contraseña de encriptacion del sistema. + +Por favor entra en la aplicacion como administrador y añade esta contraseña. + +Muchas gracias + diff --git a/idhub/templates/idhub/admin/registration/start_app_admin_subject.txt b/idhub/templates/idhub/admin/registration/start_app_admin_subject.txt new file mode 100644 index 0000000..47a9ea7 --- /dev/null +++ b/idhub/templates/idhub/admin/registration/start_app_admin_subject.txt @@ -0,0 +1 @@ +Reinicio de IdHub diff --git a/idhub/templates/idhub/user/waiting.html b/idhub/templates/idhub/user/waiting.html new file mode 100644 index 0000000..3813c96 --- /dev/null +++ b/idhub/templates/idhub/user/waiting.html @@ -0,0 +1,10 @@ +{% extends "idhub/base.html" %} +{% load i18n %} + +{% block content %} +

+ + {{ subtitle }} +

+{% trans 'Please contact the administrator to open the service.' %} +{% endblock %}