Clean authorize template.
This commit is contained in:
parent
59e1e90d35
commit
9280e8bff6
1 changed files with 20 additions and 39 deletions
|
@ -1,18 +1,9 @@
|
||||||
{% extends "base.html" %}
|
<h1>Request for Permission</h1>
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 col-md-offset-3">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Request for Permission</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Client <strong>{{ client.name }}</strong> would like to access this information of you ...</p>
|
<p>Client <strong>{{ client.name }}</strong> would like to access this information of you ...</p>
|
||||||
|
|
||||||
<form method="post" action="{% url 'openid_provider:authorize' %}">
|
<form method="post" action="{% url 'openid_provider:authorize' %}">
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<input name="client_id" type="hidden" value="{{ params.client_id }}" />
|
<input name="client_id" type="hidden" value="{{ params.client_id }}" />
|
||||||
|
@ -21,27 +12,17 @@
|
||||||
<input name="scope" type="hidden" value="{{ params.scope_str }}" />
|
<input name="scope" type="hidden" value="{{ params.scope_str }}" />
|
||||||
<input name="state" type="hidden" value="{{ params.state }}" />
|
<input name="state" type="hidden" value="{{ params.state }}" />
|
||||||
|
|
||||||
<ul class="list-group">
|
<ul>
|
||||||
{% for scope in params.scope %}
|
{% for scope in params.scope %}
|
||||||
{% if scope != 'openid' %}
|
{% if scope != 'openid' %}
|
||||||
<li class="list-group-item">{{ scope | capfirst }}</li>
|
<li>{{ scope | capfirst }}</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
|
<input type="submit" value="Decline" />
|
||||||
<div class="btn-group" role="group">
|
<input name="allow" type="submit" value="Authorize" />
|
||||||
<input type="submit" class="btn btn-danger" value="Decline" />
|
|
||||||
</div>
|
|
||||||
<div class="btn-group" role="group">
|
|
||||||
<input name="allow" type="submit" class="btn btn-success" value="Authorize" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue