{#
.. screenshot:: |canaille|/admin/client
   :context: admin
   :align: right
   :width: 275px

The list of OIDC clients.

Displays a paginated list of :class:`~canaille.oidc.basemodels.Client`.

:param table_form: The paginated list form.
:type table_form: :class:`~canaille.app.forms.TableForm` of :class:`~canaille.oidc.basemodels.Client`.
#}
{% extends theme('base.html') %}
{% import "macro/table.html" as table %}

{%- block title -%}
    {%- trans %}Applications{% endtrans -%}
{%- endblock -%}

{% block submenu %}
    <a class="active item" href="{{ url_for('oidc.clients.index') }}">
        <i class="th list icon"></i>
        {% trans %}Applications{% endtrans %}
    </a>
    <a class="item" href="{{ url_for('oidc.tokens.index') }}">
        <i class="key icon"></i>
        {% trans %}Tokens{% endtrans %}
    </a>
{% endblock %}

{% block content %}
    <div class="ui top attached segment">
        <h2 class="ui center aligned header">
            <div class="content">
                {% trans %}Applications{% endtrans %}
            </div>
        </h2>

        {% call table.search(table_form, "table.clients") %}
            <a class="ui primary button" href="{{ url_for('oidc.clients.add') }}">
                <i class="plus icon"></i>
                {% trans %}Add an application{% endtrans %}
            </a>
        {% endcall %}
    </div>
    {% include "oidc/partial/client_list.html" %}
{% endblock %}
