{% load i18n %}
{% load static %}
<link rel="stylesheet" href="{% static 'css/main.css' %}" type="text/css">
<head>
    <meta charset="UTF-8">
    <title>Change Password</title>
</head>
<div class="page-wrap gradient-primary">
    <div class="container">
        <h1 class="logo"><a href="https://www.drycc.cc" title="Drycc">Drycc</a></h1>
        <div class="panel">
            {% if not error %}
            <h2 class="h3">{% trans "Authorize" %} {{ application.name }}?</h2>
            {{ updated }}
            <form id="authorizationForm" method="post">
                {% csrf_token %}
                {% for field in form %}
                    {% if field.is_hidden %}
                        {{ field }}
                    {% endif %}
                {% endfor %}
                {{ form.errors }}
                {{ form.non_field_errors }}
                <br>
                <input type="submit" class="btn btn-primary btn-lg btn-block" name="allow" value="{% trans 'Authorize' %}"/>
            </form>
            {% else %}
            <h2 class="h3">{{ error.error }}</h2>
            <p class="tc gray-90 inverted-wrapper">{{ error.description }}</p>
            <div class="inverted-wrapper"></div>
            {% endif %}
        </div>
    </div>
</div>