<?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:widgets="http://mxchange.org/jsf/core/widgets"
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.copyUserToController()}" />
+ <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerUserConverted()}" />
</f:metadata>
</ui:define>
</ui:define>
<ui:define name="content">
- <ui:fragment rendered="#{empty beanHelper.user}">
- <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
- <ui:param name="message" value="#{msg.ERROR_USER_ID_NOT_FOUND}" />
- <ui:param name="styleClass" value="errors" />
- </ui:include>
- </ui:fragment>
+ <widgets:outputMessageBox message="#{msg.ERROR_USER_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.user}" />
<h:form id="form_admin_delete_user" rendered="#{not empty beanHelper.user}">
- <h:panelGroup styleClass="table_medium" layout="block">
- <div class="table_header">
+ <h:panelGroup styleClass="table table-medium" layout="block">
+ <div class="table-header">
<h:outputFormat value="#{msg.ADMIN_DELETE_USER_TITLE}">
<f:param value="#{beanHelper.user.userName}" />
<f:param value="#{beanHelper.user.userId}" />
<ui:include src="/WEB-INF/templates/admin/user/admin_show_user_data_mini.tpl" />
- <h:panelGroup styleClass="table_row" layout="block">
- <div class="table_left25_medium">
+ <h:panelGroup styleClass="table-row" layout="block">
+ <div class="table-left25-medium">
<h:outputLabel for="userDeleteReason" value="#{msg.ADMIN_USER_DELETE_REASON}" />
</div>
- <div class="table_right75_medium">
+ <div class="table-right75-medium">
<h:inputTextarea id="userDeleteReason" styleClass="input" value="#{adminUserController.userDeleteReason}" rows="8" cols="45" />
</div>
-
- <div class="clear"></div>
</h:panelGroup>
- <div class="table_footer">
- <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton styleClass="delete_button" type="submit" id="delete_user" value="#{msg.BUTTON_ADMIN_DELETE_USER}" action="#{adminUserController.deleteUserData(beanHelper.user)}" />
+ <div class="table-footer">
+ <h:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
+ <h:commandButton styleClass="button-danger" type="submit" id="button_delete_user" value="#{msg.BUTTON_ADMIN_DELETE_USER}" action="#{adminUserController.deleteUserData()}" />
</div>
</h:panelGroup>
</h:form>