]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact_business/admin_contact_business_list.xhtml
updated project properties file ... strange, again
[jjobs-war.git] / web / admin / contact_business / admin_contact_business_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:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="admin_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_BUSINESS}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_BUSINESS}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <ui:fragment rendered="#{businessDataController.allBusinessContacts().isEmpty()}">
18                         <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
19                                 <ui:param name="message" value="#{msg.ADMIN_CONTACT_BUSINESS_LIST_EMPTY}" />
20                                 <ui:param name="styleClass" value="errors" />
21                         </ui:include>
22                 </ui:fragment>
23
24                 <h:dataTable id="table_list_business_contacts" var="businessContact" value="#{businessDataController.allBusinessContacts()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT_BUSINESS}" rendered="#{not businessDataController.allBusinessContacts().isEmpty()}">
25                         <h:column>
26                                 <f:facet name="header">
27                                         <h:outputText value="#{msg.ADMIN_CONTACT_BUSINESS_ID}" />
28                                 </f:facet>
29
30                                 <h:link outcome="admin_show_contact_business" title="#{msg.ADMIN_LINK_SHOW_BUSINESS_CONTACT_DATA_TITLE}" value="#{businessContact.businessDataId}">
31                                         <f:param name="businessDataId" value="#{businessContact.businessDataId}" />
32                                 </h:link>
33                         </h:column>
34
35                         <h:column>
36                                 <f:facet name="header">
37                                         <h:outputText value="#{msg.ADMIN_CONTACT_BUSINESS_OWNER_ID}" />
38                                 </f:facet>
39
40                                 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_CONTACT_BUSINESS_OWNER_USER_TITLE}" value="#{businessContact.contactCompanyUserOwner.userId}" rendered="#{not empty businessContact.contactCompanyUserOwner}" />
41
42                                 <h:link outcome="admin_assign_contact_business_owner" title="#{msg.ADMIN_LINK_ASSIGN_CONTACT_BUSINESS_OWNER_USER_TITLE}" value="#{msg[ADMIN_LINK_ASSIGN_CONTACT_BUSINESS_OWNER_USER]}" rendered="#{empty businessContact.contactCompanyUserOwner}" />
43                         </h:column>
44
45                         <h:column>
46                                 <f:facet name="header">
47                                         <h:outputText value="#{msg.ADMIN_CONTACT_BUSINESS_COMPANY_NAME}" />
48                                 </f:facet>
49
50                                 <h:outputText value="#{businessContact.companyName} #{businessContact.companyLegalStatus}" />
51                         </h:column>
52
53                         <h:column>
54                                 <f:facet name="header">
55                                         <h:outputText value="#{msg.ADMIN_CONTACT_BUSINESS_CONTACT_PERSON}" />
56                                 </f:facet>
57
58                                 <h:link outcome="admin_show_business_employee" title="#{msg.ADMIN_LINK_SHOW_CONTACT_BUSINESS_CONTACT_PERSON_TITLE}" value="#{businessContact.companyContact.employeeId}" rendered="#{not empty businessContact.companyContact}" />
59
60                                 <h:link outcome="admin_assign_contact_business_contact" title="#{msg.ADMIN_LINK_ASSIGN_CONTACT_BUSINESS_CONTACT_PERSON_TITLE}" value="#{msg[ADMIN_LINK_ASSIGN_CONTACT_BUSINESS_CONTACT_PERSON]}" rendered="#{empty businessContact.companyContact}" />
61                         </h:column>
62
63                         <h:column>
64                                 <f:facet name="header">
65                                         <h:outputText value="#{msg.ADMIN_CONTACT_BUSINESS_CREATED}" />
66                                 </f:facet>
67
68                                 <h:outputText id="contactCreated" value="#{businessContact.contactCreated.time}">
69                                         <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
70                                 </h:outputText>
71                         </h:column>
72                 </h:dataTable>
73
74                 <h:form id="form_admin_add_contact_business">
75                         <h:panelGroup styleClass="table_medium" layout="block">
76                                 <div class="table_header">
77                                         <h:outputText value="#{msg.ADMIN_ADD_CONTACT_BUSINESS_TITLE}" />
78                                 </div>
79
80                                 <div class="para">
81                                         <h:outputText value="#{msg.ADMIN_ADD_CONTACT_BUSINESS_MINIMUM_DATA}" />
82                                 </div>
83
84                                 <ui:include src="/WEB-INF/templates/admin/contact_business/admin_form_contact_business_data.tpl" />
85
86                                 <div class="table_footer">
87                                         <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
88                                         <h:commandButton styleClass="submit" type="submit" id="add_business_basic_data" value="#{msg.BUTTON_ADMIN_CONTINUE_BUSINESS_CONTACT_PERSON}" action="#{adminBusinessDataController.addBusinessBasicData()}" />
89                                 </div>
90                         </h:panelGroup>
91                 </h:form>
92         </ui:define>
93 </ui:composition>