diff --git a/src/app/administrador/responsables/responsable/editar/page.tsx b/src/app/administrador/responsables/responsable/editar/page.tsx index 86455b6..a42bb3f 100644 --- a/src/app/administrador/responsables/responsable/editar/page.tsx +++ b/src/app/administrador/responsables/responsable/editar/page.tsx @@ -63,33 +63,35 @@ export default function Editar() { }, []); return ( -
- +
+
+ +
- + + - - -{/* - -*/} + {/* + + */}
); } \ No newline at end of file diff --git a/src/components/administrador/editar-responsable.tsx b/src/components/administrador/editar-responsable.tsx index 84bc56c..242f9bc 100644 --- a/src/components/administrador/editar-responsable.tsx +++ b/src/components/administrador/editar-responsable.tsx @@ -100,62 +100,64 @@ export default function EditarResponsable({ return ( -
-

Editar información del responsable

+
+

Editar información del responsable

- {/* Nombre */} -
- - setNuevo({ ...nuevo, nombre: e.target.value })} - className="border rounded p-2 w-full" - /> -
+ - {/* Correo */} -
- - setNuevo({ ...nuevo, correo: e.target.value })} - className="border rounded p-2 w-full" - /> -
+ {/* Nombre */} +
+ + setNuevo({ ...nuevo, nombre: e.target.value })} + className="form-control border rounded p-2 w-full" + /> +
- {/* Botones */} -
- + {/* Correo */} +
+ + setNuevo({ ...nuevo, correo: e.target.value })} + className="form-control border rounded p-2 w-full" + /> +
- -
+ {/* Botones */} +
+ + + +
); } diff --git a/src/components/administrador/informacion-servicio.tsx b/src/components/administrador/informacion-servicio.tsx index e20ddda..a4c8944 100644 --- a/src/components/administrador/informacion-servicio.tsx +++ b/src/components/administrador/informacion-servicio.tsx @@ -178,11 +178,13 @@ export default function InformacionServicio({ admin, imprimirError, updateIsLoad

{datos.Usuario?.nombre || '-'}

-
- -
+ {datos.fechaNacimiento && ( +
+ +
+ )}
@@ -194,50 +196,63 @@ export default function InformacionServicio({ admin, imprimirError, updateIsLoad

{datos.creditos || '-'}

-
- -

{datos.telefono}

-
+ {datos.telefono && ( +
+ +

{datos.telefono}

+
+ )} + + {datos.direccion && ( +
+ +

{datos.direccion}

+
+ )} -
- -

{datos.direccion}

-

{datos.correo || '-'}

-
- -

{datos.programaInterno}

-
+ {datos.programaInterno && ( +
+ +

{datos.programaInterno}

+
+ )} + + {datos.profesor && ( +
+ +

{datos.profesor}

+
+ )} -
- -

{datos.profesor}

-
-

{datos.createdAt || '-'}

+

{formatDate(datos.createdAt) || '-'}

-

{datos.fechaInicio || '-'}

+

{formatDate(datos.fechaInicio)|| '-'}

-

{datos.fechaFin || '-'}

+

{formatDate(datos.fechaFin) || '-'}

-
- -

{datos.fechaLiberacion}

-
+ {datos.fechaLiberacion && ( +
+ +

{formatDate(datos.fechaLiberacion)}

+
+ )} +