]> git.decadent.org.uk Git - maypole.git/commitdiff
Initial login template upload
authorSimon Flack <sf@flacks.net>
Tue, 23 Nov 2004 17:45:57 +0000 (17:45 +0000)
committerSimon Flack <sf@flacks.net>
Tue, 23 Nov 2004 17:45:57 +0000 (17:45 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@288 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/login [new file with mode: 0644]
templates/maypole.css

diff --git a/templates/factory/login b/templates/factory/login
new file mode 100644 (file)
index 0000000..5b04e7d
--- /dev/null
@@ -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>
+
index a458d8943dcc6c08d3f5a8a2e32ed5fc4de6bd8c..5d1711dd1007f6cf1ce26e97180a7e30d721dda2 100644 (file)
@@ -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;
 }
-