]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / admin / landline / admin_landline_add_show.tpl
index 4ed5e6008d9b6c536dd155ccaacde98b937c4a16..9998fb116417881211fa1c5024924f3d18a677be 100644 (file)
@@ -1,22 +1,24 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <ui:composition
        xmlns="http://www.w3.org/1999/xhtml"
+       xmlns:core="http://mxchange.org/jsf/core/widgets"
        xmlns:f="http://xmlns.jcp.org/jsf/core"
        xmlns:h="http://xmlns.jcp.org/jsf/html"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
-       <ui:fragment rendered="#{empty beanHelper.contact}">
-               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
-                       <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" />
-                       <ui:param name="styleClass" value="errors" />
-               </ui:include>
-       </ui:fragment>
+       <core:outputMessageBox
+               panelGroupId="errorHandlerAddLandLine"
+               message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}"
+               messageStyleClass="alert-danger"
+               rendered="#{empty beanHelper.contact}"
+               />
 
        <ui:fragment rendered="#{empty beanHelper.contact.contactLandLineNumber and not empty beanHelper.contact}">
                <ui:include src="/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl" />
        </ui:fragment>
 
-       <ui:fragment rendered="#{not empty beanHelper.contact.contactLandLineNumber and not empty beanHelper.contact}">
-               <ui:include src="/WEB-INF/templates/admin/landline/admin_landline_data.tpl" />
-       </ui:fragment>
+       <core:outputAdminLandLinePanelGrid
+               landLineNumber="#{beanHelper.contact.contactLandLineNumber}"
+               rendered="#{not empty beanHelper.contact.contactLandLineNumber and not empty beanHelper.contact}"
+               />
 </ui:composition>