django-oidc-provider/example/app/templates/oidc_provider/authorize.html
Juan Ignacio Fiorentino b803f8917d Update example project.
2018-03-23 17:06:44 -03:00

26 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 %}