source: waeup_product/trunk/skins/waeup_default/logged_in.pt @ 73

Last change on this file since 73 was 50, checked in by joachim, 19 years ago

=weiteres

File size: 4.7 KB
Line 
1<metal:html>
2
3<metal:body use-macro="here/main_template/macros/master">
4   
5    <metal:main fill-slot="main"
6                tal:define="p_props here/portal_properties;">
7      <metal:skin tal:condition="exists: here/portal_skins | nothing">
8        <div tal:condition="here/portal_skins/updateSkinCookie | nothing"
9             tal:define="dummy here/setupCurrentSkin">
10        </div>
11      </metal:skin>
12      <tal:block condition="isAnon">
13        <tal:block define="dummy python:request.RESPONSE.expireCookie('__ac',path='/')" />
14          <h1 i18n:translate="heading_login_failure">Login failure</h1>
15          <p>
16            <span i18n:translate="description_login_failure">
17              You are not currently logged in. Your username and or password may be
18              incorrect. Your browser may also not be configured to accept HTTP
19              cookies. If you need help please contact
20            </span>
21            <a href="mailto:admin@here.com" title="Email Admin"
22               tal:attributes="href string:mailto:${p_props/email_from_address}"
23               tal:content="p_props/email_from_address">Email Admin</a>.
24          </p>
25          <p i18n:translate="">
26            help_password_forgotten
27            <tal:block i18n:name="link_password_forgotten"
28                       replace="string:${base_url}account_lost_password_form"/>
29          </p>
30          <p>
31            or <a href="" tal:attributes="href string:${base_url}/sections/unidemo/students/check_admission">check your admission status</a>
32          </p>
33        </tal:block><!-- isAnon -->
34
35        <tal:block condition="not: isAnon"
36                   define="first_time python:(member.getProperty('login_time', None) ==
37                   here.ZopeTime('2000/01/01'));
38                   dum_home mtool/createMemberArea"
39                   >
40          <tal:block
41              condition="python:'Students' in member.getGroups()"
42              tal:define="dummy python: context.process_waeup_login(member=member,sc_pin=request.get('sc_pin'))" />
43          <tal:block condition="first_time">
44            <div tal:define="now here/ZopeTime;
45            dum_reg python:member.setProperties(last_login_time=now,
46            login_time=now)" />
47           
48            <h1>Welcome!</h1>
49            <p>This is the first time that you've logged in to <span
50                                                                   replace="p_props/title">Here</span>. Before you start exploring you need
51              to change your original password. This will ensure that the password we
52            sent you via email cannot be used in a malicious manner.</p>
53           
54            <p>Please use the form below to change your password.</p>
55
56      <form action="change_password" method="post"
57            tal:attributes="action string:${base_url}change_password">
58        <input type="hidden" name="user" value=""
59               tal:attributes="value member" />
60        <input type="hidden" name="domains:tokens" value="" />
61        <input type="hidden" name="redirect" value=""
62               tal:attributes="value base_url" />
63
64      <table border="1" width="100%" cellspacing="1" cellpadding="1">
65
66       <tr valign="top" align="left">
67         <th>Username</th>
68         <td><span tal:replace="member">You</span></td>
69       </tr>
70
71       <tr valign="top" align="left">
72         <th>New password</th>
73         <td><input type="password" name="password" /></td>
74       </tr>
75
76       <tr valign="top" align="left">
77        <th>Confirm new password</th>
78        <td><input type="password" name="confirm" /></td>
79       </tr>
80
81       <tr>
82        <td></td>
83        <td>
84          <input type="submit" class="standalone" value="Change password" />
85        </td>
86       </tr>
87
88      </table>
89
90      </form>
91
92    </tal:block><!-- first_time -->
93
94    <tal:block condition="not: first_time">
95
96      <tal:block define="d_reg python:member.setProperties(
97                                      last_login_time=member.getProperty('login_time', None));
98                         ereg python:member.setProperties(
99                                     login_time=here.ZopeTime());
100                      "/>
101
102      <div tal:condition="request/came_from | nothing ">
103        <div tal:define="came_from python:request.get('came_from');
104                         response request/RESPONSE;
105                         dredirect python: response.redirect(came_from);
106                        " />
107      </div>
108
109      <h1 i18n:translate="heading_login_success">Login success</h1>
110      <p i18n:translate="description_login_success">
111         Welcome. You are currently logged in.
112      </p>
113
114   </tal:block><!-- not first_time -->
115
116  </tal:block><!-- not isAnon -->
117
118</metal:main>
119
120</metal:body>
121
122</metal:html>
Note: See TracBrowser for help on using the repository browser.