Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • DM/dm-docs
  • hammonds/dm-docs
  • hparraga/dm-docs
3 results
Show changes
Showing
with 896 additions and 0 deletions
window.history.forward();
<!--<?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">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/dm/resources/css/portal.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="top" class="topContent">
<div id="topLeft" class="topLeftContent">
<ui:insert name="topLeft">
<h:graphicImage alt="ANL Logo" url="/resources/images/AnlLogo167x75.png"/>
</ui:insert>
</div>
<div>
<div id="topRight" class="topRightContent">
<ui:insert name="topRight">
<h:outputText value="Administrator" rendered="#{loginController.admin}"/>
</ui:insert>
</div>
<div id="topCenter" class="topCenterContent">
<ui:insert name="topCenter">
<h1>Data Management System Portal</h1>
</ui:insert>
</div>
</div>
</div>
<ui:fragment>
<div id="menu" class="menuContent">
<div id="menuLeft" class="menuLeftContent">
<ui:insert name="menuLeft">
<p:menubar/>
</ui:insert>
</div>
<div>
<div id="menuRight" class="menuRightContent">
<ui:insert name="menuRight">
</ui:insert>
</div>
<div id="menuCenter" class="menuCenterContent">
<ui:insert name="menuCenter">
<h:form prependId="false">
<p:menubar>
<p:menuitem value="Home" url="/views/home.xhtml" icon="ui-icon-home"/>
<p:menuitem value="Experiments" url="/views/experiment/list.xhtml"/>
<p:menuitem value="Users" url="/views/userInfo/list.xhtml"/>
<p:menuitem value="Experiment Types" url="/views/experimentType/list.xhtml"/>
<p:menuitem value="Policies" url="/views/policyType/list.xhtml"/>
<p:menuitem value="Role Types" url="/views/roleType/list.xhtml"/>
<p:menuitem value="Logout" action="#{loginController.logout()}" icon="ui-icon-close"/>
</p:menubar>
</h:form>
</ui:insert>
</div>
</div>
</div>
<div id="middle" class="middleContent">
<div id="middleLeft" class="middleLeftContent">
<ui:insert name="middleLeft">
</ui:insert>
</div>
<div id="middleRight" class="middleRightContent">
<ui:insert name="middleRight">
</ui:insert>
</div>
<div id="middleCenter" class="middleCenterContent">
<ui:insert name="middleCenter">
</ui:insert>
</div>
</div>
</ui:fragment>
<ui:fragment>
<div id="bottom" class="bottomContent">
<ui:insert name="bottom">
<h:form prependId="false">
<p:growl id="messages" showDetail="true" autoUpdate="true"/>
</h:form>
</ui:insert>
</div>
</ui:fragment>
<h:form id="loginForm">
<p:dialog id="loginDialog" styleClass="dialog" header="Login" widgetVar="loginDialog">
<h:panelGrid styleClass="loginInput">
<div class="dialog">
<div>
<p:inputText id="username" value="#{loginController.username}" title="Username"/>
<p:watermark for="username" value="Username"/>
<p:password id="password" value="#{loginController.password}" title="Password"/>
<p:watermark for="password" value="Password"/>
</div>
<f:facet name="footer">
<p:commandButton id="loginButton" value="Login" action="#{loginController.login}" oncomplete="loginDialog.hide()"/>
</f:facet>
</div>
</h:panelGrid>
</p:dialog>
</h:form>
</h:body>
</html>
\ No newline at end of file
<?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>Allowed Policy Value Create</title>
<h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}"/>
<h:outputScript library="js/common" name="forwardNotAuthorized.js" rendered="#{!loginController.admin}"/>
<ui:composition template="../../templates/dmViewTemplate.xhtml">
<ui:define name="middleCenter">
<div class="pageTitle">
<h1>Policy Type: #{policyTypeController.current.name} <br/>
Policy Property: #{policyPropertyController.current.name} <br/>
Add Allowed Policy Value</h1>
</div>
<h:form id="addAllowedPolicyValueForm">
<ui:include src="private/allowedPolicyValueCreatePanelGrid.xhtml"/>
<p/>
<div class="actionButton">
<p:commandButton action="#{policyPropertyController.updateAllowedValueList()}" actionListener="#{allowedPolicyValueController.create()}" value="Save" alt="Save" icon="ui-icon-check" update="@form"/>
<p:commandButton action="#{allowedPolicyValueController.prepareList()}" immediate="true" value="Cancel" alt="Cancel" icon="ui-icon-cancel"/>
</div>
</h:form>
</ui:define>
</ui:composition>
</ui:composition>
<?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:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:param name="allowedPolicyValueObject" value="#{allowedPolicyValueController.selected}"/>
<p:panelGrid columns="2" styleClass="createEntityDetails">
<h:outputLabel for="policyValue" value="Policy Value" styleClass="entityDataLabel"/>
<h:inputText id="policyValue" value="#{allowedPolicyValueObject.policyValue}" title="Policy Value" styleClass="entityDataInputText"/>
<h:outputLabel for="description" value="Description" styleClass="entityDataLabel"/>
<h:inputText id="description" value="#{allowedPolicyValueObject.description}" title="Description" styleClass="entityDataInputText"/>
</p:panelGrid>
</ui:composition>
<?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:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<p:confirmDialog id="allowedPolicyValueDestroyDialog" message="Delete policy property #{allowedPolicyValueController.getCurrentEntityInstanceName()}?"
header="Delete Allowed Policy Value" severity="alert" widgetVar="allowedPolicyValueDestroyDialogWidget"
styleClass="dialog">
<ui:param name="deletedValue" value="#{allowedPolicyValueController.current}" />
<p:commandButton value="Yes" oncomplete="allowedPolicyValueDestroyDialogWidget.hide()" action="#{policyPropertyController.updateAllowedValueList()}" actionListener="#{allowedPolicyValueController.destroy()}" update="@form"/>
<p:commandButton value="No" onclick="PF('allowedPolicyValueDestroyDialogWidget').hide()" type="button" />
</p:confirmDialog>
</ui:composition>
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<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">
<div class="actionButton">
<p:commandButton id="allowedPolicyValueViewResetFiltersButton" action="#{policyPropertyController.prepareView()}" actionListener="#{allowedPolicyValueController.allowedPolicyValueInfoTable.resetList()}" alt="Clear Filters" icon="ui-icon-refresh" styleClass="actionButtonRight">
<p:tooltip for="allowedPolicyValueViewResetFiltersButton" value="Reset list filters."/>
</p:commandButton>
<p:commandButton id="allowedPolicyValueNoOp" style="visibility:hidden" value="NoOp"/>
<p:defaultCommand target="allowedPolicyValueNoOp"/>
</div>
<p:dataTable id="allowedPolicyValueListViewDataTable"
var="allowedPolicyValueViewObject"
value="#{allowedPolicyValueController.allowedPolicyValueInfoTable.listDataModel}"
filteredValue="#{allowedPolicyValueController.allowedPolicyValueInfoTable.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{allowedPolicyValueController.rows}"
binding="#{allowedPolicyValueController.allowedPolicyValueInfoTable.listDataTable}"
widgetVar="allowedPolicyValueViewListWidget"
emptyMessage="No allowed values found for this policy property." >
<p:column sortBy="#{allowedPolicyValueViewObject.policyValue}" headerText="Policy Value"
filterBy="#{allowedPolicyValueViewObject.policyValue}" filterMatchMode="contains" >
<h:outputText value="#{allowedPolicyValueViewObject.policyValue}"/>
</p:column>
<p:column sortBy="#{allowedPolicyValueViewObject.description}" headerText="Description"
filterBy="#{allowedPolicyValueViewObject.description}" filterMatchMode="contains">
<h:outputText value="#{allowedPolicyValueViewObject.description}"/>
</p:column>
</p:dataTable>
</ui:composition>
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<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">
<div class="actionButton">
<p:commandButton id="allowedPolicyValueAddButton" action="#{allowedPolicyValueController.prepareCreate()}" rendered="#{loginController.admin}" value="Add" alt="Add new Policy Property" icon="ui-icon-plus">
<p:tooltip for="allowedPolicyValueAddButton" value="Create new Policy Property."/>
</p:commandButton>
<p:commandButton id="allowedPolicyValueResetFiltersButton" action="#{policyPropertyController.prepareView()}" actionListener="#{allowedPolicyValueController.resetList()}" alt="Clear Filters" icon="ui-icon-refresh" styleClass="actionButtonRight">
<p:tooltip for="allowedPolicyValueResetFiltersButton" value="Reset list filters."/>
</p:commandButton>
<p:commandButton id="allowedPolicyValueNoOp" style="visibility:hidden" value="NoOp"/>
<p:defaultCommand target="allowedPolicyValueNoOp"/>
</div>
<p:dataTable id="allowedPolicyValueListDataTable"
var="allowedPolicyValueObject"
value="#{allowedPolicyValueController.listDataModel}"
filteredValue="#{allowedPolicyValueController.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{allowedPolicyValueController.rows}"
binding="#{allowedPolicyValueController.listDataTable}"
widgetVar="allowedPolicyValueListWidget"
emptyMessage="No allowed values found for this policy property." >
<p:column sortBy="#{allowedPolicyValueObject.policyValue}" headerText="Policy Value"
filterBy="#{allowedPolicyValueObject.policyValue}" filterMatchMode="contains" >
<h:inputText value="#{allowedPolicyValueObject.policyValue}" styleClass="entityDataInputTextShort"/>
</p:column>
<p:column sortBy="#{allowedPolicyValueObject.description}" headerText="Description"
filterBy="#{allowedPolicyValueObject.description}" filterMatchMode="contains">
<h:inputText value="#{allowedPolicyValueObject.description}" styleClass="entityDataInputTextShort"/>
</p:column>
<p:column headerText="Actions" >
<div class="actionLink">
<p:commandLink oncomplete="PF('allowedPolicyValueDestroyDialogWidget').show()" rendered="#{loginController.admin}" styleClass="ui-icon ui-icon-trash" title="Delete" update="@form">
<f:setPropertyActionListener value="#{allowedPolicyValueObject}" target="#{allowedPolicyValueController.current}"/>
</p:commandLink>
</div>
</p:column>
</p:dataTable>
<ui:include src="allowedPolicyValueDestroyDialog.xhtml"/>
</ui:composition>
\ No newline at end of file
<?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">
<ui:param name="entityTypeName" value="#{entityController.entityTypeName}"/>
<div class="actionButton">
<p:commandButton id="#{entityTypeName}AddButton" action="#{entityController.prepareCreate()}" rendered="#{loginController.admin}" value="Add" alt="Add new #{entityTypeName}" icon="ui-icon-plus">
<p:tooltip for="#{entityTypeName}AddButton" value="Create new #{entityController.displayEntityTypeName}."/>
</p:commandButton>
<p:commandButton id="#{entityTypeName}ResetFiltersButton" action="#{entityController.resetList()}" alt="Clear Filters" icon="ui-icon-refresh" styleClass="actionButtonRight">
<p:tooltip for="#{entityTypeName}ResetFiltersButton" value="Reset list filters."/>
</p:commandButton>
<p:commandButton id="#{entityTypeName}NoOp" style="visibility:hidden" value="NoOp"/>
<p:defaultCommand target="#{entityTypeName}NoOp"/>
</div>
</ui:composition>
<?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>Experiment Create</title>
<h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}"/>
<h:outputScript library="js/common" name="forwardNotAuthorized.js" rendered="#{!loginController.admin}"/>
<ui:composition template="../../templates/dmViewTemplate.xhtml">
<ui:define name="middleCenter">
<div class="pageTitle">
<h1>Add Experiment</h1>
</div>
<h:form id="addExperimentForm">
<ui:include src="private/experimentCreatePanelGrid.xhtml"/>
<p/>
<div class="actionButton">
<p:commandButton action="#{experimentController.create()}" value="Save" alt="Save" icon="ui-icon-check" update="@form"/>
<p:commandButton action="#{experimentController.prepareList()}" immediate="true" value="Cancel" alt="Cancel" icon="ui-icon-cancel"/>
</div>
</h:form>
</ui:define>
</ui:composition>
</ui:composition>
<?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>Experiment Edit</title>
<h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}" />
<h:outputScript library="js/common" name="noBack.js" rendered="#{experimentController.notSelected()}" />
<h:outputScript library="js/common" name="forwardNotAuthorized.js" rendered="#{!loginController.admin and experimentController.isRestricted()}"/>
<ui:composition template="../../templates/dmViewTemplate.xhtml" >
<ui:define name="middleCenter" >
<h:form id="editExperimentForm">
<div class="pageTitle">
<h1>Edit Experiment #{experimentController.current.name}</h1>
</div>
<p:accordionPanel multiple="true" dynamic="true" cache="false" activeIndex="0,1,2" >
<p:tab title="Experiment Properties" id="detailsTab" >
<div class="middleCenterLeftContent">
<ui:include src="private/experimentEditPanelGrid.xhtml"/>
</div>
</p:tab>
<p:tab title="Experiment Policies">
<ui:include src="private/experimentPoliciesEditSelection.xhtml"/>
</p:tab>
<p:tab title="Experiment Users" id="usersTab">
<ui:include src="private/experimentUsersEditDataTable.xhtml"/>
</p:tab>
</p:accordionPanel>
<p/>
<div class="actionButton">
<p:commandButton action="#{experimentController.update()}" actionListener="#{experimentController.updateRemovedExperimentRoles()}" value="Save" alt="Save" icon="ui-icon-check"/>
<p:commandButton action="#{experimentController.prepareList()}" immediate="true" value="Return" alt="Return" icon="ui-icon-arrowreturnthick-1-w"/>
</div>
<ui:include src="private/experimentUserRemoveDialog.xhtml" />
<ui:include src="private/experimentPolicyRemoveDialog.xhtml" />
</h:form>
</ui:define>
</ui:composition>
</ui:composition>
<?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>Experiments List</title>
<h:outputScript library="js/common" name="forwardNotLoggedin.js" rendered="#{!loginController.loggedIn}"/>
<ui:composition template="../../templates/dmViewTemplate.xhtml">
<ui:define name="middleCenter">
<div class="pageTitle">
<h1>Experiments</h1>
</div>
<h:form id="viewExperimentListForm">
<ui:param name="entityController" value="#{experimentController}"/>
<ui:include src="../common/commonListActionButtons.xhtml"/>
<h:panelGroup>
<ui:include src="private/experimentListDataTable.xhtml"/>
</h:panelGroup>
<ui:include src="private/experimentDestroyDialog.xhtml"/>
</h:form>
</ui:define>
</ui:composition>
</ui:composition>
<?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:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:param name="experimentObject" value="#{experimentController.selected}"/>
<p:panelGrid columns="2" >
<h:outputLabel for="name" value="Name" styleClass="entityDataEmphasizedLabel"/>
<h:inputText id="name" value="#{experimentObject.name}" title="Name" styleClass="entityDataEmphasizedInputText"/>
<h:outputLabel for="experimentType" value="Experiment Type" styleClass="entityDataLabel"/>
<p:selectOneMenu id="experimentType" value="#{experimentObject.experimentType}" styleClass="entityDataInputText">
<f:selectItem itemLabel="Select Type" itemValue="" noSelectionOption="true" />
<f:selectItems value="#{experimentTypeController.getAvailableItems()}"
var="experimentType"
itemValue="#{experimentType}"
itemLabel="#{experimentType.name}"
itemDescription="#{experimentType.description}" />
</p:selectOneMenu>
<h:outputLabel for="description" value="Description" styleClass="entityDataLabel"/>
<h:inputText id="description" value="#{experimentObject.description}" title="Description" styleClass="entityDataInputText"/>
<h:outputLabel for="startDate" value="Start Date"/>
<p:calendar id="startDate" value="#{experimentObject.startDate}" mode="popup" showOn="button" pattern="#{resources.DateTimePattern}" />
<h:outputLabel for="endDate" value="End Date" />
<p:calendar id="endDate" value="#{experimentObject.endDate}" mode="popup" showOn="button" pattern="#{resources.DateTimePattern}" />
</p:panelGrid>
</ui:composition>
<?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:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<p:confirmDialog id="experimentDestroyDialog" message="Delete experiment #{experimentController.getCurrentEntityInstanceName()}?"
header="Delete Experiment" severity="alert" widgetVar="experimentDestroyDialogWidget"
styleClass="dialog">
<p:commandButton value="Yes" oncomplete="experimentDestroyDialogWidget.hide()" action="#{experimentController.destroy()}"/>
<p:commandButton value="No" onclick="PF('experimentDestroyDialogWidget').hide()" type="button" />
</p:confirmDialog>
</ui:composition>
<?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:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<ui:param name="experimentObject" value="#{experimentController.current}"/>
<ui:param name="isEditable" value="#{!experimentController.isEditable()}"/>
<p:panelGrid columns="2" >
<h:outputLabel for="name" value="Name" styleClass="entityDataEmphasizedLabel"/>
<h:outputText id="name" value="#{experimentObject.name}" title="Name" styleClass="entityDataEmphasizedText"/>
<h:outputLabel for="experimentType" value="Type" styleClass="entityDataLabel"/>
<h:outputText id="experimentType" value="#{experimentObject.experimentType.name}" title="Name" styleClass="entityDataText"/>
<h:outputLabel for="description" value="Description" styleClass="entityDataLabel"/>
<h:inputText id="description" rendered="#{isEditable}" value="#{experimentObject.description}" title="Description" styleClass="entityDataInputText"/>
<h:outputText id="description1" rendered="#{!isEditable}" value="#{experimentObject.description}" title="Description" styleClass="entityDataText"/>
<h:outputLabel for="startDate" value="Start Date" styleClass="entityDataLabel"/>
<p:calendar id="startDate" rendered="#{isEditable}" value="#{experimentObject.startDate}" mode="popup" showOn="button" pattern="#{resources.DateTimePattern}" />
<h:outputText id="startDate1" rendered="#{!isEditable}" value="#{experimentObject.startDate}" styleClass="entityDataText">
<f:convertDateTime pattern="#{resources.DateTimeZonePattern}" type="both" timeZone="#{resources.Timezone}" />
</h:outputText>
<h:outputLabel for="endDate" value="End Date" styleClass="entityDataLabel"/>
<p:calendar id="endDate" rendered="#{isEditable}" value="#{experimentObject.endDate}" mode="popup" showOn="button" pattern="#{resources.DateTimePattern}" />
<h:outputText id="endDate1" rendered="#{!isEditable}" value="#{experimentObject.endDate}" styleClass="entityDataText">
<f:convertDateTime pattern="#{resources.DateTimeZonePattern}" type="both" timeZone="#{resources.Timezone}" />
</h:outputText>
</p:panelGrid>
</ui:composition>
<?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">
<p:dataTable id="experimentListDataTable"
var="experimentObject"
value="#{experimentController.listDataModel}"
filteredValue="#{experimentController.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{experimentController.rows}"
binding="#{experimentController.listDataTable}"
widgetVar="experimentListWidget"
emptyMessage="No experiments found.">
<p:column sortBy="#{experimentObject.id}" headerText="Id" >
<h:outputText value="#{experimentObject.id}"/>
</p:column>
<p:column sortBy="#{experimentObject.name}" headerText="Name"
filterBy="#{experimentObject.name}" filterMatchMode="contains" >
<h:outputText value="#{experimentObject.name}"/>
</p:column>
<p:column sortBy="#{experimentObject.experimentType.name}" headerText="Type"
filterBy="#{experimentObject.experimentType.name}" filterMatchMode="exact" >
<h:outputText value="#{experimentObject.experimentType.name}"/>
</p:column>
<p:column sortBy="#{experimentObject.description}" headerText="Description"
filterBy="#{experimentObject.description}" filterMatchMode="contains">
<h:outputText value="#{experimentObject.description}"/>
</p:column>
<p:column sortBy="#{experimentObject.startDate}" headerText="Start Date"
filterBy="#{experimentObject.startDate}" filterMatchMode="contains" >
<h:outputText value="#{experimentObject.startDate}">
<f:convertDateTime pattern="#{resources.DateTimeZonePattern}" type="both" timeZone="#{resources.Timezone}"/>
</h:outputText>
</p:column>
<p:column sortBy="#{experimentObject.endDate}" headerText="End Date"
filterBy="#{experimentObject.endDate}" filterMatchMode="contains" >
<h:outputText value="#{experimentObject.endDate}">
<f:convertDateTime pattern="#{resources.DateTimeZonePattern}" type="both" timeZone="#{resources.Timezone}"/>
</h:outputText>
</p:column>
<p:column headerText="Actions" >
<div class="actionLink">
<p:commandLink action="#{experimentController.prepareView(experimentObject)}" styleClass="ui-icon ui-icon-info" title="View">
</p:commandLink>
<p:commandLink action="#{experimentController.prepareEdit(experimentObject)}" rendered="#{loginController.admin or experimentController.canEditExperiment(experimentObject)}" styleClass="ui-icon ui-icon-pencil" title="Edit">
<f:setPropertyActionListener value="#{experimentObject}" target="#{experimentController.current}"/>
</p:commandLink>
<p:commandLink oncomplete="PF('experimentDestroyDialogWidget').show()" rendered="#{loginController.admin or experimentController.canDeleteExperiment(experimentObject)}" styleClass="ui-icon ui-icon-trash" title="Delete" update="@form">
<f:setPropertyActionListener value="#{experimentObject}" target="#{experimentController.current}"/>
</p:commandLink>
</div>
</p:column>
</p:dataTable>
</ui:composition>
<?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">
<ui:include src="experimentPolicyAddDialog.xhtml" />
<ui:param name="isAdmin" value="#{loginController.admin}" />
<p:commandButton id="experimentPolicyAddButton" value="Add" onclick="PF('experimentPolicyAddDialogWidget').show();" rendered="true" icon="ui-icon-plus" >
<p:tooltip for="experimentPolicyAddButton" value="Add new properties." />
</p:commandButton>
<p:commandButton id="addPoliciesNoOp" style="visibility:hidden" value="NoOp"/>
<p:defaultCommand target="addPoliciesNoOp"/>
<p:dataTable id="experimentPoliciesListDataTable"
var="experimentPolicyObject"
value="#{experimentController.experimentPolicyEditTable.listDataModel}"
filteredValue="#{experimentController.experimentPolicyEditTable.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{experimentController.rows}"
binding="#{experimentController.experimentPolicyEditTable.listDataTable}"
widgetVar="policyListWidget"
emptyMessage="No policies found.">
<p:columnGroup type="header" >
<p:column headerText="Property" />
<p:column headerText="Value" />
<p:column headerText="Units" />
<p:column headerText="Description" />
<p:column headerText="Actions" />
</p:columnGroup>
<p:subTable var="propertyValue" value="#{experimentPolicyObject.getExperimentPolicyPropertyValueList()}" >
<f:facet name="header" >
<h:outputText value="#{experimentPolicyObject.policyType.name} Policy"/>
</f:facet>
<p:column >
<h:outputText value="#{propertyValue.getPolicyProperty().name}"/>
</p:column>
<p:column>
<h:inputText id="propertyValue" value="#{propertyValue.policyPropertyValue}" rendered="#{!policyPropertyController.hasAllowedValues(propertyValue.getPolicyProperty())}" styleClass="entityDataTextShort"/>
<p:selectOneMenu id="propertyValueSelect" value="#{propertyValue.policyPropertyValue}" styleClass="entityDataText" rendered="#{policyPropertyController.hasAllowedValues(propertyValue.getPolicyProperty())}">
<f:selectItems value="#{propertyValue.getPolicyProperty().allowedPolicyValueList}"
var="allowedPolicyValue"
itemValue="#{allowedPolicyValue.policyValue}"
itemLabel="#{allowedPolicyValue.policyValue}" />
</p:selectOneMenu>
<p:tooltip for="propertyValue" value="Modify property value" />
</p:column>
<p:column>
<h:outputText value="#{propertyValue.getPolicyProperty().units}"/>
</p:column>
<p:column>
<h:outputText value="#{propertyValue.getPolicyProperty().description}"/>
</p:column>
<p:column headerText="Actions" >
<div class="actionLink">
<p:commandLink oncomplete="PF('experimentPolicyRemoveDialogWidget').show()" rendered="#{loginController.admin or experimentController.canDeleteExperiment(experimentController.current)}" styleClass="ui-icon ui-icon-trash" title="Remove" update="@form">
<f:setPropertyActionListener value="#{propertyValue}" target="#{experimentController.experimentPropertyToDelete}"/>
</p:commandLink>
</div>
</p:column>
</p:subTable>
</p:dataTable>
</ui:composition>
<?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">
<p/>
<p:dataTable id="experimentPoliciesListDataTable"
var="experimentPolicyObject"
value="#{experimentController.experimentPolicyListTable.listDataModel}"
filteredValue="#{experimentController.experimentPolicyListTable.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{experimentController.rows}"
binding="#{experimentController.experimentPolicyListTable.listDataTable}"
widgetVar="policyListWidget"
emptyMessage="No policies found.">
<p:columnGroup type="header" >
<p:column headerText="Property" />
<p:column headerText="Value" />
<p:column headerText="Units" />
<p:column headerText="Description" />
<p:column headerText="Last Modified By" />
<p:column headerText="Last Modified Date" />
</p:columnGroup>
<p:subTable var="propertyValue" value="#{experimentPolicyObject.getExperimentPolicyPropertyValueList()}" >
<f:facet name="header" >
<h:outputText value="#{experimentPolicyObject.policyType.name} Policy"/>
</f:facet>
<p:column >
<h:outputText value="#{propertyValue.getPolicyProperty().name}"/>
</p:column>
<p:column>
<h:outputText value="#{propertyValue.policyPropertyValue}"/>
</p:column>
<p:column>
<h:outputText value="#{propertyValue.getPolicyProperty().units}"/>
</p:column>
<p:column>
<h:outputText value="#{propertyValue.getPolicyProperty().description}"/>
</p:column>
<p:column>
<h:outputText value="#{propertyValue.modifiedBy}"/>
</p:column>
<p:column>
<h:outputText id="startDate" value="#{propertyValue.modifiedDate}" styleClass="entityDataText">
<f:convertDateTime pattern="#{resources.DatePattern}" type="date" />
</h:outputText>
</p:column>
</p:subTable>
</p:dataTable>
</ui:composition>
<?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:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<p:dialog id="experimentPolicyAddDialog"
header="Add experiment policies" widgetVar="experimentPolicyAddDialogWidget" dynamic="true" styleClass="dialog" width="800">
<p:dataTable id="addExperimentPolicyList"
var="missingPolicy"
value="#{experimentController.noPolicyValueTable.listDataModel}"
filteredValue="#{experimentController.noPolicyValueTable.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="#{experimentController.rows}"
binding="#{experimentController.noPolicyValueTable.listDataTable}"
widgetVar="experimentPolicyAddTableWidgetVar"
selection="#{experimentController.getNoPolicyValueTable().selectedObjectList}"
rowKey="#{missingPolicy.id}"
rowSelectMode="true"
selectionMode="multiple"
emptyMessage="No policies found.">
<p:column headerText="PolicyType">
<h:outputText value="#{missingPolicy.getPolicyProperty().getPolicyType().name}"/>
</p:column>
<p:column headerText="Property" >
<h:outputText value="#{missingPolicy.getPolicyProperty().name}"/>
</p:column>
<p:column headerText="Value">
<h:inputText id="missingPolicy" value="#{missingPolicy.value}" rendered="#{!missingPolicy.hasAllowedValues()}" styleClass="entityDataTextShort"/>
<p:selectOneMenu id="missingPolicySelect" value="#{missingPolicy.value}" styleClass="entityDataText" rendered="#{missingPolicy.hasAllowedValues()}">
<f:selectItems value="#{missingPolicy.getPolicyProperty().allowedPolicyValueList}"
var="allowedPolicyValue"
itemValue="#{allowedPolicyValue.policyValue}"
itemLabel="#{allowedPolicyValue.policyValue}" />
</p:selectOneMenu>
<p:tooltip for="missingPolicy" value="Modify property value" />
</p:column>
<p:column headerText="Units">
<h:outputText value="#{missingPolicy.getPolicyProperty().units}"/>
</p:column>
<p:column headerText="Description">
<h:outputText value="#{missingPolicy.getPolicyProperty().description}"/>
</p:column>
<f:facet name="footer">
<p:commandButton value="Add" action="#{experimentController.addExperimentPolicyPropertyValues()}" oncomplete="PF('experimentPolicyAddDialogWidget').hide()" update="@form"/>
<p:commandButton value="Clear Selection" onclick="PF('experimentPolicyAddTableWidgetVar').unselectAllRows()" />
</f:facet>
</p:dataTable>
</p:dialog>
</ui:composition>
<?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:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<p:confirmDialog id="experimentPolicyRemoveDialog" message="Remove policy #{experimentController.getRemovedPolicyName()} from Experiment?"
header="Remove Policy" severity="alert" widgetVar="experimentPolicyRemoveDialogWidget"
styleClass="dialog">
<p:commandButton value="Yes" oncomplete="PF('experimentPolicyRemoveDialogWidget').hide()" action="#{experimentController.updateRemovedExperimentPolicy()}" actionListener="#{experimentController.removePolicy()}" update="@form"/>
<p:commandButton value="No" onclick="PF('experimentPolicyRemoveDialogWidget').hide()" type="button" />
</p:confirmDialog>
</ui:composition>
<?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:p="http://primefaces.org/ui"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<p:dialog id="experimentUserAddDialog"
header="Add experiment users" widgetVar="experimentUserAddDialogWidget" dynamic="true" styleClass="dialog" width="1000">
<div class="actionButton">
<p:commandButton id="ResetFilters" actionListener="#{experimentController.noExperimentUsersTypeTable.resetFilterList()}" alt="Clear Filters" icon="ui-icon-refresh" styleClass="actionButtonRight" oncomplete="PF('experimentUserAddDialogWidget').show()" update="experimentUserAddDialog" >
<p:tooltip for="ResetFilters" value="Reset list filters."/>
</p:commandButton>
</div>
<div>
<p:dataTable id="addExperimentUserList"
var="experimentUser"
value="#{experimentController.noExperimentUsersTypeTable.listDataModel}"
filteredValue="#{experimentController.noExperimentUsersTypeTable.filteredObjectList}"
paginator="true"
paginatorAlwaysVisible="false"
rows="10"
binding="#{experimentController.noExperimentUsersTypeTable.listDataTable}"
selection="#{experimentController.noExperimentUsersTypeTable.selectedObjectList}"
rowKey="#{experimentUser.username}"
widgetVar="experimentUserAddTableWidgetVar"
emptyMessage="No users to add."
rowSelectMode="true"
selectionMode="multiple" >
<p:column sortBy="#{experimentUser.badge}" headerText="Badge"
filterBy="#{experimentUser.badge}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.badge}"/>
</p:column>
<p:column sortBy="#{experimentUser.username}" headerText="Username"
filterBy="#{experimentUser.username}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.username}"/>
</p:column>
<p:column sortBy="#{experimentUser.lastName}" headerText="Last Name"
filterBy="#{experimentUser.lastName}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.lastName}"/>
</p:column>
<p:column sortBy="#{experimentUser.firstName}" headerText="First Name"
filterBy="#{experimentUser.firstName}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.firstName}"/>
</p:column>
<p:column sortBy="#{experimentUser.email}" headerText="Email"
filterBy="#{experimentUser.email}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.email}"/>
</p:column>
<p:column sortBy="#{experimentUser.globusUsername}" headerText="Globus Username"
filterBy="#{experimentUser.globusUsername}" filterMatchMode="contains" >
<h:outputText value="#{experimentUser.globusUsername}"/>
</p:column>
<f:facet name="footer">
<p:commandButton value="Add" action="#{experimentController.addExperimentUser()}" oncomplete="PF('experimentUserAddDialogWidget').hide()" update="@form"/>
<p:commandButton value="Clear Selection" onclick="PF('experimentUserAddTableWidgetVar').unselectAllRows()" />
</f:facet>
</p:dataTable>
</div>
</p:dialog>
</ui:composition>