changeset 1349:5947f6bde9c2

eliminate html validation errors on +login
author Roger Haase <crosseyedpenguin@yahoo.com>
date Fri, 11 May 2012 08:30:00 -0700
parents 04f567afe65f
children 3054bf16971b
files MoinMoin/templates/login.html
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/login.html	Fri May 11 08:29:20 2012 -0700
+++ b/MoinMoin/templates/login.html	Fri May 11 08:30:00 2012 -0700
@@ -8,18 +8,16 @@
 {% if 'username' in login_inputs or 'password' in login_inputs %}
 <h2>{{ _('Moin login') }}</h2>
 {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
+{{ gen.input(form['submit'], type='hidden') }}
 <dl>
-  {{ gen.input(form['submit'], type='hidden') }}
-
   {% if 'username' in login_inputs %}
   {{ forms.render_field(gen, form['username'], 'text') }}
   {% endif %}
   {% if 'password' in login_inputs %}
   {{ forms.render_field(gen, form['password'], 'password') }}
   {% endif %}
-
-  <input type="submit" value="{{ _('Log in') }}" />
 </dl>
+<input type="submit" value="{{ _('Log in') }}" />
 {{ gen.form.close() }}
 {% endif %}