comparison MoinMoin/templates/login.html @ 215:d661d49a46dc

reverted 214:0f501a426b50, it will be solved differently by a filter for the Generator in util.forms
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 07 May 2011 19:33:57 +0200
parents 0f501a426b50
children 0fef379d8e58
comparison
equal deleted inserted replaced
214:0f501a426b50 215:d661d49a46dc
10 {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }} 10 {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
11 <dl> 11 <dl>
12 {{ gen.input(form['submit'], type='hidden') }} 12 {{ gen.input(form['submit'], type='hidden') }}
13 13
14 {% if 'username' in login_inputs %} 14 {% if 'username' in login_inputs %}
15 {{ forms.render_field(gen, form['username'], 'text', 'required') }} 15 {{ forms.render_field(gen, form['username'], 'text') }}
16 {% endif %} 16 {% endif %}
17 {% if 'password' in login_inputs %} 17 {% if 'password' in login_inputs %}
18 {{ forms.render_field(gen, form['password'], 'password', 'required') }} 18 {{ forms.render_field(gen, form['password'], 'password') }}
19 {% endif %} 19 {% endif %}
20 20
21 <input type="submit" value="{{ _('Log in') }}" /> 21 <input type="submit" value="{{ _('Log in') }}" />
22 </dl> 22 </dl>
23 {{ gen.form.close() }} 23 {{ gen.form.close() }}