comparison 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
comparison
equal deleted inserted replaced
5927:7c6029d23a18 5928:d97e3b0d6b49
102 ret.append(tbl) 102 ret.append(tbl)
103 ret.append(html.Raw('</div>')) 103 ret.append(html.Raw('</div>'))
104 104
105 row = html.TR() 105 row = html.TR()
106 tbl.append(row) 106 tbl.append(row)
107 row.append(html.TD().append(html.STRONG().append(html.Text(_("Recovery token")))))
108 value = token or ''
109 row.append(html.TD().append(html.INPUT(type='text', size="36",
110 name="token", value=value)))
111
112 row = html.TR()
113 tbl.append(row)
107 row.append(html.TD().append(html.STRONG().append(html.Text(_("Username"))))) 114 row.append(html.TD().append(html.STRONG().append(html.Text(_("Username")))))
108 value = name or '' 115 value = name or ''
109 row.append(html.TD().append(html.INPUT(type='text', size="36", 116 row.append(html.TD().append(html.INPUT(type='text', size="36",
110 name="name", value=value))) 117 name="name", value=value)))
111
112 row = html.TR()
113 tbl.append(row)
114 row.append(html.TD().append(html.STRONG().append(html.Text(_("Recovery token")))))
115 value = token or ''
116 row.append(html.TD().append(html.INPUT(type='text', size="36",
117 name="token", value=value)))
118 118
119 row = html.TR() 119 row = html.TR()
120 tbl.append(row) 120 tbl.append(row)
121 row.append(html.TD().append(html.STRONG().append(html.Text(_("New password"))))) 121 row.append(html.TD().append(html.STRONG().append(html.Text(_("New password")))))
122 row.append(html.TD().append(html.INPUT(type="password", size="36", 122 row.append(html.TD().append(html.INPUT(type="password", size="36",