This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
password_reset.xhtml
58 lines (56 loc) · 2.81 KB
/
password_reset.xhtml
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
<!DOCTYPE composition 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:s="http://jboss.org/schema/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
template="../WEB-INF/template/template_nobanner.xhtml">
<ui:define name="page_title">#{msgs['jsf.ResetPassword']}</ui:define>
<ui:define name="center_content">
<div class="header__logo-only">
<s:link view="/home.xhtml" propagation="none" id="home" tabindex="1">
<img src="#{applicationConfiguration.getWebAssets('img/logo/logo.svg')}"
alt="Zanata"/>
</s:link>
</div>
<div class="g--centered">
<div class="g__item l--constrain-small">
<div class="l--push-v-1">
<a4j:outputPanel ajaxRendered="true" layout="block">
<h:messages id="messages" globalOnly="true"
styleClass="list--no-bullets"
errorClass="message--danger l--push-bottom-half"
infoClass="message--highlight l--push-bottom-half"
warnClass="message--warning l--push-bottom-half"
rendered="#{showGlobalMessages != 'false'}"/>
</a4j:outputPanel>
<div class="l--push-top-half g__item">
<h2 class="gamma heading--sub">#{msgs['jsf.ResetPassword']}</h2>
<h:form id="passwordResetActivationForm" styleClass="l--push-top-half l--pad-all-1 bg--pop-higher">
<s:token allowMultiplePosts="true"/>
<s:decorate id="passwordField" template="../WEB-INF/layout/field.xhtml"
enclose="true">
<h:outputLabel for="password">#{msgs['jsf.NewPassword']}</h:outputLabel>
<h:inputSecret id="password" redisplay="true" required="true"
value="#{passwordReset.password}">
<a4j:ajax event="blur" render="passwordField"/>
</h:inputSecret>
</s:decorate>
<s:decorate id="passwordConfirmField"
template="../WEB-INF/layout/field.xhtml" enclose="true">
<h:outputLabel for="passwordConfirm">#{msgs['jsf.ConfirmPassword']}</h:outputLabel>
<h:inputSecret id="passwordConfirm" redisplay="true" required="true"
value="#{passwordReset.passwordConfirm}">
<a4j:ajax event="blur" render="passwordConfirmField"/>
</h:inputSecret>
</s:decorate>
<h:commandButton styleClass="l--push-top-1 button--primary button--full" value="#{msgs['jsf.ChangePassword']}"
action="#{passwordReset.changePassword}"/>
</h:form>
</div>
</div>
</div>
</div>
</ui:define>
</ui:composition>