Artifex/templates/control_plane/approvals.html

3 lines
1.3 KiB
HTML
Raw Normal View History

{% extends "control_plane/base.html" %}
{% block content %}<header class="page"><div><h2>Approvals</h2><p class="muted">Durable approval inbox for paused graph decisions.</p></div></header><table><thead><tr><th>Source</th><th>Project</th><th>Reason</th><th>Evidence</th><th>Requested</th><th>Actions</th></tr></thead><tbody>{% for approval in approvals %}<tr><td><a href="{% url 'graph_run_detail' approval.graph_run.id %}">{{ approval.graph_run.execution_graph_version.graph.name }} v{{ approval.graph_run.execution_graph_version.version }}</a></td><td>{{ approval.graph_run.project.name|default:"-" }}</td><td>{{ approval.reason }}</td><td><pre>{{ approval.payload }}</pre></td><td>{{ approval.created_at }}</td><td><form class="actions" method="post" action="{% url 'approval_action' approval.id %}">{% csrf_token %}{% if approval.graph_run.execution_graph_version.graph.name == "story_authoring" %}<textarea name="notes" rows="3" placeholder="Optional revision notes"></textarea>{% endif %}<button name="action" value="approve">Approve</button><button class="secondary" name="action" value="reject">{% if approval.graph_run.execution_graph_version.graph.name == "story_authoring" %}Request changes{% else %}Reject{% endif %}</button></form></td></tr>{% empty %}<tr><td colspan="6">No pending approvals.</td></tr>{% endfor %}</tbody></table>{% endblock %}