view 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
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block item %}
<div class="moin-form">
{{ forms.render_errors(form) }}

{% 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')) }}
<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>
{{ gen.form.close() }}
{% endif %}

{% if 'openid' in login_inputs %}
<br>
<h2>{{ _('OpenID login') }}</h2>

{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
<dl>
  {{ gen.input(form['submit'], type='hidden') }}

  {{ forms.render_field(gen, form['openid'], 'text') }}
  <input type="submit" value="{{ _('Log in') }}" />
</dl>
{{ gen.form.close() }}
{% endif %}

</div>
{% endblock %}