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

    <ui:define name="middleCenter">
        <h:form id="viewExperimentForm">

            <div class="middleCenterLeftContent">
                <div class="pageTitle">
                    <h1>Experiment Details</h1>
                </div>

                <ui:include src="experimentViewPanelGrid.xhtml"/>
                
                <p/>
                    <c:set var="experimentObject" value="#{experimentController.selected}"/>
                <c:set var="isEntityWriteable" value="#{loginController.loggedIn}"/>
                <div class="actionButton">
                    <p:commandButton action="#{experimentController.prepareEdit(experimentObject)}" rendered="#{isEntityWriteable}" value="Edit" alt="Edit" icon="ui-icon-pencil"/>
                    <p:commandButton onclick="PF('experimentDestroyDialogWidget').show();" rendered="#{loginController.loggedIn}" value="Delete" alt="Delete" icon="ui-icon-trash">
                        <f:setPropertyActionListener value="#{experimentObject}" target="#{experimentController.current}"/>
                    </p:commandButton>  
                    <p:commandButton action="#{experimentController.prepareList()}" value="Done" alt="Done" icon="ui-icon-arrowreturnthick-1-w"/>
                </div>

                <ui:include src="experimentDestroyDialog.xhtml"/>
                
            </div>

        </h:form>

    </ui:define>

</ui:composition>