Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:p="http://primefaces.org/ui"
- xmlns:j="http://jleaf.org/faces"
- xmlns:jl="http://java.sun.com/jsf/composite/jlcomponents">
- <ui:composition template="/WEB-INF/layouts/base.xhtml">
- <ui:define name="headPart">
- <j:lang id="lang" prefix="org.jleaf.erp.master.web" />
- <link
- href="${request.contextPath}/jleaf.resource/org/jleaf/erp/master/web/resources/css/style.css"
- type="text/css" rel="stylesheet" />
- <title>#{piece['manageWarrantyTypeDetail']}</title>
- </ui:define>
- <ui:define name="contentPart">
- <span class="page_title">#{piece['manageWarrantyTypeDetail']}</span>
- <j:authorize task="viewWarrantyTypeDetail,addWarrantyTypeDetail,removeWarrantyTypeDetail" forbidden="true">
- <p:outputPanel id="contentPanel"
- rendered="#{manageWarrantyTypeDetail.warrantyTypeId!=NULL}">
- <p:panel>
- <p:messages id="messages" autoUpdate="true" />
- <input type="hidden" value="#{manageWarrantyTypeDetail}" />
- <h:panelGrid columns="3">
- <h:outputText
- value="#{piece['warrantyCode']}" />
- <p:inputText
- value="#{manageWarrantyTypeDetail['warrantyTypeCode']}"
- disabled="true" />
- <h:outputText />
- <h:outputText
- value="#{piece['warrantyName']}" />
- <p:inputText
- value="#{manageWarrantyTypeDetail['warrantyTypeName']}"
- disabled="true" />
- <h:outputText />
- <h:outputText
- value="#{piece['field']}" />
- <p:inputText
- value="#{manageWarrantyTypeDetail.detailInput['detailField']}" />
- <h:outputText />
- <h:outputText
- value="#{piece['value']}" />
- <p:inputTextarea
- value="#{manageWarrantyTypeDetail.detailInput['detailValue']}"
- rows="3"
- cols="40" />
- <h:outputText />
- <h:outputText />
- <h:panelGrid columns="3">
- <j:authorize task="addWarrantyTypeDetail">
- <p:commandButton value="#{piece['save']}"
- actionListener="#{manageWarrantyTypeDetail.doAdd()}"
- update="grid" />
- </j:authorize>
- <p:commandButton id="backBtn"
- value="#{piece['back']}" ajax="false"
- action="#{manageWarrantyTypeDetail.doBack()}" immediate="true" />
- </h:panelGrid>
- </h:panelGrid>
- <p:dataTable id="grid"
- value="#{manageWarrantyTypeDetail.model}" lazy="true"
- var="gridItem" rowKey="#{gridItem['id']}" paginator="true" rows="10"
- paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
- rowsPerPageTemplate="5,10,15">
- <p:column style="width:200px"
- headerText="#{piece['action']}">
- <j:authorize task="removeWarrantyTypeDetail">
- <p:commandLink id="btnRemove" icon="ui-icon-trash"
- actionListener="#{manageWarrantyTypeDetail.markAsRemove(gridItem)}"
- oncomplete="confirmDlg.show()">
- <h:graphicImage library="images" name="common/delete.png"
- title="#{piece['remove']}" />
- </p:commandLink>
- </j:authorize>
- </p:column>
- <p:column
- headerText="#{piece['field']}">
- <h:outputText
- value="#{gridItem['detailField']}" />
- </p:column>
- <p:column
- headerText="#{piece['value']}">
- <h:outputText
- value="#{gridItem['detailValue']}" />
- </p:column>
- </p:dataTable>
- </p:panel>
- </p:outputPanel>
- </j:authorize>
- <p:confirmDialog id="confirmDialog"
- message="#{piece['areYouSure']}"
- widgetVar="confirmDlg"
- header="#{piece['deleteItem']}"
- severity="alert">
- <p:panelGrid columns="2">
- <h:outputText />
- <p:panelGrid columns="2">
- <p:commandButton
- actionListener="#{manageWarrantyTypeDetail.doRemove()}"
- update=":rootform:grid"
- value="#{piece['yes']}"
- oncomplete="confirmDlg.hide()" />
- <p:commandButton type="button"
- value="#{piece['no']}"
- onclick="confirmDlg.hide()" />
- </p:panelGrid>
- </p:panelGrid>
- </p:confirmDialog>
- <p:outputPanel id="errorPanel"
- rendered="#{manageWarrantyTypeDetail.warrantyTypeId==NULL}">
- <p:panel>
- <h:panelGrid columns="1">
- <h:outputText
- value="#{piece['invalidWarrantyTypeId']}"
- style="color:Red" />
- <p:commandButton id="btnBack23" ajax="false"
- value="#{piece['back']}"
- action="#{manageWarrantyTypeDetail.doBack()}" immediate="true" />
- </h:panelGrid>
- </p:panel>
- </p:outputPanel>
- </ui:define>
- </ui:composition>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement