view MoinMoin/themes/basic/templates/login.html @ 2794:1f7d8cc15805

change basic theme col-lg-* classes to col-md-* making smaller window before content wraps
author RogerHaase <haaserd@gmail.com>
date Thu, 25 Sep 2014 14:33:09 -0700
parents 31628ac3ec21
children 08007ac96dda
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block content %}
    <h2>{{ _('Moin Login') }}</h2>
    <div class="row">
        <div class="col-md-4">
            {{ forms.render_errors(form) }}

            {% if 'username' in login_inputs or 'password' in login_inputs %}
                {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}

                    {% if 'username' in login_inputs %}
                        <div class="form-group">
                            {{ gen.label(form['username']) }}
                            {{ gen.input(form['username'], type="text", class="form-control") }}
                        </div>
                    {% endif %}
                    {% if 'password' in login_inputs %}
                        <div class="form-group">
                            {{ gen.label(form['password']) }}
                            {{ gen.input(form['password'], type="password", class="form-control") }}
                        </div>
                    {% endif %}

                    {{ forms.render(form['submit']) }}

                    <div class="form-group">
                        {{ forms.render_submit(form, class='btn btn-primary') }}
                    </div>
                {{ gen.form.close() }}
            {% endif %}

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

                {{ gen.form.open(form, method="post", action=url_for('frontend.login')) }}

                    {{ forms.render(form['openid']) }}

                    {{ forms.render(form['submit']) }}
                    <div class="form-group">
                        {{ forms.render_submit(form, class='btn btn-primary') }}
                    </div>
                {{ gen.form.close() }}
            {% endif %}

        </div>
    </div>
{% endblock %}