#17-Perfil-Personal-Administrativo #24
@ -1,6 +1,11 @@
|
|||||||
package com.primefactorsolutions.views;
|
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.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.PageTitle;
|
||||||
import com.vaadin.flow.router.Route;
|
import com.vaadin.flow.router.Route;
|
||||||
import com.vaadin.flow.spring.annotation.SpringComponent;
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
@ -13,4 +18,30 @@ import org.springframework.context.annotation.Scope;
|
|||||||
@PageTitle("WorkDocuments")
|
@PageTitle("WorkDocuments")
|
||||||
@Route(value = "/work-documents/me", layout = MainLayout.class)
|
@Route(value = "/work-documents/me", layout = MainLayout.class)
|
||||||
public class WorkDocumentsView extends Main {
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user