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
/
login.xhtml
145 lines (137 loc) · 6.63 KB
/
login.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!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.Login']}</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 #{applicationConfiguration.multiAuth ? 'l--constrain-medium l--constrain-small-m' : '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="g">
<ui:remove>
<!--Internal, JAAS and Kerberos Login form-->
</ui:remove>
<s:div
styleClass="l--push-top-half g__item #{applicationConfiguration.multiAuth ? 'w--1-2 w--1-m' : ''}"
rendered="#{applicationConfiguration.internalAuth or applicationConfiguration.jaasAuth or applicationConfiguration.kerberosAuth}">
<s:fragment rendered="#{applicationConfiguration.multiAuth}">
<h2
class="gamma heading--sub">#{msgs['jsf.login.WithZanata.label']}</h2>
</s:fragment>
<s:fragment rendered="#{applicationConfiguration.kerberosAuth}">
<p class="txt--meta">
<h:outputText escape="false"
value="#{msgs['jsf.auth.KerberosNotice.label']}">
</h:outputText>
</p>
</s:fragment>
<h:form id="loginForm"
styleClass="l--push-top-half l--pad-all-1 bg--pop-higher">
<div class="l--clearfix">
<h:outputLabel for="username"
styleClass="l--float-left">#{msgs['jsf.Username']}</h:outputLabel>
</div>
<h:inputText id="username" value="#{loginAction.username}"
tabindex="2"/>
<div class="l--push-top-half l--clearfix">
<h:outputLabel for="password"
styleClass="l--float-left">#{msgs['jsf.Password']}</h:outputLabel>
<span class="txt--meta l--float-right">
<s:link view="/account/password_reset_request.xhtml"
propagation="none" tabindex="4"
rendered="#{applicationConfiguration.internalAuth}">
#{msgs['jsf.ForgotYourPassword']}
</s:link>
</span>
</div>
<h:inputSecret id="password" value="#{loginAction.password}"
tabindex="3"/>
<div class="l--push-top-1">
<h:commandButton id="loginButton"
action="#{loginAction.login}"
value="#{msgs['jsf.Login']}"
styleClass="button--primary button--full"/>
<s:fragment
rendered="#{applicationConfiguration.internalAuth}">
<div
class="txt--align-center txt--align-center-s l--push-top-half">
#{msgs['jsf.login.DontHaveAnAccount.label']} <s:link
view="/account/register.xhtml"
value="#{msgs['jsf.SignUp']}"/>
</div>
</s:fragment>
<s:fragment
rendered="#{not applicationConfiguration.internalAuth and not empty applicationConfiguration.registerPath}">
<h:outputLink value="#{applicationConfiguration.registerPath}">
<h:outputText value="#{msgs['jsf.Signup']}"/>
</h:outputLink>
</s:fragment>
</div>
</h:form>
</s:div>
<ui:remove>
<!-- OpenId Login form-->
</ui:remove>
<s:div
styleClass="l--push-top-half g__item #{applicationConfiguration.multiAuth ? 'w--1-2 w--1-m' : ''}"
rendered="#{applicationConfiguration.openIdAuth}">
<h:form>
<s:fragment rendered="#{applicationConfiguration.multiAuth}">
<h2
class="gamma heading--sub">#{msgs['jsf.login.OrLoginUsing.label']}</h2>
</s:fragment>
<ul class="list--no-bullets">
<li class="l--push-top-half">
<h:commandLink action="#{loginAction.openIdLogin('Fedora')}"
styleClass="button--full button--fedora" value="Fedora"/>
</li>
<li class="l--push-top-half">
<h:commandLink action="#{loginAction.openIdLogin('Google')}"
styleClass="button--full button--google" value="Google"/>
</li>
<li class="l--push-top-half">
<h:commandLink action="#{loginAction.openIdLogin('Yahoo')}"
styleClass="button--full button--yahoo" value="Yahoo"/>
</li>
<li
class="l--push-top-half l--pad-top-half l--pad-h-half bg--pop-higher">
<h:outputLabel for="openid">Open ID</h:outputLabel>
<div class="g--tighter">
<div class="g__item w--3-4 w--3-4-s">
<h:inputText id="openid" value="#{loginAction.openId}"/>
</div>
<div class="g__item w--1-4 w--1-4-s">
<h:commandButton
action="#{loginAction.openIdLogin('Generic')}"
styleClass="button--full" value="Go"/>
</div>
</div>
</li>
</ul>
</h:form>
</s:div>
</div>
</div>
</div>
</div>
</ui:define>
</ui:composition>