1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5 xmlns="http://www.w3.org/1999/xhtml"
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"
11 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
12 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_USER}</ui:define>
14 <ui:define name="content_header">
15 #{msg.CONTENT_TITLE_ADMIN_LIST_USER}
18 <ui:define name="content">
19 <h:dataTable id="table_list_users" var="user" value="#{userController.allUsers()}" styleClass="table_big" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_USERS}" rendered="#{userController.hasUsers()}">
21 <f:facet name="header">#{msg.ADMIN_USER_ID}</f:facet>
23 <h:link outcome="admin_show_user" title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}" value="#{user.userId}">
24 <f:param name="userId" value="#{user.userId}" />
29 <f:facet name="header">#{msg.ADMIN_USER_NAME}</f:facet>
31 <h:outputText value="#{user.userName}" />
35 <f:facet name="header">#{msg.ADMIN_CONTACT_GENDER}</f:facet>
37 <h:outputText value="#{msg[user.userContact.contactGender.messageKey]}" />
41 <f:facet name="header">#{msg.ADMIN_CONTACT_FIRST_NAME}</f:facet>
43 <h:outputText value="#{user.userContact.contactFirstName}" />
47 <f:facet name="header">#{msg.ADMIN_CONTACT_FAMILY_NAME}</f:facet>
49 <h:outputText value="#{user.userContact.contactFamilyName}" />
53 <f:facet name="header">#{msg.ADMIN_USER_ACCOUNT_STATUS}</f:facet>
55 <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
59 <f:facet name="header">#{msg.ADMIN_USER_PROFILE_MODE}</f:facet>
61 <h:outputText value="#{msg[user.userProfileMode.messageKey]}" />
65 <f:facet name="header">#{msg.ADMIN_USER_CREATED}</f:facet>
67 <h:outputText id="userCreated" value="#{user.userCreated.time}">
68 <f:convertDateTime for="userCreated" type="both" timeStyle="short" dateStyle="short" />
73 <div class="table_medium">
74 <h:form id="admin_add_user">
75 <div class="table_header">
76 #{msg.ADMIN_ADD_USER_TITLE}
80 <fieldset id="user_contact">
81 <legend title="#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE}">#{msg.ADMIN_SELECT_USER_CONTACT_LEGEND}</legend>
83 <div class="table_row">
84 <div class="table_left_medium">
85 <h:outputLabel for="userContact" value="#{msg.ADMIN_SELECT_USER_CONTACT}" />
88 <div class="table_right_medium">
89 <h:selectOneMenu class="select" id="userContact" value="#{adminHelper.contact}" converter="ContactConverter">
90 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
91 <f:selectItems value="#{userController.selectableContacts()}" var="contact" itemValue="#{contact}" itemLabel="#{contact.contactId}: #{msg[contact.contactGender.messageKey]} #{contact.contactFirstName} #{contact.contactFamilyName}" />
95 <div class="clear"></div>
101 <h:outputText value="#{msg.ADMIN_ADD_OR_ENTER_CONTACT_DATA}" />
104 <ui:include src="/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl" />
106 <div class="table_footer">
107 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
108 <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_ADD_USER}" action="#{adminUserController.addUser()}" />