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:links="http://mxchange.org/jsf/core/links"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7 xmlns:h="http://xmlns.jcp.org/jsf/html"
8 xmlns:f="http://xmlns.jcp.org/jsf/core">
10 <ui:define name="admin_title">
11 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_USER}" />
14 <ui:define name="content_header">
15 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_USER}" />
18 <ui:define name="content">
19 <widgets:outputMessageBox message="#{msg.ADMIN_USER_LIST_EMPTY}" messageStyleClass="alert-danger" rendered="#{userController.allUsers().isEmpty()}" />
21 <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()}">
23 <f:facet name="header">
24 <h:outputText value="#{msg.ADMIN_USER_ID}" />
27 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
28 <f:param name="userId" value="#{user.userId}" />
32 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
34 <f:facet name="header">
35 <h:outputText value="#{msg.ADMIN_LIST_USER_NAME}" />
38 <h:outputText value="#{user.userName}" />
43 <f:facet name="header">
44 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
47 <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
51 <f:facet name="header">
52 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
55 <h:outputText value="#{user.userContact.contactFirstName}" />
59 <f:facet name="header">
60 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
63 <h:outputText value="#{user.userContact.contactFamilyName}" />
67 <f:facet name="header">
68 <h:outputText value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
71 <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
75 <f:facet name="header">
76 <h:outputText value="#{msg.ADMIN_USER_PROFILE_MODE}" />
79 <h:outputText value="#{msg[user.userProfileMode.messageKey]}" />
83 <f:facet name="header">
84 <h:outputText value="#{msg.ADMIN_LIST_ENTRY_CREATED}" />
87 <h:outputText id="userCreated" value="#{user.userCreated.time}">
88 <f:convertDateTime for="userCreated" type="both" timeStyle="short" dateStyle="short" />
93 <f:facet name="header">
94 <h:outputText value="#{msg.ADMIN_ACTION_LINKS}" />
97 <links:outputUserAdminMiniLinks user="#{user}" />
101 <h:panelGroup styleClass="table table-medium" layout="block">
102 <h:form id="form_admin_add_user">
103 <div class="table-header">
104 <h:outputText value="#{msg.ADMIN_ADD_USER_TITLE}" />
107 <!-- Whether select contact data .. //-->
108 <h:panelGroup id="admin_user_personal_data_option_1" styleClass="para" layout="block">
109 <fieldset class="fieldset" id="user_contact">
110 <legend title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}">
111 <h:outputText value="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}" />
114 <h:panelGroup styleClass="table-row" layout="block">
115 <div class="table-left-medium">
116 <h:outputLabel for="userContact" value="#{msg.ADMIN_SELECT_USER_CONTACT}" />
119 <div class="table-right-medium">
120 <h:selectOneMenu styleClass="select" id="userContact" value="#{adminUserController.contact}" converter="ContactConverter">
121 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
122 <f:selectItems value="#{contactController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactPersonalTitle.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
129 <h:panelGroup styleClass="para" layout="block">
130 <h:outputText value="#{msg.ADMIN_ADD_OR_ENTER_CONTACT_DATA}" />
133 <!-- ... or enter it directly together it creating user account //-->
134 <h:panelGroup id="admin_user_personal_data_option_2" layout="block">
135 <ui:include src="/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl" />
138 <div class="table-footer">
139 <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
140 <h:commandButton styleClass="submit" type="submit" id="button_add_user" value="#{msg.BUTTON_ADMIN_ADD_USER}" action="#{adminUserController.addUser()}" />