[open-ils-commits] r16232 - branches/rel_1_6/Open-ILS/src/templates/password-reset (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 14 00:05:33 EDT 2010
Author: dbs
Date: 2010-04-14 00:05:30 -0400 (Wed, 14 Apr 2010)
New Revision: 16232
Modified:
branches/rel_1_6/Open-ILS/src/templates/password-reset/request-form.tt2
branches/rel_1_6/Open-ILS/src/templates/password-reset/strings.en-US
Log:
Go with a request form that degrades nicely, if requested directly
Modified: branches/rel_1_6/Open-ILS/src/templates/password-reset/request-form.tt2
===================================================================
--- branches/rel_1_6/Open-ILS/src/templates/password-reset/request-form.tt2 2010-04-14 03:37:43 UTC (rev 16231)
+++ branches/rel_1_6/Open-ILS/src/templates/password-reset/request-form.tt2 2010-04-14 04:05:30 UTC (rev 16232)
@@ -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>
Modified: branches/rel_1_6/Open-ILS/src/templates/password-reset/strings.en-US
===================================================================
--- branches/rel_1_6/Open-ILS/src/templates/password-reset/strings.en-US 2010-04-14 03:37:43 UTC (rev 16231)
+++ branches/rel_1_6/Open-ILS/src/templates/password-reset/strings.en-US 2010-04-14 04:05:30 UTC (rev 16232)
@@ -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.
More information about the open-ils-commits
mailing list