set-password.xhtml 2.26 KB
Newer Older
michael.simon's avatar
michael.simon committed
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
<?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: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"
	xmlns:p="http://primefaces.org/ui">
<head>
<title></title>
</head>
<body>
<f:view>
	<f:metadata>
		<f:viewParam name="registryId" value="#{setServicePasswordBean.id}"/>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{setServicePasswordBean.preRenderView}" />
	</f:metadata>

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

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

		<div id="panelInline">
			<p:panel header="#{messages.set_password}">
29
				<div style="margin-bottom: 8px;">
30
31
					<h:outputText value="#{messages.service_password_help_change}" escape="false" />
				</div>
michael.simon's avatar
michael.simon committed
32
33
				<p:messages id="messageBox" for="pw_error" showDetail="true" />
				<p:panelGrid id="baseData" columns="2">
34
				    <h:outputLabel for="password1" value="#{messages.password}:" />
michael.simon's avatar
michael.simon committed
35
36
				    <h:inputSecret id="password1" redisplay="true" size="50" value="#{setServicePasswordBean.password1}" />
	
37
				    <h:outputLabel for="password2" value="#{messages.password_retype}:" />
michael.simon's avatar
michael.simon committed
38
39
				    <h:inputSecret id="password2" redisplay="true" size="50" value="#{setServicePasswordBean.password2}" />
				</p:panelGrid>			
michael.simon's avatar
michael.simon committed
40
41
42
43
44
45
46
47
48
				<div>
					<p:commandButton id="save" action="#{setServicePasswordBean.save()}" value="#{messages.save}"
						update="messageBox,baseData" />
				</div>
			</p:panel>
		</div>
		
		<div id="panelInline" style="margin-top: 8px;">
			<p:panel header="#{messages.delete_password}">
49
				<div style="margin-bottom: 8px;">
50
51
					<h:outputText value="#{messages.service_password_help_delete}" escape="false" />
				</div>
michael.simon's avatar
michael.simon committed
52
53
54
55
				<div>
					<p:commandButton id="delete" action="#{setServicePasswordBean.deleteServicePassword()}" value="#{messages.delete}"
						update="messageBox,baseData" />
				</div>
michael.simon's avatar
michael.simon committed
56
57
			</p:panel>
		</div>
michael.simon's avatar
michael.simon committed
58

michael.simon's avatar
michael.simon committed
59
60
61
62
63
64
	</h:form>
	</ui:define>
</ui:composition>
</f:view>
</body>
</html>