django-oidc-provider/example_project/myapp/templates/oidc_provider/authorize.html
2016-09-07 16:02:31 -03:00

25 lines
940 B
HTML

{% extends 'base.html' %}
{% load i18n staticfiles %}
{% block content %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h2>{% trans 'Request for Permission' %}</h2>
<p class="lead">Client <i>{{ client.name }}</i> would like to access this information of you.</p>
<form method="post" action="{% url 'oidc_provider:authorize' %}">
{% csrf_token %}
{{ hidden_inputs }}
<ul>
{% for scope in scopes %}
<li><strong>{{ scope.name }}</strong> <br><i class="text-muted">{{ scope.description }}</i></li>
{% endfor %}
</ul>
<br>
<input type="submit" class="btn btn-primary btn-block btn-lg" name="allow" value="{% trans 'Accept' %}" />
<input type="submit" class="btn btn-secondary btn-block" value="{% trans 'Decline' %}" />
</form>
</div>
</div>
{% endblock %}