Go with a request form that degrades nicely, if requested directly
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Apr 2010 04:05:30 +0000 (04:05 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Apr 2010 04:05:30 +0000 (04:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16232 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/templates/password-reset/request-form.tt2
Open-ILS/src/templates/password-reset/strings.en-US

index 0c09e36..9f4382b 100644 (file)
@@ -1,17 +1,32 @@
 <html>
 <head>
   <title>[% i18n.REQUEST_TITLE %]</title>
+  <link rel="stylesheet" type="text/css" href="/js/dojo/dijit/themes/tundra/tundra.css" />
+  <style type="text/css">
+    body, html { font-family:helvetica,arial,sans-serif; }
+  </style>
 </head>
-<body>
+<body class="tundra">
   <h1>[% i18n.REQUEST_TITLE %]</h1>
-<p class='[% status.style %]'>[% status.msg %]</p>
-<form method="post" action="[% uri %]">
-    <div>
-        <label for="barcode">[% i18n.BARCODE_PROMPT %] </label><input type="text" name="barcode"/></br>
-        <label for="username">[% i18n.USERNAME_PROMPT %]  </label><input type="text" name="username"/></br>
-        <!--<label for="email">[% i18n.EMAIL_PROMPT %]  </label><input type="text" name="email"/></br>-->
-        <input type="submit"/>
-    </div>
-</form>
+  <p class='[% status.style %]'>[% status.msg %]</p>
+  <form method="post" action="[% uri %]" id="requestPwdReset">
+    <table>
+      <tr>
+        <td><label for="barcode">[% i18n.BARCODE_PROMPT %] </label></td>
+        <td><input type="text" id="barcode" name="barcode" dojoType="dijit.form.TextBox"/></td>
+      </tr>
+      <tr>
+        <td><label for="username">[% i18n.USERNAME_PROMPT %] </label></td>
+        <td><input type="text" id="barcode" name="username" dojoType="dijit.form.TextBox"/></td>
+      </tr>
+    </table>
+    <!--<label for="email">[% i18n.EMAIL_PROMPT %] </label><input type="text" name="email"/></br>-->
+    <button name="submit" id="submitButton" type="submit" dojoType="dijit.form.Button">[% i18n.BUTTON_SUBMIT %]</button>
+  </form>
 </body>
+<script type="text/javascript" src="/js/dojo/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
+<script type="text/javascript">
+  dojo.require("dijit.form.Button");
+  dojo.require("dijit.form.ValidationTextBox");
+</script>
 </html>
index 5927ee5..9b85980 100644 (file)
@@ -1,3 +1,4 @@
+BUTTON_SUBMIT=Submit
 REQUEST_TITLE=Library system password reset request form
 IDENTIFY_YOURSELF=Please enter your user name or barcode to identify your library account and request a password reset.
 REQUEST_SUCCESS=Your user name or barcode has been submitted for a password reset. If a matching account with an email address is found, you will soon receive an email at that address with further instructions for resetting your password.