From: Simon Flack <sf@flacks.net> Date: Tue, 23 Nov 2004 17:45:57 +0000 (+0000) Subject: Initial login template upload X-Git-Tag: 2.10~76 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ac3667d9b110af5c5150e8c18fbad42f80324a29;p=maypole.git Initial login template upload git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@288 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/factory/login b/templates/factory/login new file mode 100644 index 0000000..5b04e7d --- /dev/null +++ b/templates/factory/login @@ -0,0 +1,25 @@ +[% PROCESS macros %] +[% INCLUDE header %] +[% INCLUDE title %] + <div id="title">You need to log in</div> + + <div id="login"> + [% IF login_error %] + <div class="error"> [% login_error %] </div> + [% END %] + <form method="post" action="/[% request.path %]"> + <fieldset> + <legend>Login</legend> + <label> + <span class="field">Username:</span> + <input name="[% config.auth.user_field || "user" %]" type="text" /> + </label> + <label> + <span class="field">Password:</span> + <input name="password" type="password" /> + </label> + <input type="submit" name="login" value="Submit"/> + </fieldset> + </form> + </div> + diff --git a/templates/maypole.css b/templates/maypole.css index a458d89..5d1711d 100644 --- a/templates/maypole.css +++ b/templates/maypole.css @@ -292,6 +292,11 @@ label .field { .error { color: #d00; } +.actions { + white-space: nowrap; + background-color: #fff; +} + .action { border: 1px outset #7d95b5; style:block; @@ -303,32 +308,14 @@ label .field { background-color: #7d95b5; } -.actionform { +.field { display: inline; } -.actionbutton { - height: 16px; - width: 40px; - font-family: sans-serif; - font-size: 10px; - border: 1px outset; - background-color: #fff; - margin-bottom: 0px; -} - -.actionbutton:hover { - color: #fff; - background-color: #7d95b5; -} +#login { width: 400px; } -.actions { - white-space: nowrap; -} - -.field { - display:inline; -} +#login input[type=text] { width: 150px; } +#login input[type=password] { width: 150px; } .pager { font: 11px Arial, Helvetica, sans-serif; @@ -368,4 +355,3 @@ label .field { border-color: #036; text-decoration: none; } -