~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/login.kid

  • Committer: Matt Nordhoff
  • Date: 2009-05-13 14:03:48 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090513140348-yn43gztulksm62e9
Always use a tuple in string formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml"
4
 
    xmlns:py="http://purl.org/kid/ns#"
5
 
    py:extends="'master.kid'">
6
 
 
7
 
<head>
8
 
    <meta content="text/html; charset=UTF-8"
9
 
        http-equiv="content-type" py:replace="''"/>
10
 
    <title>Login</title>
11
 
    <style type="text/css">
12
 
        #loginBox
13
 
        {
14
 
            width: 30%;
15
 
            margin: auto;
16
 
            margin-top: 10%;
17
 
            padding-left: 10%;
18
 
            padding-right: 10%;
19
 
            padding-top: 5%;
20
 
            padding-bottom: 5%;
21
 
            font-family: verdana;
22
 
            font-size: 10px;
23
 
            background-color: #eee;
24
 
            border: 2px solid #ccc;
25
 
        }
26
 
 
27
 
        #loginBox h1
28
 
        {
29
 
            font-size: 42px;
30
 
            font-family: "Trebuchet MS";
31
 
            margin: 0;
32
 
            color: #ddd;
33
 
        }
34
 
 
35
 
        #loginBox p
36
 
        {
37
 
            position: relative;
38
 
            top: -1.5em;
39
 
            padding-left: 4em;
40
 
            font-size: 12px;
41
 
            margin: 0;
42
 
            color: #666;
43
 
        }
44
 
 
45
 
        #loginBox table
46
 
        {
47
 
            table-layout: fixed;
48
 
            border-spacing: 0;
49
 
            width: 100%;
50
 
        }
51
 
 
52
 
        #loginBox td.label
53
 
        {
54
 
            width: 33%;
55
 
            text-align: right;
56
 
        }
57
 
 
58
 
        #loginBox td.field
59
 
        {
60
 
            width: 66%;
61
 
        }
62
 
 
63
 
        #loginBox td.field input
64
 
        {
65
 
            width: 100%;
66
 
        }
67
 
 
68
 
        #loginBox td.buttons
69
 
        {
70
 
            text-align: right;
71
 
        }
72
 
 
73
 
    </style>
74
 
</head>
75
 
 
76
 
<body>
77
 
    <div id="loginBox">
78
 
        <h1>Login</h1>
79
 
        <p>${message}</p>
80
 
        <form action="${previous_url}" method="POST">
81
 
            <table>
82
 
                <tr>
83
 
                    <td class="label">
84
 
                        <label for="user_name">User Name:</label>
85
 
                    </td>
86
 
                    <td class="field">
87
 
                        <input type="text" id="user_name" name="user_name"/>
88
 
                    </td>
89
 
                </tr>
90
 
                <tr>
91
 
                    <td class="label">
92
 
                        <label for="password">Password:</label>
93
 
                    </td>
94
 
                    <td class="field">
95
 
                        <input type="password" id="password" name="password"/>
96
 
                    </td>
97
 
                </tr>
98
 
                <tr>
99
 
                    <td colspan="2" class="buttons">
100
 
                        <input type="submit" name="login" value="Login"/>
101
 
                    </td>
102
 
                </tr>
103
 
            </table>
104
 
 
105
 
            <input py:if="forward_url" type="hidden" name="forward_url"
106
 
                value="${forward_url}"/>
107
 
                
108
 
            <input py:for="name,value in original_parameters.items()"
109
 
                type="hidden" name="${name}" value="${value}"/>
110
 
        </form>
111
 
    </div>
112
 
</body>
113
 
</html>