{% extends "base.html" %}

{% load i18n %}

{% block content %}

<p class="title_lead">
    {% trans "Authorization request" %}
</p>

<div>
    {% if scopes|length > 0 %}
    <p class="flex">{% trans "The client" %} <strong>{{ client.name }}</strong> {% trans "would like to access the following personale information:" %}</p>
    {% else %}
    <p class="flex">{% trans "The client" %} <strong>{{ client.name }}</strong> {% trans "would like to access your account." %}</p>
    {% endif %}
    
    <p class="flex">
        {% trans "This is a normal part of the login process to the knowledge base." %}
    </p>
    
    <div class="flex">
        <form method="post" class="block_log" action="{% url 'oidc_provider:authorize' %}">

            {% csrf_token %}

            {{ hidden_inputs }}

            <input class="button_base" type="submit" value="Decline"/>
            <input class="button_base" name="allow" type="submit" value="Authorize" />
        </form>
    </div>
</div>

{% endblock %}