diff MoinMoin/action/recoverpass.py @ 5928:d97e3b0d6b49

reorder input fields in recoverpass form, to help browsers remember the user name (not the recovery token)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Jan 2013 16:24:06 +0100
parents bf0b4b96dcb4
children 9a273076b808
line wrap: on
line diff
--- a/MoinMoin/action/recoverpass.py	Mon Jan 21 13:41:04 2013 +0100
+++ b/MoinMoin/action/recoverpass.py	Mon Jan 21 16:24:06 2013 +0100
@@ -104,6 +104,13 @@
 
     row = html.TR()
     tbl.append(row)
+    row.append(html.TD().append(html.STRONG().append(html.Text(_("Recovery token")))))
+    value = token or ''
+    row.append(html.TD().append(html.INPUT(type='text', size="36",
+                                           name="token", value=value)))
+
+    row = html.TR()
+    tbl.append(row)
     row.append(html.TD().append(html.STRONG().append(html.Text(_("Username")))))
     value = name or ''
     row.append(html.TD().append(html.INPUT(type='text', size="36",
@@ -111,13 +118,6 @@
 
     row = html.TR()
     tbl.append(row)
-    row.append(html.TD().append(html.STRONG().append(html.Text(_("Recovery token")))))
-    value = token or ''
-    row.append(html.TD().append(html.INPUT(type='text', size="36",
-                                           name="token", value=value)))
-
-    row = html.TR()
-    tbl.append(row)
     row.append(html.TD().append(html.STRONG().append(html.Text(_("New password")))))
     row.append(html.TD().append(html.INPUT(type="password", size="36",
                                            name="password")))