-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
login.pt
134 lines (119 loc) · 4.9 KB
/
login.pt
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
<tal:block condition="view/show"
i18n:domain="plone">
<section class="portlet portletLogin" role="section"
tal:condition="view/available">
<header class="portletHeader">
<a href="#"
class="tile"
tal:attributes="href view/login_form"
i18n:translate="box_sign_in">Log in</a>
</header>
<section class="portletContent">
<div
tal:define="ac_name view/login_name;
ac_password view/login_password">
<form action="login_form"
id="loginform"
method="post"
tal:attributes="action view/login_form">
<div>
<input type="hidden" name="form.submitted" value="1" />
<input type="hidden" name="came_from" value=""
tal:attributes="value context/@@plone_context_state/current_page_url" />
<input type="hidden" name="js_enabled" id="js_enabled" value="0" />
<input type="hidden" name="cookies_enabled" id="cookies_enabled" value="" />
<input type="hidden" name="login_name" id="login_name" value="" />
<input type="hidden" name="pwd_empty" id="pwd_empty" value="0" />
</div>
<div class="field"
tal:define="use_email_as_login context/portal_properties/site_properties/use_email_as_login|nothing;">
<tal:loginname condition="not:use_email_as_login">
<label for=""
tal:attributes="for ac_name"
i18n:translate="label_login_name">Login Name</label>
<br />
<input type="text"
size="10"
alt="Login Name"
tal:attributes="name ac_name; id ac_name;
value python:request.get(ac_name, '');"
i18n:attributes="alt label_login_name;"/>
</tal:loginname>
<tal:email condition="use_email_as_login">
<label for=""
tal:attributes="for ac_name"
i18n:translate="label_email">E-mail</label>
<br />
<input type="text"
size="10"
alt="E-mail"
tal:attributes="name ac_name; id ac_name;
value python:request.get(ac_name, '');"
i18n:attributes="alt label_email;"/>
</tal:email>
</div>
<div class="field">
<label for=""
tal:attributes="for ac_password"
i18n:translate="label_password">Password</label>
<br />
<input type="password"
size="10"
alt="Password"
tal:attributes="name ac_password; id ac_password;"
i18n:attributes="alt label_password;"/>
</div>
<div class="cookiesMessage portalMessage warning"
style="display:none" role="alert">
<strong i18n:translate="">
Warning
</strong>
<span i18n:translate="enable_cookies_message_before_login">
Cookies are not enabled. You must enable cookies before you
can log in.
</span>
</div>
<div class="formControls">
<input class="context"
type="submit"
name="submit"
value="Log in"
alt="Log in"
i18n:attributes="value label_log_in; alt label_log_in;"/>
</div>
</form>
</div>
</section>
<footer class="portletFooter">
<div tal:condition="view/can_request_password">
<a href="mail_password_form"
class="tile"
tal:attributes="href view/mail_password_form">
<tal:block replace="structure context/info_icon.png"/>
<span tal:omit-tag="" i18n:translate="box_forgot_password_option">Forgot your password?</span>
</a>
</div>
<div tal:condition="view/can_register">
<a href=""
class="tile"
tal:attributes="href view/join_action">
<tal:block replace="structure context/user.png"/>
<span tal:omit-tag="" i18n:translate="box_new_user_option">New user?</span>
</a>
</div>
</footer>
</section>
<section class="portlet portletLogin"
tal:condition="not:view/available">
<header class="portletHeader">
<a href="#"
class="tile"
i18n:translate="box_sign_in">Log in</a>
</header>
<div class="portletContent"
i18n:translate="login_portlet_disabled">
Cookie authentication is disabled.
Login portlet not available.
</div>
</section>
</tal:block>