]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/admin/user/admin_user_show.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / user / admin_user_show.xhtml
index 3eb471cb009a01cfb41fd0ab49bd596d68a21ae0..02c2dddc24aff25ba1ec35f78f31985bdb0922dc 100644 (file)
-<?xml version="1.0" encoding="UTF-8" ?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html\r
-       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"\r
-       xmlns="http://www.w3.org/1999/xhtml"\r
-       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"\r
-       xmlns:h="http://xmlns.jcp.org/jsf/html"\r
-       xmlns:f="http://xmlns.jcp.org/jsf/core"\r
-       >\r
-\r
-       <f:metadata>\r
-               <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />\r
-               <f:viewAction action="#{beanHelper.copyUserToController()}" />\r
-       </f:metadata>\r
-\r
-       <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">\r
-               <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_SHOW_USER}</ui:define>\r
-\r
-               <ui:define name="content_header">\r
-                       #{msg.CONTENT_TITLE_ADMIN_SHOW_USER}\r
-               </ui:define>\r
-\r
-               <ui:define name="content">\r
-                       <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.user}" />\r
-\r
-                       <h:panelGrid id="user_profile" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_USER}" headerClass="table_header_column" styleClass="table_big" columns="3" rendered="#{not empty beanHelper.user}">\r
-                               <f:facet name="header">\r
-                                       <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_USER}">\r
-                                               <f:param value="#{beanHelper.user.userName}" />\r
-                                               <f:param value="#{beanHelper.user.userId}" />\r
-                                       </h:outputFormat>\r
-                               </f:facet>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userId" styleClass="data_label" value="#{msg.ADMIN_USER_ID}" />\r
-\r
-                                       <h:outputText id="userId" styleClass="data_field" value="#{beanHelper.user.userId}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userName" styleClass="data_label" value="#{msg.ADMIN_USER_NAME}" />\r
-\r
-                                       <h:outputText id="userName" styleClass="data_field" value="#{beanHelper.user.userName}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CREATED}" />\r
-\r
-                                       <h:outputText id="userCreated" styleClass="data_field" value="#{beanHelper.user.userCreated.time}">\r
-                                               <f:convertDateTime for="userCreated" type="both" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_UPDATED}" />\r
-\r
-                                       <h:outputText id="userUpdated" styleClass="data_field" value="#{beanHelper.user.userUpdated.time}">\r
-                                               <f:convertDateTime for="userUpdated" type="both" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userAccountStatus" styleClass="data_label" value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />\r
-\r
-                                       <h:outputText id="userAccountStatus" styleClass="data_field #{beanHelper.user.userAccountStatus.styleClass}" value="#{msg[beanHelper.user.userAccountStatus.messageKey]}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userProfileMode" styleClass="data_label" value="#{msg.ADMIN_USER_PROFILE_MODE}" />\r
-\r
-                                       <h:outputText id="userProfileMode" styleClass="data_field" value="#{msg[beanHelper.user.userProfileMode.messageKey]}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="userLastLocked" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED}" />\r
-\r
-                                       <h:outputText id="userLastLocked" styleClass="data_field" value="#{beanHelper.user.userLastLocked.time}">\r
-                                               <f:convertDateTime for="userLastLocked" type="both" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="lastLockedReason" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />\r
-\r
-                                       <h:outputText id="lastLockedReason" styleClass="data_field" value="#{beanHelper.user.userLastLockedReason}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_CREATED}" />\r
-\r
-                                       <h:outputText id="contactCreated" styleClass="data_field" value="#{beanHelper.user.userContact.contactCreated.time}">\r
-                                               <f:convertDateTime for="contactCreated" type="both" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_UPDATED}" />\r
-\r
-                                       <h:outputText id="contactUpdated" styleClass="data_field" value="#{beanHelper.user.userContact.contactUpdated.time}">\r
-                                               <f:convertDateTime for="contactUpdated" type="both" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="isOwnContact" styleClass="data_label" value="#{msg.ADMIN_CONTACT_IS_OWN_CONTACT}" />\r
-\r
-                                       <h:outputText id="isOwnContact" styleClass="data_field" value="#{beanHelper.user.userContact.isOwnContact()}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactGender" styleClass="data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />\r
-\r
-                                       <h:outputText id="contactGender" styleClass="data_field" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactTitle" styleClass="data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />\r
-\r
-                                       <h:outputText id="contactTitle" styleClass="data_field" value="#{beanHelper.user.userContact.contactTitle}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactFirstName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />\r
-\r
-                                       <h:outputText id="contactFirstName" styleClass="data_field" value="#{beanHelper.user.userContact.contactFirstName}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactFamilyName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />\r
-\r
-                                       <h:outputText id="contactFamilyName" styleClass="data_field" value="#{beanHelper.user.userContact.contactFamilyName}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactStreet" styleClass="data_label" value="#{msg.ADMIN_CONTACT_STREET}" />\r
-\r
-                                       <h:outputText id="contactStreet" styleClass="data_field" value="#{beanHelper.user.userContact.contactStreet}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactHouseNumber" styleClass="data_label" value="#{msg.ADMIN_CONTACT_HOUSE_NUMBER}" />\r
-\r
-                                       <h:outputText id="contactHouseNumber" styleClass="data_field" value="#{beanHelper.user.userContact.contactHouseNumber}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactZipCode" styleClass="data_label" value="#{msg.ADMIN_CONTACT_ZIP_CODE}" />\r
-\r
-                                       <h:outputText id="contactZipCode" styleClass="data_field" value="#{beanHelper.user.userContact.contactZipCode}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactCity" styleClass="data_label" value="#{msg.ADMIN_CONTACT_CITY}" />\r
-\r
-                                       <h:outputText id="contactCity" styleClass="data_field" value="#{beanHelper.user.userContact.contactCity}" />\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactEmailAddress" styleClass="data_label" value="#{msg.ADMIN_CONTACT_EMAIL_ADDRESS}" />\r
-\r
-                                       <h:outputLink id="contactEmailAddress" styleClass="data_field" value="mailto:#{beanHelper.user.userContact.contactEmailAddress}">\r
-                                               <h:outputText value="#{beanHelper.user.userContact.contactEmailAddress}" />\r
-                                       </h:outputLink>\r
-                               </h:column>\r
-\r
-                               <h:column>\r
-                                       <h:outputLabel for="contactBirthday" styleClass="data_label" value="#{msg.ADMIN_CONTACT_BIRTHDAY}" />\r
-\r
-                                       <h:outputText id="contactBirthday" styleClass="data_field" value="#{beanHelper.user.userContact.contactBirthday.time}">\r
-                                               <f:convertDateTime for="contactBirthday" type="date" />\r
-                                       </h:outputText>\r
-                               </h:column>\r
-                       </h:panelGrid>\r
-\r
-                       <div>\r
-                               <ui:include src="/WEB-INF/templates/admin/user/admin_user_links.tpl">\r
-                                       <ui:param name="user" value="#{beanHelper.user}" />\r
-                               </ui:include>\r
-                       </div>\r
-\r
-                       <div>\r
-                               <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">\r
-                                       <ui:param name="cellphoneNumber" value="#{beanHelper.user.userContact.contactCellphoneNumber}" />\r
-                                       <ui:param name="contact" value="#{beanHelper.user.userContact}" />\r
-                               </ui:include>\r
-                       </div>\r
-               </ui:define>\r
-       </ui:composition>\r
-</html>\r
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
+                               xmlns="http://www.w3.org/1999/xhtml"
+                               xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+                               xmlns:h="http://xmlns.jcp.org/jsf/html"
+                               xmlns:f="http://xmlns.jcp.org/jsf/core">
+
+       <ui:define name="metadata">
+               <f:metadata>
+                       <f:viewParam name="userId" value="#{beanHelper.user}" converter="UserConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" />
+                       <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerUserConverted()}" />
+               </f:metadata>
+       </ui:define>
+
+       <ui:define name="admin_title">
+               <h:outputText value="#{msg.PAGE_TITLE_ADMIN_SHOW_USER}" />
+       </ui:define>
+
+       <ui:define name="content_header">
+               <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_SHOW_USER}" />
+       </ui:define>
+
+       <ui:define name="content">
+               <ui:fragment rendered="#{empty beanHelper.user}">
+                       <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
+                               <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
+                               <ui:param name="styleClass" value="errors" />
+                       </ui:include>
+               </ui:fragment>
+
+               <ui:include src="/WEB-INF/templates/admin/user/admin_show_user_data.tpl" />
+
+               <div class="para">
+                       <ui:include src="/WEB-INF/templates/admin/user/admin_user_links.tpl" />
+               </div>
+
+               <div class="para">
+                       <ui:include src="/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl" />
+               </div>
+
+               <div class="para">
+                       <ui:include src="/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl" />
+               </div>
+
+               <div class="para">
+                       <ui:include src="/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl" />
+               </div>
+       </ui:define>
+</ui:composition>