target-revenue/src/target_revenue/service/control_plane_templates/admin_credentials.html
tegwick 856dc354d8 Fix Control Plane login under /ui; store founding token in OpenBao
Rewrite templates that lost href/action during root_path rewrite; use
native form controls for reliable login. Deploy image 0.1.2. Founding
admin token canonical location: platform/operators/founding-admin/revenue.
2026-08-06 21:41:59 +02:00

38 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Credentials — Target Revenue Control Plane{% endblock %}
{% block content %}
<wn-page-header>
<span slot="title">Manage credentials (Admin)</span>
</wn-page-header>
{% if new_token %}
<wn-banner variant="warning">
New credential issued for <strong>{{ new_token_label }}</strong>. Copy it now —
it will not be shown again: <code>{{ new_token }}</code>
</wn-banner>
{% endif %}
<h3>Issue a new credential</h3>
<form class="wn-form" method="post" action="{{ root_path }}/admin/credentials">
<label>Credential label (human name)
<input name="credential_label" required>
</label>
<label>Rights
<select name="rights">
<option value="viewer">viewer</option>
<option value="contributor">contributor</option>
<option value="operator">operator</option>
<option value="admin">admin</option>
</select>
</label>
<button type="submit">Issue credential</button>
</form>
<h3>Revoke a credential</h3>
<form class="wn-form" method="post" action="{{ root_path }}/admin/credentials/revoke">
<label>Token to revoke
<input name="token" required>
</label>
<button type="submit" class="secondary">Revoke</button>
</form>
{% endblock %}