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">
9 <ui:define name="admin_title">
10 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
13 <ui:define name="content_header">
14 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_BRANCH_OFFICES}" />
17 <ui:define name="content">
18 <widgets:outputMessageBox message="#{msg.ADMIN_BRANCH_OFFICES_LIST_EMPTY}" messageStyleClass="alert-danger" rendered="#{branchOfficeController.allBranchOffices().isEmpty()}" />
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()}">
22 <f:facet name="header">
23 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_ID}" />
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}" />
32 <f:facet name="header">
33 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_OWNER_ID}" />
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}" />
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}" />
46 <f:facet name="header">
47 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_COMPANY_NAME}" />
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}" />
56 <f:facet name="header">
57 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_EMAIL_ADDRESS}" />
60 <h:outputText value="#{branchOffice.branchEmailAddress}" />
64 <f:facet name="header">
65 <h:outputText value="#{msg.DATA_CITY}" />
68 <h:outputText value="#{branchOffice.branchZipCode} #{branchOffice.branchCity}" />
72 <f:facet name="header">
73 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_CONTACT_PERSON}" />
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}" />
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}" />
86 <f:facet name="header">
87 <h:outputText value="#{msg.ADMIN_BRANCH_OFFICE_CREATED}" />
90 <h:outputText id="branchCreated" value="#{branchOffice.branchCreated.time}">
91 <f:convertDateTime for="branchCreated" type="both" timeStyle="short" dateStyle="short" />
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}" />
103 <h:outputText value="#{msg.ADMIN_ADD_BRANCH_OFFICE_MINIMUM_DATA}" />
106 <ui:include src="/WEB-INF/templates/admin/branch_offices/admin_form_branch_offices_data.tpl" />
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()}" />