Crear views para el modulo de documentos
This commit is contained in:
parent
1f429221d4
commit
842f90f7aa
@ -0,0 +1,16 @@
|
|||||||
|
package com.primefactorsolutions.views;
|
||||||
|
|
||||||
|
import com.vaadin.flow.component.html.Main;
|
||||||
|
import com.vaadin.flow.router.PageTitle;
|
||||||
|
import com.vaadin.flow.router.Route;
|
||||||
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
|
||||||
|
@SpringComponent
|
||||||
|
@PermitAll
|
||||||
|
@Scope("prototype")
|
||||||
|
@PageTitle("CorporateDocuments")
|
||||||
|
@Route(value = "/corporate-documents/me", layout = MainLayout.class)
|
||||||
|
public class CorporateDocumentsView extends Main {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.primefactorsolutions.views;
|
||||||
|
|
||||||
|
import com.vaadin.flow.component.html.Main;
|
||||||
|
import com.vaadin.flow.router.PageTitle;
|
||||||
|
import com.vaadin.flow.router.Route;
|
||||||
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
|
||||||
|
@SpringComponent
|
||||||
|
@PermitAll
|
||||||
|
@Scope("prototype")
|
||||||
|
@PageTitle("GovernmentDocumentsView")
|
||||||
|
@Route(value = "/government-documents/me", layout = MainLayout.class)
|
||||||
|
public class GovernmentDocumentsView extends Main {
|
||||||
|
}
|
@ -88,17 +88,29 @@ public class MainLayout extends AppLayout {
|
|||||||
admin.addItem(new SideNavItem("Employees", EmployeesListView.class,
|
admin.addItem(new SideNavItem("Employees", EmployeesListView.class,
|
||||||
LineAwesomeIcon.USER_EDIT_SOLID.create()));
|
LineAwesomeIcon.USER_EDIT_SOLID.create()));
|
||||||
|
|
||||||
|
SideNavItem documents = new SideNavItem("Documents", MainView.class,
|
||||||
|
LineAwesomeIcon.FILE_ALT_SOLID.create());
|
||||||
|
documents.addItem(new SideNavItem("Personal Documents", PersonalDocumentsView.class,
|
||||||
|
LineAwesomeIcon.ID_CARD_SOLID.create()));
|
||||||
|
documents.addItem(new SideNavItem("Professional Documents", ProfessionalDocumentsView.class,
|
||||||
|
LineAwesomeIcon.BRIEFCASE_SOLID.create()));
|
||||||
|
documents.addItem(new SideNavItem("Work Documents", WorkDocumentsView.class,
|
||||||
|
LineAwesomeIcon.FOLDER_OPEN_SOLID.create()));
|
||||||
|
documents.addItem(new SideNavItem("Corporate Documents", CorporateDocumentsView.class,
|
||||||
|
LineAwesomeIcon.BUILDING_SOLID.create()));
|
||||||
|
documents.addItem(new SideNavItem("Government Documents", GovernmentDocumentsView.class,
|
||||||
|
LineAwesomeIcon.BALANCE_SCALE_SOLID.create()));
|
||||||
|
|
||||||
SideNavItem timeOff = new SideNavItem("My Time-off", TimeoffView.class,
|
SideNavItem timeOff = new SideNavItem("My Time-off", TimeoffView.class,
|
||||||
LineAwesomeIcon.PLANE_DEPARTURE_SOLID.create());
|
LineAwesomeIcon.PLANE_DEPARTURE_SOLID.create());
|
||||||
SideNavItem timesheet = new SideNavItem("My Timesheet", TimesheetView.class,
|
SideNavItem timesheet = new SideNavItem("My Timesheet", TimesheetView.class,
|
||||||
LineAwesomeIcon.HOURGLASS_START_SOLID.create());
|
LineAwesomeIcon.HOURGLASS_START_SOLID.create());
|
||||||
SideNavItem profile = new SideNavItem("My Profile", ProfileView.class,
|
SideNavItem profile = new SideNavItem("My Profile", ProfileView.class,
|
||||||
LineAwesomeIcon.USER_EDIT_SOLID.create());
|
LineAwesomeIcon.USER_EDIT_SOLID.create());
|
||||||
SideNavItem documents = new SideNavItem("My Documents", DocumentsView.class,
|
|
||||||
LineAwesomeIcon.SUITCASE_SOLID.create());
|
|
||||||
|
|
||||||
nav.addItem(new SideNavItem("Home", MainView.class, LineAwesomeIcon.HOME_SOLID.create()));
|
nav.addItem(new SideNavItem("Home", MainView.class, LineAwesomeIcon.HOME_SOLID.create()));
|
||||||
nav.addItem(admin);
|
nav.addItem(admin);
|
||||||
|
nav.addItem(documents);
|
||||||
nav.addItem(recruiting);
|
nav.addItem(recruiting);
|
||||||
nav.addItem(profile);
|
nav.addItem(profile);
|
||||||
nav.addItem(timesheet);
|
nav.addItem(timesheet);
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.primefactorsolutions.views;
|
||||||
|
|
||||||
|
import com.vaadin.flow.component.html.Main;
|
||||||
|
import com.vaadin.flow.router.PageTitle;
|
||||||
|
import com.vaadin.flow.router.Route;
|
||||||
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
|
||||||
|
@SpringComponent
|
||||||
|
@PermitAll
|
||||||
|
@Scope("prototype")
|
||||||
|
@PageTitle("PersonalDocuments")
|
||||||
|
@Route(value = "/personal-documents/me", layout = MainLayout.class)
|
||||||
|
public class PersonalDocumentsView extends Main {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.primefactorsolutions.views;
|
||||||
|
|
||||||
|
import com.vaadin.flow.component.html.Main;
|
||||||
|
import com.vaadin.flow.router.PageTitle;
|
||||||
|
import com.vaadin.flow.router.Route;
|
||||||
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
|
||||||
|
@SpringComponent
|
||||||
|
@PermitAll
|
||||||
|
@Scope("prototype")
|
||||||
|
@PageTitle("ProfessionalDocuments")
|
||||||
|
@Route(value = "/professional-documents/me", layout = MainLayout.class)
|
||||||
|
public class ProfessionalDocumentsView extends Main {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.primefactorsolutions.views;
|
||||||
|
|
||||||
|
import com.vaadin.flow.component.html.Main;
|
||||||
|
import com.vaadin.flow.router.PageTitle;
|
||||||
|
import com.vaadin.flow.router.Route;
|
||||||
|
import com.vaadin.flow.spring.annotation.SpringComponent;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
|
||||||
|
@SpringComponent
|
||||||
|
@PermitAll
|
||||||
|
@Scope("prototype")
|
||||||
|
@PageTitle("WorkDocuments")
|
||||||
|
@Route(value = "/work-documents/me", layout = MainLayout.class)
|
||||||
|
public class WorkDocumentsView extends Main {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user