]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/branch_offices/admin_branch_offices_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / branch_offices / admin_branch_offices_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
7                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
8
9         <ui:define name="admin_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <widgets:outputMessageBox message="#{msg.ADMIN_BRANCH_OFFICES_LIST_EMPTY}" messageStyleClass="alert-danger" rendered="#{branchOfficeController.allBranchOffices().isEmpty()}" />
19
20                 <h:dataTable id="table_list_branch_offices" var="branchOffice" value="#{branchOfficeController.allBranchOffices()}" styleClass="table-full" headerClass="table-header-column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_BRANCH_OFFICES}" rendered="#{not branchOfficeController.allBranchOffices().isEmpty()}">
21                         <h:column>
22                                 <f:facet name="header">
23                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_ID}" />
24                                 </f:facet>
25
26                                 <h:link outcome="admin_show_branch_office" title="#{msg.ADMIN_LINK_SHOW_BUSINESS_CONTACT_DATA_TITLE}" value="#{branchOffice.branchId}">
27                                         <f:param name="branchOfficeId" value="#{branchOffice.branchId}" />
28                                 </h:link>
29                         </h:column>
30
31                         <h:column>
32                                 <f:facet name="header">
33                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_OWNER_ID}" />
34                                 </f:facet>
35
36                                 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICES_OWNER_USER_TITLE}" value="#{branchOffice.branchUserOwner.userId}" rendered="#{not empty branchOffice.branchUserOwner}">
37                                         <f:param name="userId" value="#{branchOffice.branchUserOwner.userId}" />
38                                 </h:link>
39
40                                 <h:link outcome="admin_assign_branch_offices_owner" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_OWNER_USER_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN}" rendered="#{empty branchOffice.branchUserOwner}">
41                                         <f:param name="branchOfficeId" value="#{branchOffice.branchId}" />
42                                 </h:link>
43                         </h:column>
44
45                         <h:column>
46                                 <f:facet name="header">
47                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_COMPANY_NAME}" />
48                                 </f:facet>
49
50                                 <h:link outcome="admin_show_branch_offices" value="#{branchOffice.branchCompany.companyName}" target="_blank" title="#{msg.LINK_COMPANY_WEBSITE_URL_TITLE}">
51                                         <f:param name="companyDataId" value="#{branchOffice.branchCompany.companyDataId}" />
52                                 </h:link>
53                         </h:column>
54
55                         <h:column>
56                                 <f:facet name="header">
57                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_EMAIL_ADDRESS}" />
58                                 </f:facet>
59
60                                 <h:outputText value="#{branchOffice.branchEmailAddress}" />
61                         </h:column>
62
63                         <h:column>
64                                 <f:facet name="header">
65                                         <h:outputText value="#{msg.DATA_CITY}" />
66                                 </f:facet>
67
68                                 <h:outputText value="#{branchOffice.branchZipCode} #{branchOffice.branchCity}" />
69                         </h:column>
70
71                         <h:column>
72                                 <f:facet name="header">
73                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_CONTACT_PERSON}" />
74                                 </f:facet>
75
76                                 <h:link outcome="admin_show_business_employee" title="#{msg.ADMIN_LINK_SHOW_BRANCH_OFFICES_CONTACT_PERSON_TITLE}" value="#{branchOffice.branchContactEmployee.employeeId}" rendered="#{not empty branchOffice.branchContactEmployee}">
77                                         <f:param name="employeeId" value="#{branchOffice.branchContactEmployee.employeeId}" />
78                                 </h:link>
79
80                                 <h:link outcome="admin_assign_branch_office_contact" title="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON_TITLE}" value="#{msg.ADMIN_LINK_ASSIGN_BRANCH_OFFICES_CONTACT_PERSON}" rendered="#{empty branchOffice.branchContactEmployee}">
81                                         <f:param name="branchOfficeId" value="#{branchOffice.branchId}" />
82                                 </h:link>
83                         </h:column>
84
85                         <h:column>
86                                 <f:facet name="header">
87                                         <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_CREATED}" />
88                                 </f:facet>
89
90                                 <h:outputText id="branchCreated" value="#{branchOffice.branchCreated.time}">
91                                         <f:convertDateTime for="branchCreated" type="both" timeStyle="short" dateStyle="short" />
92                                 </h:outputText>
93                         </h:column>
94                 </h:dataTable>
95
96                 <h:form id="form_admin_add_branch_office">
97                         <h:panelGroup styleClass="table table-medium" layout="block">
98                                 <div class="table-header">
99                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_TITLE}" />
100                                 </div>
101
102                                 <div class="para">
103                                         <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
104                                 </div>
105
106                                 <ui:include src="/WEB-INF/templates/admin/branch_offices/admin_form_branch_offices_data.tpl" />
107
108                                 <div class="table-footer">
109                                         <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
110                                         <h:commandButton styleClass="submit" type="submit" id="button_add_branch_office" value="#{msg.BUTTON_ADMIN_CONTINUE_BUSINESS_CONTACT_PERSON}" action="#{adminBranchOfficeController.addBranchOffice()}" />
111                                 </div>
112                         </h:panelGroup>
113                 </h:form>
114         </ui:define>
115 </ui:composition>