1 | <metal:block define-macro="master" |
---|
2 | tal:define="showthirdcol showthirdcol|python:1; |
---|
3 | emptybody emptybody|request/emptybody|nothing; |
---|
4 | mtool here/portal_membership; |
---|
5 | can_raise python:mtool.assertViewable(here); |
---|
6 | utool nocall:here/portal_url; |
---|
7 | atool here/portal_actions; |
---|
8 | ttool here/portal_trees; |
---|
9 | wtool here/portal_workflow; |
---|
10 | context_url python:here.getContextUrl(utool=utool); |
---|
11 | base_url here/cpsskins_getBaseUrl; |
---|
12 | here_url here/absolute_url; |
---|
13 | member mtool/getAuthenticatedMember; |
---|
14 | isAnon mtool/isAnonymousUser; |
---|
15 | isHomeless python:isAnon or member.getProperty('homeless', 0); |
---|
16 | isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0]; |
---|
17 | actions python:atool.listFilteredActionsFor(here); |
---|
18 | wf_state python:wtool.getInfoFor(here,'review_state',''); |
---|
19 | uname python: isAnon and 'Guest' or member.getUserName(); |
---|
20 | checkPerm nocall: mtool/checkPermission; |
---|
21 | cpsmcat nocall:here/translation_service; |
---|
22 | locale here/translation_service/getSelectedLanguage; |
---|
23 | in_ws here/isInWorkspace; |
---|
24 | dummy python: request.set('cpsskins_cmfactions', actions); |
---|
25 | username request/username | request/__ac_name | nothing"> |
---|
26 | |
---|
27 | <h1 i18n:translate="heading_login_form">Log in</h1> |
---|
28 | |
---|
29 | <form id="loginForm" action="" method="post" |
---|
30 | tal:attributes="action string:${base_url}logged_in"> |
---|
31 | |
---|
32 | <table id="login" class="form" |
---|
33 | summary="Table for entering login information"> |
---|
34 | <tbody> |
---|
35 | <tr> |
---|
36 | <th> |
---|
37 | <label for="username" |
---|
38 | i18n:translate="label_user_name">User name</label></th> |
---|
39 | <td> |
---|
40 | <input type="text" id="username" name="__ac_name" |
---|
41 | class="focus" size="20" value="" |
---|
42 | tal:attributes="value username" /></td> |
---|
43 | </tr> |
---|
44 | <tr> |
---|
45 | <th> |
---|
46 | <label for="password" |
---|
47 | i18n:translate="label_password">Password</label></th> |
---|
48 | <td> |
---|
49 | <input type="password" id="password" name="__ac_password" size="20" |
---|
50 | value="" /></td> |
---|
51 | </tr> |
---|
52 | </tbody> |
---|
53 | </table> |
---|
54 | |
---|
55 | <p class="buttonArea"> |
---|
56 | <!-- ****** Enable the automatic redirect ***** --> |
---|
57 | <input type="hidden" name="came_from" value="" |
---|
58 | tal:condition="exists: request/came_from" |
---|
59 | tal:attributes="value request/came_from" /> |
---|
60 | <!-- ****** Enable the automatic redirect ***** --> |
---|
61 | <input i18n:attributes="value" class="standalone" |
---|
62 | type="submit" name="submit" value="button_login" /> |
---|
63 | </p> |
---|
64 | |
---|
65 | </form> |
---|
66 | |
---|
67 | <p i18n:translate="help_login_aware_logout"> |
---|
68 | Don't forget to logout or exit your browser when you're done. |
---|
69 | </p> |
---|
70 | <p i18n:translate="help_login_troubles_cookies"> |
---|
71 | Having trouble logging in? Make sure to enable cookies in |
---|
72 | your web browser. |
---|
73 | </p> |
---|
74 | <p i18n:translate=""> |
---|
75 | help_password_forgotten |
---|
76 | <tal:block i18n:name="link_password_forgotten" |
---|
77 | replace="string:${base_url}account_lost_password_form"/> |
---|
78 | </p> |
---|
79 | |
---|
80 | </metal:block> |
---|