From 1294dc44ea21c01920342e13f08b3f835d5e8360 Mon Sep 17 00:00:00 2001 From: sebas Date: Thu, 7 Nov 2024 16:19:14 -0500 Subject: [PATCH] Enhance vacation request and response templates by bolding user details for improved emphasis and readability --- .../vacation/templates/vacation_request.html | 4 +- .../vacation/templates/vacation_response.html | 232 +++++++++--------- 2 files changed, 124 insertions(+), 112 deletions(-) diff --git a/INSIGHTSAPI/vacation/templates/vacation_request.html b/INSIGHTSAPI/vacation/templates/vacation_request.html index 8fa1909..cee04d5 100644 --- a/INSIGHTSAPI/vacation/templates/vacation_request.html +++ b/INSIGHTSAPI/vacation/templates/vacation_request.html @@ -85,8 +85,8 @@

Agradezco de antemano su pronta respuesta.

Atentamente,

-

{{ vacation.user }}

-

C.C {{ vacation.user.cedula }}

+

{{ vacation.user|upper }}

+

C.C {{ vacation.user.cedula }}

diff --git a/INSIGHTSAPI/vacation/templates/vacation_response.html b/INSIGHTSAPI/vacation/templates/vacation_response.html index 419d23f..b43ce26 100644 --- a/INSIGHTSAPI/vacation/templates/vacation_response.html +++ b/INSIGHTSAPI/vacation/templates/vacation_response.html @@ -1,129 +1,141 @@ - - - - Respuesta a Solicitud de Vacaciones - - + .approval { + text-align: center; + margin-bottom: 20px; + color: #27ae60; + font-size: 24px; + font-weight: bold; + } - -
-
- Logo -
-
-

- www.cyc-bpo.com
- info@cyc-bpo.com
- PBX: (57 +601) 746 11 66
- Bogotá D.C.
-

-
-
- Logo de la empresa C&C SERVICES S.A.S + .centered-image { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + opacity: 0.1; + width: 100%; + max-width: 800px; + } + + -
-

- Bogotá D.C.; - {% if vacation.payroll_approved_at %} - {{ vacation.payroll_approved_at|date:"d \\d\\e F \\d\\e Y" }} - {% elif vacation.hr_approved_at %} - {{ vacation.hr_approved_at|date:"d \\d\\e F \\d\\e Y" }} - {% elif vacation.manager_approved_at %} - {{ vacation.manager_approved_at|date:"d \\d\\e F \\d\\e Y" }} - {% elif vacation.boss_approved_at %} - {{ vacation.boss_approved_at|date:"d \\d\\e F \\d\\e Y" }} - {% else %} - No approval date available - {% endif %} + +

+
+ Logo +
+
+

+ www.cyc-bpo.com
+ info@cyc-bpo.com
+ PBX: (57 +601) 746 11 66
+ Bogotá D.C.

+
+ Logo de la empresa C&C SERVICES S.A.S -
-

Señor/a:

-

{{vacation.user}}

-

{{vacation.user_job_position}} - Bogotá

-

De. Gestión Humana

-

- REF: aprobación de vacaciones mes de {{ vacation.start_date|date:"F" }} de {{ vacation.start_date|date:"Y" }} -

+
+

+ Bogotá D.C.; + {% if vacation.payroll_approved_at %} + {{ vacation.payroll_approved_at|date:"d \\d\\e F \\d\\e Y" }} + {% elif vacation.hr_approved_at %} + {{ vacation.hr_approved_at|date:"d \\d\\e F \\d\\e Y" }} + {% elif vacation.manager_approved_at %} + {{ vacation.manager_approved_at|date:"d \\d\\e F \\d\\e Y" }} + {% elif vacation.boss_approved_at %} + {{ vacation.boss_approved_at|date:"d \\d\\e F \\d\\e Y" }} + {% else %} + No approval date available + {% endif %} +

+
- {% if vacation.status == 'APROBADA' %} +
+

Señor/a:

+

{{vacation.user}}

+

{{vacation.user_job_position}} - Bogotá

+

De. Gestión Humana

+

+ REF: aprobación de vacaciones mes de {{ vacation.start_date|date:"F" }} de {{ vacation.start_date|date:"Y" }} +

+ + {% if vacation.status == 'APROBADA' %} +

+ Me permito informarle que en respuesta a su comunicación recibida el día {{ vacation.created_at|date }}, usted podrá disfrutar de sus vacaciones + a partir del día {{ vacation.start_date }}, retomando actividades laborales el día + {{ vacation.return_date }}. +

+

Espero disfrute con agrado sus merecidas vacaciones.

+ {% else %} +

+ Lamentamos informarle que su solicitud de vacaciones recibida el día {{ vacation.created_at|date }} no ha sido aprobada debido al siguiente motivo: +

+

{{ vacation.comment }}.

+ {% endif %} + +

- Me permito informarle que en respuesta a su comunicación recibida el día {{ vacation.created_at|date }}, usted podrá disfrutar de sus vacaciones - a partir del día {{ vacation.start_date }}, retomando actividades laborales el día {{ vacation.return_date }}. + JEANNETH PINZON MARTINEZ
+ Gerente Gestión Humana
+ C&C SERVICES S.A.S.

-

Espero disfrute con agrado sus merecidas vacaciones.

- {% else %}

- Lamentamos informarle que su solicitud de vacaciones recibida el día {{ vacation.created_at|date }} no ha sido aprobada debido al siguiente motivo: + {{ vacation.user|upper }}
+ {{ vacation.user_job_position }}
+ C&C SERVICES S.A.S.

-

{{ vacation.comment }}.

- {% endif %} - -
-

- JEANNETH PINZON MARTINEZ
- Gerente Gestión Humana
- C&C SERVICES S.A.S.
-

-
- - +
+ + + \ No newline at end of file