Add xlsx support and enhance Trabajadores module with file upload functionality
- Updated package.json and package-lock.json to include xlsx dependency. - Enhanced AlumnosService to return UsuarioData type. - Modified CuestionarioRespondidoService to include event start and end dates in responses. - Updated TrabajadoresController to add file upload endpoint for processing Excel files. - Implemented file processing logic in TrabajadoresService to handle worker registration from Excel. - Created TrabajadorApiDocumentation for API documentation of the new file upload feature. - Refactored RegistroTrabajador entity to include carrera field and changed num_trabajador type.
This commit is contained in:
@@ -3,12 +3,27 @@ export function generarHtmlCorreoAsistencia({
|
||||
nombreEvento,
|
||||
correo,
|
||||
fechaRegistro,
|
||||
fechaInicioEvento,
|
||||
fechaFinEvento,
|
||||
}: {
|
||||
nombreForm: string;
|
||||
nombreEvento: string;
|
||||
correo: string;
|
||||
fechaRegistro: string;
|
||||
fechaInicioEvento?: string;
|
||||
fechaFinEvento?: string;
|
||||
}) {
|
||||
const horarioEvento = fechaInicioEvento && fechaFinEvento
|
||||
? `
|
||||
<div style="margin: 20px 0; padding: 12px; background-color: #e8f0fe; border-left: 4px solid #003d79;">
|
||||
<p style="margin: 0; font-size: 15px; color: #003d79;">
|
||||
<strong>🕒 Horario del evento:</strong><br/>
|
||||
${fechaInicioEvento} <strong>al</strong> ${fechaFinEvento}
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
: '';
|
||||
|
||||
return `
|
||||
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 24px; border: 1px solid #ccc; border-radius: 8px; background-color: #f9f9f9;">
|
||||
<h1 style="color: #003d79; border-bottom: 2px solid #003d79; padding-bottom: 10px;">🎓 ¡Gracias por registrarte!</h1>
|
||||
@@ -32,6 +47,8 @@ export function generarHtmlCorreoAsistencia({
|
||||
<li><strong>Fecha de registro:</strong> ${fechaRegistro}</li>
|
||||
</ul>
|
||||
|
||||
${horarioEvento}
|
||||
|
||||
<p style="margin-top: 30px; font-size: 14px; color: #666;">
|
||||
Si tienes alguna duda, acude al módulo de información durante el evento.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user