annotate pylons_app/templates/login.html @ 474:a3d9d24acbec celery

Implemented password reset(forms/models/ tasks) and mailing tasks. Added smtp mailer, configurations, cleaned user model
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 13 Sep 2010 01:27:41 +0200
parents 930f8182a884
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
186
556473ba0399 fixed menu in home page, and added login html with forms that validates username and password.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
4 <head>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
5 <title>${_('Sign In to hg-app')}</title>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
7 <link rel="icon" href="/images/hgicon.png" type="image/png" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
8 <meta name="robots" content="index, nofollow"/>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
9
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
10 <!-- stylesheets -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
11 <link rel="stylesheet" type="text/css" href="/css/reset.css" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
12 <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
13 <link id="color" rel="stylesheet" type="text/css" href="/css/colors/blue.css" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
14
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
15 <!-- scripts -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
16
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
17 </head>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
18 <body>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
19 <div id="login">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
20 <!-- login -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
21 <div class="title">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
22 <h5>${_('Sign In to hg-app')}</h5>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
23 <div class="corner tl"></div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
24 <div class="corner tr"></div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
25 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
26 <div class="inner">
437
930f8182a884 Added redirection to page that request came from, after login in
Marcin Kuzminski <marcin@python-works.com>
parents: 417
diff changeset
27 ${h.form(h.url.current(came_from=c.came_from))}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
28 <div class="form">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
29 <!-- fields -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
30
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
31 <div class="fields">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
32 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
33 <div class="label">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
34 <label for="username">${_('Username')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
35 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
36 <div class="input">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
37 ${h.text('username',class_='focus',size=40)}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
38 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
39
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
40 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
41 <div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
42 <div class="label">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
43 <label for="password">${_('Password')}:</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
44 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
45 <div class="input">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
46 ${h.password('password',class_='focus',size=40)}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
47 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
48
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
49 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
50 ##<div class="field">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
51 ## <div class="checkbox">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
52 ## <input type="checkbox" id="remember" name="remember" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
53 ## <label for="remember">Remember me</label>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
54 ## </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
55 ##</div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
56 <div class="buttons">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
57 ${h.submit('sign_in','Sign In',class_="ui-button ui-widget ui-state-default ui-corner-all")}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
58 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
59 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
60 <!-- end fields -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
61 <!-- links -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
62 <div class="links">
474
a3d9d24acbec Implemented password reset(forms/models/ tasks) and mailing tasks.
Marcin Kuzminski <marcin@python-works.com>
parents: 437
diff changeset
63 ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))}
417
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
64 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
65 /
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
66 ${h.link_to(_("Don't have an account ?"),h.url('register'))}
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
67 %endif
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
68 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
69
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
70 <!-- end links -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
71 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
72 ${h.end_form()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
73 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
74 <!-- end login -->
186
556473ba0399 fixed menu in home page, and added login html with forms that validates username and password.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
75 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
76 </body>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 350
diff changeset
77 </html>
186
556473ba0399 fixed menu in home page, and added login html with forms that validates username and password.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
78