Skip to content
Snippets Groups Projects
Forked from DM / dm-docs
261 commits behind, 257 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
view.xhtml 2.49 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 View</title>

    <h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}"/>
    <h:outputScript library="js/common" name="noBack.js" rendered="#{policyPropertyController.notSelected()}" />

    <ui:composition template="../../templates/dmViewTemplate.xhtml">
        <ui:define name="middleCenter">
            <h:form id="viewPolicyPropertyForm">

                <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/policyPropertyViewPanelGrid.xhtml"/>
                            </div>
                        </p:tab>

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

                    <p/>

                    <div class="actionButton">
                        <p:commandButton action="#{policyPropertyController.prepareEdit(policyPropertyObject)}" rendered="#{loginController.admin}" value="Edit" alt="Edit" icon="ui-icon-pencil"/>
                        <p:commandButton action="#{policyPropertyController.prepareList()}" value="Return" alt="Return" icon="ui-icon-arrowreturnthick-1-w"/>
                    </div>          
                </div>
            </h:form>

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

</ui:composition>