-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauthorize.html
More file actions
34 lines (34 loc) · 1.24 KB
/
authorize.html
File metadata and controls
34 lines (34 loc) · 1.24 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
31
32
33
34
{% load i18n %}
{% load static %}
<link rel="stylesheet" href="{% static 'css/main.css' %}" type="text/css">
<head>
<meta charset="UTF-8">
<title>Authorize</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>