PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/shabti/templates/moinmoin/+package+/templates/signin.mako_tmpl

https://bitbucket.org/gawel/shabti
Unknown | 36 lines | 34 code | 2 blank | 0 comment | 0 complexity | 1a6c6e3fdcf111930c536d179c450bf1 MD5 | raw file
 1# -*- coding: utf-8 -*-
 2## Based on standard 1-col Hide-Both derivation
 3## Defines "content" fragment
 4
 5<%inherit file="/core/hide-both.mako"/>
 6<%def name="header()">
 7    <link type="text/css" rel="stylesheet" href="/css/login.css" media="screen" />
 8    <link type="text/css" rel="stylesheet" href="/css/cmxform.original.css" media="screen" />
 9    % if c.title is not UNDEFINED:
10    <title>${c.title|n}</title>
11    % else:
12    <title>{{package}} :: Sign in</title>
13    % endif
14
15</%def>
16<%def name="content()">
17        <div id="loginBox">
18            <h1>Login</h1>
19            <form class="cmxform" action="/login/signin" method="post">
20                <fieldset style="padding: 1em">
21                    <legend>Please enter ...</legend>
22                    <fieldset>
23                        <legend>Username:</legend>
24                        <input type="text" name="username" />
25                    </fieldset>
26                    <fieldset>
27                        <legend>Password:</legend>
28                        <input type="password" name="password" />
29                    </fieldset>
30                    <fieldset>
31                        <input type="submit" name="authform" value="Login" />
32                    </fieldset>
33                </fieldset>
34            </form>
35        </div>
36</%def>