view MoinMoin/templates/login.html @ 2960:b2417a0dd48f tip

trivial change to prevent traceback when 0 is passed to TableOfContents macro
author RogerHaase <haaserd@gmail.com>
date Thu, 18 Jun 2015 15:31:51 -0700
parents 39d57a15fdef
children
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block content %}
    <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>
                    {% if 'username' in login_inputs %}
                        {{ forms.render(form['username']) }}
                    {% endif %}
                    {% if 'password' in login_inputs %}
                        {{ forms.render(form['password']) }}
                    {% endif %}
                </dl>
                {{ forms.render(form['submit']) }}
                {{ forms.render_submit(form) }}
            {{ 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>
                    {{ forms.render(form['openid']) }}
                </dl>
                {{ forms.render(form['submit'], id='openid_login_submit') }}
                {{ forms.render_submit(form) }}
            {{ gen.form.close() }}
        {% endif %}

    </div>
{% endblock %}