{% extends theme("layout.html") %} {% import "forms.html" as forms %} {% block item %}
{{ forms.render_errors(form) }} {% if 'username' in login_inputs or 'password' in login_inputs %}

{{ _('Moin login') }}

{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
{{ 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 %}
{{ gen.form.close() }} {% endif %} {% if 'openid' in login_inputs %}

{{ _('OpenID login') }}

{{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}
{{ gen.input(form['submit'], type='hidden') }} {{ forms.render_field(gen, form['openid'], 'text') }}
{{ gen.form.close() }} {% endif %}
{% endblock %}