Skip to content
Snippets Groups Projects
Forked from DM / dm-docs
261 commits behind, 493 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
edit.xhtml 2.62 KiB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
    
    <title>Policy Property Edit</title>
    
    <h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}"/>
    <h:outputScript library="js/common" name="noBack.js" rendered="#{policyPropertyController.notSelected()}" />
    <h:outputScript library="js/common" name="forwardNotAuthorized.js" rendered="#{!loginController.admin}"/>
    <ui:composition template="../../templates/dmViewTemplate.xhtml">
        <ui:define name="middleCenter">
            <h:form id="editPolicyPropertyForm">

                <div class="middleCenterLeftContent">
                    <div class="pageTitle">
                        <h1>Policy Type: #{policyTypeController.current.name} <br/>
                            Policy Property: #{policyPropertyController.current.name}</h1>
                    </div>

                    <ui:param name="policyPropertyObject" value="#{policyPropertyController.selected}"/>
                    <p:accordionPanel multiple="true" activeIndex="0,1" >
                        <p:tab title="Policy Property Description">
                            <div class="middleCenterLeftContent">
                                <ui:include src="private/policyPropertyEditPanelGrid.xhtml"/>
                            </div>
                        </p:tab>

                        <p:tab title="Allowed Policy Values">                
                             <ui:include src="../allowedPolicyValue/private/allowedPolicyValueListEditDataTable.xhtml"/>
                        </p:tab>
                    </p:accordionPanel>

                    <p/>

                    <div class="actionButton">
                        <p:commandButton action="#{policyPropertyController.update()}" actionListener="#{allowedPolicyValueController.update()}" value="Save" alt="Save" icon="ui-icon-check" update="@form"/>
                        <p:commandButton action="#{policyPropertyController.prepareList()}" immediate="true" value="Return" alt="Return" icon="ui-icon-arrowreturnthick-1-w"/>
                    </div>
                </div>

            </h:form>

        </ui:define>
    </ui:composition>
</ui:composition>