Advertisement
aadddrr

manageWarrantyTypeDetail

May 30th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.72 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5.     xmlns:ui="http://java.sun.com/jsf/facelets"
  6.     xmlns:f="http://java.sun.com/jsf/core"
  7.     xmlns:h="http://java.sun.com/jsf/html"
  8.     xmlns:p="http://primefaces.org/ui"
  9.     xmlns:j="http://jleaf.org/faces"
  10.     xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents">
  11.  
  12. <ui:composition template="/WEB-INF/layouts/base.xhtml">
  13.     <ui:define name="headPart">
  14.         <j:lang id="lang" prefix="org.jleaf.erp.master.web" /> 
  15.         <link
  16.             href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
  17.             type="text/css" rel="stylesheet" />
  18.         <title>#{piece['manageWarrantyTypeDetail']}</title>
  19.     </ui:define>
  20.     <ui:define name="contentPart">
  21.  
  22.         <span class="page_title">#{piece['manageWarrantyTypeDetail']}</span>
  23.         <j:authorize task="viewWarrantyTypeDetail,addWarrantyTypeDetail,removeWarrantyTypeDetail" forbidden="true">    
  24.         <p:outputPanel id="contentPanel"
  25.             rendered="#{manageWarrantyTypeDetail.warrantyTypeId!=NULL}">
  26.  
  27.             <p:panel>
  28.                 <p:messages id="messages" autoUpdate="true" />
  29.                
  30.                 <input type="hidden" value="#{manageWarrantyTypeDetail}" />
  31.                
  32.                 <h:panelGrid columns="3">
  33.  
  34.                     <h:outputText
  35.                         value="#{piece['warrantyCode']}" />
  36.                     <p:inputText
  37.                         value="#{manageWarrantyTypeDetail['warrantyTypeCode']}"
  38.                         disabled="true" />
  39.                     <h:outputText />
  40.  
  41.                     <h:outputText
  42.                         value="#{piece['warrantyName']}" />
  43.                     <p:inputText
  44.                         value="#{manageWarrantyTypeDetail['warrantyTypeName']}"
  45.                         disabled="true" />
  46.                     <h:outputText />
  47.  
  48.                     <h:outputText
  49.                         value="#{piece['field']}" />
  50.                     <p:inputText
  51.                         value="#{manageWarrantyTypeDetail.detailInput['detailField']}" />
  52.                     <h:outputText />
  53.  
  54.                     <h:outputText
  55.                         value="#{piece['value']}" />
  56.                     <p:inputTextarea
  57.                         value="#{manageWarrantyTypeDetail.detailInput['detailValue']}"
  58.                         rows="3"
  59.                         cols="40" />
  60.                     <h:outputText />
  61.  
  62.                     <h:outputText />
  63.                     <h:panelGrid columns="3">
  64.                         <j:authorize task="addWarrantyTypeDetail">
  65.                             <p:commandButton value="#{piece['save']}"
  66.                                 actionListener="#{manageWarrantyTypeDetail.doAdd()}"
  67.                                 update="grid" />
  68.                         </j:authorize>
  69.                         <p:commandButton id="backBtn"
  70.                             value="#{piece['back']}" ajax="false"
  71.                             action="#{manageWarrantyTypeDetail.doBack()}" immediate="true" />
  72.                     </h:panelGrid>
  73.                 </h:panelGrid>
  74.  
  75.                 <p:dataTable id="grid"
  76.                     value="#{manageWarrantyTypeDetail.model}" lazy="true"
  77.                     var="gridItem" rowKey="#{gridItem['id']}" paginator="true" rows="10"
  78.                     paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
  79.                     rowsPerPageTemplate="5,10,15">
  80.                    
  81.                     <p:column style="width:200px"
  82.                         headerText="#{piece['action']}">
  83.                         <j:authorize task="removeWarrantyTypeDetail">                      
  84.                             <p:commandLink id="btnRemove" icon="ui-icon-trash"
  85.                                 actionListener="#{manageWarrantyTypeDetail.markAsRemove(gridItem)}"
  86.                                 oncomplete="confirmDlg.show()">
  87.                                 <h:graphicImage library="images" name="common/delete.png"
  88.                                     title="#{piece['remove']}" />
  89.                             </p:commandLink>
  90.                         </j:authorize>
  91.                     </p:column>
  92.  
  93.                     <p:column
  94.                         headerText="#{piece['field']}">
  95.                         <h:outputText
  96.                             value="#{gridItem['detailField']}" />
  97.                     </p:column>
  98.  
  99.                     <p:column
  100.                         headerText="#{piece['value']}">
  101.                         <h:outputText
  102.                             value="#{gridItem['detailValue']}" />
  103.                     </p:column>
  104.                 </p:dataTable>
  105.             </p:panel>
  106.         </p:outputPanel>
  107.         </j:authorize>
  108.        
  109.         <p:confirmDialog id="confirmDialog"
  110.             message="#{piece['areYouSure']}"
  111.             widgetVar="confirmDlg"
  112.             header="#{piece['deleteItem']}"
  113.             severity="alert">
  114.             <p:panelGrid columns="2">
  115.                 <h:outputText />
  116.                 <p:panelGrid columns="2">
  117.                     <p:commandButton
  118.                         actionListener="#{manageWarrantyTypeDetail.doRemove()}"
  119.                         update=":rootform:grid"
  120.                         value="#{piece['yes']}"
  121.                         oncomplete="confirmDlg.hide()" />
  122.                     <p:commandButton type="button"
  123.                         value="#{piece['no']}"
  124.                         onclick="confirmDlg.hide()" />
  125.                 </p:panelGrid>
  126.             </p:panelGrid>
  127.         </p:confirmDialog>
  128.  
  129.         <p:outputPanel id="errorPanel"
  130.             rendered="#{manageWarrantyTypeDetail.warrantyTypeId==NULL}">
  131.             <p:panel>
  132.                 <h:panelGrid columns="1">
  133.                     <h:outputText
  134.                         value="#{piece['invalidWarrantyTypeId']}"
  135.                         style="color:Red" />
  136.                     <p:commandButton id="btnBack23" ajax="false"
  137.                         value="#{piece['back']}"
  138.                         action="#{manageWarrantyTypeDetail.doBack()}" immediate="true" />
  139.                 </h:panelGrid>
  140.             </p:panel>
  141.         </p:outputPanel>
  142.  
  143.     </ui:define>
  144. </ui:composition>
  145. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement