~joaopinto/apt-portal/pre-modules

« back to all changes in this revision

Viewing changes to applications/om-showroom/views/login.html

  • Committer: Joao Pinto
  • Date: 2009-07-06 17:20:36 UTC
  • Revision ID: joao.pinto@getdeb.net-20090706172036-ilg4m4ne7oxn80z3
Include debfactory's apt2sql to simplify installation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## -*- coding: utf-8 -*-
2
 
<%inherit file="base.html"/>
3
 
<%def name="page_head()">
4
 
        <script type="text/javascript" src="/common/js/jquery.validate.min.js"></script>
5
 
        <script type="text/javascript">
6
 
        $(document).ready(function(){
7
 
                $("#loginForm").validate();
8
 
        });             
9
 
        </script>
10
 
</%def> 
11
 
<%def name="title()">
12
 
${_("Login")}
13
 
</%def>
14
 
<%def name="body()">
15
 
                        <div class="info">
16
 
                                <div class="info_header"><h2>Looking to do more with Playdeb?</h2></div>
17
 
                                <div class="info_content">
18
 
% if error_reason == "failed":
19
 
                    <p style="color:red;margin-left:text-align: center">Invalid user/password, please try again.</p>
20
 
% elif error_reason == "auth":
21
 
    <p style="color:red;margin-left:text-align: center">Please check your email to complete registration.</p>
22
 
% endif
23
 
                                        <form id="loginForm" class="login_or_register" style="padding-top:10px;" method="post" action="${base_url}/login/">
24
 
                                                <fieldset>
25
 
                                                        <input name="submitting" value="1" type="hidden" />
26
 
                            <input name="referer" value="${referer}" type="hidden" />
27
 
                                                        <legend>Login to your account</legend>
28
 
                                                        <p>
29
 
                                                                <label for="lusername">Username</label>
30
 
                                                                <input id="lusername" name="name" size="25" class="required" />
31
 
                                                        </p>
32
 
                                                        <p>
33
 
                                                                <label for="lpassword">Password</label>
34
 
                                                                <input id="lpassword" type="password" name="password" size="25"  class="required password" />
35
 
                                                        </p>
36
 
                                                        <p class="button">
37
 
                                                                <input class="submit" type="submit" value="Login"/>
38
 
                                                        </p>
39
 
                                                </fieldset>       
40
 
                                        </form>
41
 
                                        <p class="extra">Forgot your password?</p>
42
 
                                </div>
43
 
                                <div class="info_footer"></div>
44
 
                        </div>
45
 
                        <br style="clear:both;" />
46
 
</%def>
47