-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauthorize.html
More file actions
30 lines (28 loc) · 1 KB
/
Copy pathauthorize.html
File metadata and controls
30 lines (28 loc) · 1 KB
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
27
28
29
30
{% extends "oauth2_provider/base.html" %}
{% load i18n %}
{% load static %}
{% block content %}
<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>
<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>Error: {{ error.error }}</h2>
<p>{{ error.description }}</p>
{% endif %}
</div>
</div>
{% endblock %}