index.xhtml 2.75 KB
Newer Older
michael.simon's avatar
michael.simon committed
1
2
3
4
5
6
7
<!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:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:bw="http://www.scc.kit.edu/bwfacelets"
michael.simon's avatar
michael.simon committed
8
9
	xmlns:p="http://primefaces.org/ui"
	xmlns:of="http://omnifaces.org/functions">
michael.simon's avatar
michael.simon committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<head>
<title></title>
</head>
<body>
<f:view>
	<f:metadata>
		<f:viewParam name="serviceId" value="#{approvalListBean.serviceId}"/>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{approvalListBean.preRenderView}" />
	</f:metadata>

<ui:composition template="/template/default.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">
25
26
	<h:form id="form">

michael.simon's avatar
michael.simon committed
27
28
		<div id="panelInline">
			<p:panel header="#{messages.new_approvals}">
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
67
68
69
70
71
72
73
				<p:dataTable id="registeredTable" var="registry" 
						value="#{approvalListBean.list}" style="width:auto;" 
						paginator="true" lazy="true" rows="15">
					<p:column sortBy="#{registry.id}" style="width: 48px;">
						<f:facet name="header">
							<h:outputText value="#{messages.id}" />
						</f:facet>
						<h:outputText value="#{registry.id}" />
					</p:column>
					<p:column sortBy="#{registry.user.eppn}" filterBy="#{registry.user.eppn}">
						<f:facet name="header">
							<h:outputText value="#{messages.eppn}" />
						</f:facet>
						<h:outputText value="#{registry.user.eppn}" />
					</p:column>
					<p:column sortBy="#{registry.user.surName}" filterBy="#{registry.user.surName}">
						<f:facet name="header">
							<h:outputText value="#{messages.sur_name}" />
						</f:facet>
						<h:outputText value="#{registry.user.surName}" />
					</p:column>
					<p:column sortBy="#{registry.user.givenName}" filterBy="#{registry.user.givenName}">
						<f:facet name="header">
							<h:outputText value="#{messages.given_name}" />
						</f:facet>
						<h:outputText value="#{registry.user.givenName}" />
					</p:column>
					<p:column sortBy="#{registry.agreedTime}">
						<f:facet name="header">
							<h:outputText value="#{messages.registered_time}" />
						</f:facet>
						<h:outputText value="#{of:formatDate(registry.agreedTime, 'dd.MM.yyyy HH:mm')}" />
					</p:column>
				 	<p:column style="width: 48px;">
						<f:facet name="header">
							<h:outputText value="#{messages.action}" />
						</f:facet>
						<h:link outcome="approve-user.xhtml" value="#{messages.edit}" >
		      				<f:param name="id" value="#{registry.id}"/>
		    			</h:link>
					</p:column>
				</p:dataTable>

			</p:panel>
		</div>
michael.simon's avatar
michael.simon committed
74

75
	</h:form>
michael.simon's avatar
michael.simon committed
76
77
78
79
80
	</ui:define>
</ui:composition>
</f:view>
</body>
</html>