Crear views para el modulo de documentos
This commit is contained in:
parent
2342984de5
commit
a7d1c08f90
@ -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 {
|
||||
}
|
@ -107,17 +107,29 @@ public class MainLayout extends AppLayout {
|
||||
admin.addItem(new SideNavItem("Employees", EmployeesListView.class,
|
||||
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,
|
||||
LineAwesomeIcon.PLANE_DEPARTURE_SOLID.create());
|
||||
SideNavItem timesheet = new SideNavItem("My Timesheet", TimesheetView.class,
|
||||
LineAwesomeIcon.HOURGLASS_START_SOLID.create());
|
||||
SideNavItem profile = new SideNavItem("My Profile", ProfileView.class,
|
||||
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(admin);
|
||||
nav.addItem(documents);
|
||||
nav.addItem(recruiting);
|
||||
nav.addItem(profile);
|
||||
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