Fix OAuth page

This commit is contained in:
Joren de Graaf
2026-10-19 16:51:53 +02:00
parent a8418cdba7
commit 743785c2e0
54 changed files with 1794 additions and 27 deletions
@@ -9,11 +9,13 @@
{% else %}
<section class="settings-card">
<h2>Allow {{ application.name }}?</h2>
<p>This assistant is requesting access to your TaskNest account. It can only use the permissions listed here.</p>
<p>Allow access grants the permissions listed here{% if offer_journal_scopes %} and any optional permissions you select below{% endif %}.</p>
<ul>{% for scope in scopes_descriptions %}<li>{{ scope }}</li>{% endfor %}</ul>
{% if offer_journal_scopes %}<p>This connection did not request the newer private journal permissions. You can explicitly add them here for dream and stress tools.</p>{% endif %}
<form method="post" id="authorizationForm">
{% csrf_token %}
{% for field in form %}{% if field.is_hidden %}{{ field }}{% endif %}{% endfor %}
{% if offer_journal_scopes %}<input type="hidden" name="journal_scope_offer" value="{{ journal_scope_offer }}"><label class="checkbox-field"><input type="checkbox" name="grant_journal_scopes" value="on"> Also allow reading and changing my private dream and stress journals</label>{% endif %}
{{ form.non_field_errors }}
<button class="button" type="submit" name="allow" value="Authorize">Allow access</button>
<button class="button button--secondary" type="submit" value="Cancel">Cancel</button>