@ -76,6 +76,7 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
private LocalDate fechaProgramada ;
private LocalDate fechaSeleccionada ;
private TextArea jsutificacion ;
private VerticalLayout mainLayout ;
Span userSignSpan = new Span ( "Nombre Usuario" ) ;
@ -92,6 +93,15 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
this . userService = userService ;
this . emailService = emailService ;
mainLayout = new VerticalLayout ( ) ;
mainLayout . setHeightFull ( ) ;
mainLayout . getStyle ( )
. set ( "box-shadow" , "0 4px 8px rgba(0,0,0,0.2)" )
. set ( "border-radius" , "12px" )
. set ( "background-color" , "white" )
. set ( "padding" , "1rem" )
. set ( "margin" , "1rem auto" ) ;
HorizontalLayout fechaLayout = new HorizontalLayout ( ) ;
/ / Componentes de texto
TextField nomenclatura = new TextField ( "Nomenclatura" ) ;
@ -211,7 +221,8 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
buttons ( ) ;
add ( fechaLayout , departamentoLayout , controlsLayout , actualizacionesLayout , etiquetaLayout , firmasLayout , botonesLayout ) ;
mainLayout . add ( fechaLayout , departamentoLayout , controlsLayout , actualizacionesLayout , etiquetaLayout , firmasLayout , botonesLayout ) ;
add ( mainLayout ) ;
}
@ -451,7 +462,7 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
smtSignPad . setHeight ( "200px" ) ;
smtSignPad . setBackgroundColor ( "#FFFFFF" ) ;
smtSignPad . setPenColor ( "#000000" ) ;
smtSignPad . getElement ( ) . getStyle ( ) . set ( "border" , "2 px solid black" ) ;
smtSignPad . getElement ( ) . getStyle ( ) . set ( "border" , "1 px solid black" ) ;
String u = securityService . getAuthenticatedUser ( ) ;
Span smtSignSpan = new Span ( u ) ;
Span tituloSMT = new Span ( "Responsable de Soporte" ) ;
@ -475,8 +486,9 @@ public class MantenimientoView extends VerticalLayout implements BeforeEnterObse
firmasLayout . add ( userSignLayout , smtSignLayout , gcialSignLayout ) ;
firmasLayout . setSize Full ( ) ;
firmasLayout . setWidth Full ( ) ;
firmasLayout . setSpacing ( false ) ;
firmasLayout . setJustifyContentMode ( JustifyContentMode . CENTER ) ;
}