2020-05-26 20:55:37 +00:00
|
|
|
{% extends 'auth/base.html.j2' %}
|
2020-05-09 18:00:07 +00:00
|
|
|
|
|
|
|
{% block title %}{{ gettext('Login') }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2020-05-13 15:04:22 +00:00
|
|
|
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
|
|
|
{% for auth_name in forms.keys() %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link{{' active' if loop.first else ''}}" id="home-tab" data-toggle="tab" href="#{{ auth_name }}" role="tab" aria-controls="home" aria-selected="true">{{ gettext(auth_name) }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content" id="myTabContent">
|
|
|
|
{% for auth_name, form in forms.items() %}
|
|
|
|
<div class="tab-pane fade{{ ' show active' if loop.first else '' }}" id="{{ auth_name }}" role="tabpanel" aria-labelledby="{{ auth_name }}-tab">
|
|
|
|
|
|
|
|
{{ render_form(form) }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-05-09 18:00:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|