oops, forgot to git-add w/ last commit
authorberick <berick@esilibrary.com>
Thu, 7 Apr 2011 15:45:24 +0000 (11:45 -0400)
committerberick <berick@esilibrary.com>
Thu, 7 Apr 2011 15:45:24 +0000 (11:45 -0400)
Open-ILS/web/templates/default/opac/myopac/update_username.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/web/templates/default/opac/myopac/update_username.tt2 b/Open-ILS/web/templates/default/opac/myopac/update_username.tt2
new file mode 100644 (file)
index 0000000..1294917
--- /dev/null
@@ -0,0 +1,30 @@
+[%  PROCESS "default/opac/parts/header.tt2";
+    PROCESS "default/opac/parts/misc_util.tt2";
+    WRAPPER "default/opac/parts/myopac/base.tt2";
+    myopac_page = "prefs"  %]
+<div id='myopac_summary_div' style="padding:0px;">
+
+[% IF ctx.invalid_username %]
+    <div id='account-update-email-error'> <!-- borrow css from update-email page -->
+        [% | l(ctx.invalid_username) %]
+        "<b>[_1]</b>" is not a valid username.  Usernames cannot have any spaces.  Please try a different username.
+        [% END %]
+    </div>
+
+[% ELSIF ctx.username_exists %]
+    <div id='account-update-email-error'>
+        [% | l(ctx.username_exists) %]
+        The username "<b>[_1]</b>" is taken.  Please try a different username.
+        [% END %]
+    </div>
+[% END %]
+
+<form method='POST' id='account-update-email'> 
+    <table> 
+        <tr><td>[% l('Current Username') %]</td><td>[% ctx.user.usrname | html %]</td></tr>
+        <tr><td>[% l('New Username') %]</td><td><input type='text' name='username' value='[% ctx.invalid_username | html %]'/></td></tr>
+        <tr><td colspan='2' align='center'><input type='submit'/></td></tr>
+    </table>
+</form>
+
+[% END %]