Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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">
<f:metadata>
<f:event type="preRenderComponent" listener="#{experimentStationController.processViewRequestParams}"/>
</f:metadata>
<title>Station View</title>
<ui:composition template="../../templates/dmViewTemplate.xhtml">
<ui:define name="middleCenter">
<h:form id="viewStationForm">
<ui:param name="entityController" value="#{experimentStationController}"/>
<ui:param name="stationObject" value="#{experimentStationController.current}"/>
<p:accordionPanel multiple="true" activeIndex="0,1,2" >
<p:tab title="Station Data">
<div class="middleCenterLeftContent">
<ui:include src="private/stationViewPanelGrid.xhtml"/>
<p/>
<ui:param name="stationObject" value="#{experimentStationController.selected}"/>
<div class="actionButton">
<p:commandButton action="#{experimentStationController.prepareEdit(stationObject)}" rendered="#{loginController.canManageStation(stationObject)}" value="Edit" alt="Edit" icon="ui-icon-pencil"/>
<p:commandButton onclick="PF('stationDestroyDialogWidget').show();" rendered="#{loginController.admin}" value="Delete" alt="Delete" icon="ui-icon-trash">
<f:setPropertyActionListener value="#{stationObject}" target="#{experimentStationController.current}"/>
</p:commandButton>
<p:commandButton action="#{experimentStationController.followBreadcrumbOrPrepareList()}" value="Return" alt="Return" icon="ui-icon-arrowreturnthick-1-w"/>
</div>
</div>
</p:tab>
<p:tab title="Station Experiments">
<div class="middleCenterLeftContent">
<ui:include src="private/stationExperimentListDataTable.xhtml"/>
</div>
</p:tab>
<p:tab title="Station Managers">
<div class="middleCenterLeftContent">
<ui:include src="private/stationManagerListDataTable.xhtml"/>
</div>
</p:tab>
</p:accordionPanel>
<div class="actionButton">
<p:commandButton action="#{experimentStationController.followBreadcrumbOrPrepareList()}" value="Return" alt="Return" icon="ui-icon-arrowreturnthick-1-w"/>
</div>
<ui:include src="private/stationDestroyDialog.xhtml"/>
</h:form>
<h:outputScript library="js" name="common/forwardNotLoggedIn.js" rendered="#{!loginController.loggedIn}"/>
<h:outputScript library="js" name="common/forwardHome.js" rendered="#{!experimentStationController.entitySelected}"/>
</ui:define>
</ui:composition>
</ui:composition>