feat: add consent page template
This commit is contained in:
parent
1d8fd91f68
commit
5c4269fd6e
1 changed files with 35 additions and 0 deletions
35
src/porchlight/templates/consent.html
Normal file
35
src/porchlight/templates/consent.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Authorize — Porchlight{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card consent-card">
|
||||
<h1>Authorize {{ client_id }}</h1>
|
||||
<p>This application is requesting access to your account.</p>
|
||||
|
||||
<form method="post" action="/consent">
|
||||
<fieldset>
|
||||
<legend>Permissions requested</legend>
|
||||
<ul class="scope-list" role="list">
|
||||
{% for scope in scopes %}
|
||||
<li>
|
||||
<label>
|
||||
<input type="checkbox" name="scope" value="{{ scope.name }}"
|
||||
{% if scope.required %}checked disabled{% else %}checked{% endif %}>
|
||||
{{ scope.description }}
|
||||
</label>
|
||||
{% if scope.required %}
|
||||
<input type="hidden" name="scope" value="{{ scope.name }}">
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
||||
<div class="consent-actions">
|
||||
<button type="submit" name="action" value="allow" class="btn btn-primary">Allow</button>
|
||||
<button type="submit" name="action" value="deny" class="btn btn-secondary">Deny</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue