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_USER}" />
13 <ui:define name="content_header">
14 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_USER}" />
17 <ui:define name="content">
18 <widgets:outputMessageBox message="#{msg.ADMIN_USER_LIST_EMPTY}" styleClass="errors" rendered="#{userController.allUsers().isEmpty()}" />
20 <h:dataTable id="table_list_users" var="user" value="#{userController.allUsers()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_USERS}" rendered="#{not userController.allUsers().isEmpty()}">
22 <f:facet name="header">
23 <h:outputText value="#{msg.ADMIN_USER_ID}" />
26 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
27 <f:param name="userId" value="#{user.userId}" />
31 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
33 <f:facet name="header">
34 <h:outputText value="#{msg.ADMIN_LIST_USER_NAME}" />
37 <h:outputText value="#{user.userName}" />
42 <f:facet name="header">
43 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
46 <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
50 <f:facet name="header">
51 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
54 <h:outputText value="#{user.userContact.contactFirstName}" />
58 <f:facet name="header">
59 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
62 <h:outputText value="#{user.userContact.contactFamilyName}" />
66 <f:facet name="header">
67 <h:outputText value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
70 <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
74 <f:facet name="header">
75 <h:outputText value="#{msg.ADMIN_USER_PROFILE_MODE}" />
78 <h:outputText value="#{msg[user.userProfileMode.messageKey]}" />
82 <f:facet name="header">
83 <h:outputText value="#{msg.ADMIN_USER_CREATED}" />
86 <h:outputText id="userCreated" value="#{user.userCreated.time}">
87 <f:convertDateTime for="userCreated" type="both" timeStyle="short" dateStyle="short" />
92 <h:panelGroup styleClass="table_medium" layout="block">
93 <h:form id="form_admin_add_user">
94 <div class="table_header">
95 <h:outputText value="#{msg.ADMIN_ADD_USER_TITLE}" />
98 <!-- Whether select contact data .. //-->
99 <h:panelGroup id="admin_user_personal_data_option_1" styleClass="para" layout="block">
100 <fieldset class="fieldset" id="user_contact">
101 <legend title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}">
102 <h:outputText value="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}" />
105 <h:panelGroup styleClass="table_row" layout="block">
106 <div class="table_left_medium">
107 <h:outputLabel for="userContact" value="#{msg.ADMIN_SELECT_USER_CONTACT}" />
110 <div class="table_right_medium">
111 <h:selectOneMenu styleClass="select" id="userContact" value="#{beanHelper.contact}" converter="ContactConverter">
112 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
113 <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactPersonalTitle.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
117 <div class="clear"></div>
122 <h:panelGroup styleClass="para" layout="block">
123 <h:outputText value="#{msg.ADMIN_ADD_OR_ENTER_CONTACT_DATA}" />
126 <!-- ... or enter it directly together it creating user account //-->
127 <h:panelGroup id="admin_user_personal_data_option_2" layout="block">
128 <ui:include src="/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl" />
131 <div class="table_footer">
132 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
133 <h:commandButton styleClass="submit" type="submit" id="add_user" value="#{msg.BUTTON_ADMIN_ADD_USER}" action="#{adminUserController.addUser()}" />