[Checkins] SVN: megrok.login/trunk/src/megrok/login/loginform.pt Add page template for replacement of default login page (which is not

Uli Fouquet uli at gnufix.de
Wed Feb 9 06:47:31 EST 2011


Log message for revision 120230:
  Add page template for replacement of default login page (which is not
  available without `zope.app.authentication` any more).
  

Changed:
  A   megrok.login/trunk/src/megrok/login/loginform.pt

-=-
Added: megrok.login/trunk/src/megrok/login/loginform.pt
===================================================================
--- megrok.login/trunk/src/megrok/login/loginform.pt	                        (rev 0)
+++ megrok.login/trunk/src/megrok/login/loginform.pt	2011-02-09 11:47:31 UTC (rev 120230)
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"
+      lang="en-us" i18n:domain="zope">
+<head>
+  <title i18n:translate="">Sign in</title>
+</head>
+<body>
+  <div>
+
+    <p i18n:translate="" tal:condition="view/unauthenticated">
+      Please provide Login Information
+    </p>
+
+    <p i18n:translate="" tal:condition="not:view/unauthenticated">
+      You are not authorized to perform this action. However, you may login as a 
+      different user who is authorized.
+    </p>
+
+    <form action="" method="post">
+
+      <div class="row">
+        <div class="label"><label for="login" i18n:translate="">User Name</label></div>
+          <div class="field">
+            <input type="text" name="login" id="login" />
+          </div>
+      </div>
+
+      <div class="row">
+        <div class="label"><label for="password" i18n:translate="">Password</label></div>
+        <div class="field">
+          <input type="password" name="password" id="password" />
+        </div>
+      </div>
+    
+      <div class="row">
+        <input class="form-element" type="submit" 
+               name="SUBMIT" value="Log in" i18n:attributes="value login-button" />
+      </div>
+
+      <input type="hidden" name="camefrom"
+             tal:condition="view/camefrom" 
+             tal:attributes="value view/camefrom" />
+
+    </form>
+
+  </div>
+</body>
+</html>



More information about the checkins mailing list