From 1887214ed2983ca128241c8b6f7e5dc1799111f2 Mon Sep 17 00:00:00 2001 From: ricardo051199 Date: Wed, 11 Sep 2024 15:27:09 -0400 Subject: [PATCH] =?UTF-8?q?#17=20Perfil=20de=20Personal=20Administrativo?= =?UTF-8?q?=20-=20Carga=20de=20Documentaci=C3=B3n=20Laboral=20(VISTA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/WorkDocumentsView.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/main/java/com/primefactorsolutions/views/WorkDocumentsView.java b/src/main/java/com/primefactorsolutions/views/WorkDocumentsView.java index de23e08..ac29094 100644 --- a/src/main/java/com/primefactorsolutions/views/WorkDocumentsView.java +++ b/src/main/java/com/primefactorsolutions/views/WorkDocumentsView.java @@ -1,6 +1,11 @@ package com.primefactorsolutions.views; +import com.vaadin.flow.component.button.Button; +import com.vaadin.flow.component.html.Div; +import com.vaadin.flow.component.html.H2; import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.component.orderedlayout.FlexComponent; +import com.vaadin.flow.component.orderedlayout.HorizontalLayout; import com.vaadin.flow.router.PageTitle; import com.vaadin.flow.router.Route; import com.vaadin.flow.spring.annotation.SpringComponent; @@ -13,4 +18,30 @@ import org.springframework.context.annotation.Scope; @PageTitle("WorkDocuments") @Route(value = "/work-documents/me", layout = MainLayout.class) public class WorkDocumentsView extends Main { + + public WorkDocumentsView() { + HorizontalLayout row1 = new HorizontalLayout(); + row1.add(createSection("Pay Slips"), createSection("Employment Contract")); + HorizontalLayout row2 = new HorizontalLayout(); + row2.add(createSection("Work Certificates"), createSection("NDA")); + HorizontalLayout row3 = new HorizontalLayout(); + row3.add(createSection("Memorandums"), createSection("Contract Approval MTEPS")); + add(row1, row2, row3); + } + + private Div createSection(String sectionTitle) { + Div section = new Div(); + section.add(new H2(sectionTitle)); + HorizontalLayout row1 = new HorizontalLayout(); + row1.setJustifyContentMode(FlexComponent.JustifyContentMode.CENTER); + row1.add(new Button("View"), new Button("Upload"), new Button("Save")); + HorizontalLayout row2 = new HorizontalLayout(); + row2.setJustifyContentMode(FlexComponent.JustifyContentMode.CENTER); + row2.add(new Button("Edit"), new Button("Print"), new Button("Delete")); + HorizontalLayout row3 = new HorizontalLayout(); + row3.setJustifyContentMode(FlexComponent.JustifyContentMode.CENTER); + row3.add(new Button("Download")); + section.add(row1, row2, row3); + return section; + } }