summaryrefslogtreecommitdiffstats
path: root/templates/admin/login.html
blob: 1957a7fc8651edf77b1959a661b458e0ceaac7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "master-admin.html" %}
{% block main %}
{% if user.is_admin %}
    <h2>Login plugins</h2>

    {% for p in available %}
        <div class="row">
        <div class="col-md-3 col-sm-3 col-xs-6">{{ p }}</div>
        <div class="col-md-3 col-sm-3 col-xs-6">
        {% if p in enabled %}
            <a class="btn btn-default" href="{{ basepath }}/admin/login/{{ p }}/disable">Disable</a>
            <a class="btn btn-default" href="{{ basepath }}/admin/login/{{ p }}">Configure</a>
        {% else %}
            <a class="btn btn-default" href="{{ basepath }}/admin/login/{{ p }}/enable">Enable</a>
        {% endif %}
        </div>
        </div>
    {% endfor %}

    <h3>Plugins order</h3>
    <div class="col-md-3 col-sm-3 col-xs-6">{{ ', '.join(enabled) }}</div>
    <div class="col-md-3 col-sm-3 col-xs-6">
        <a class="btn btn-default" href="{{ basepath }}/admin/login/order">configure</a>
    </div>
{% endif %}
{% endblock %}