in between state for mcp implementation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{% extends 'planner/base.html' %}
|
||||
{% block title %}Connect an AI assistant · Tasknest{% endblock %}
|
||||
{% block content %}
|
||||
<section class="settings-page">
|
||||
<p class="eyebrow">Secure connection</p>
|
||||
<h1>Connect an AI assistant</h1>
|
||||
{% if error %}
|
||||
<section class="settings-card" role="alert"><h2>Connection could not be approved</h2><p>{{ error.description }}</p></section>
|
||||
{% 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>
|
||||
<ul>{% for scope in scopes_descriptions %}<li>{{ scope }}</li>{% endfor %}</ul>
|
||||
<form method="post" id="authorizationForm">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}{% if field.is_hidden %}{{ field }}{% endif %}{% endfor %}
|
||||
{{ 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>
|
||||
</form>
|
||||
<p>Review and revoke connected tokens anytime in <a href="{% url 'food:tokens' %}">API tokens</a>.</p>
|
||||
</section>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user