1
0
Fork 0
forked from 2sys/phonograph
phonograph/phono-server/templates/workspaces_single/service_credentials.html

59 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2026-01-19 18:48:14 +00:00
{% extends "layouts/with_sidebar.html" %}
2026-01-19 18:48:14 +00:00
{% block toolbar_page_actions %}
2026-01-20 19:09:50 +00:00
<basic-dropdown class="button--secondary">
2026-01-19 18:48:14 +00:00
<span slot="button-contents">New Credential</span>
<div class="padded" slot="popover">
<form action="add-service-credential" method="post">
2026-01-20 19:09:50 +00:00
<button class="button button--secondary" type="submit">Confirm</button>
2026-01-19 18:48:14 +00:00
</form>
</div>
</basic-dropdown>
{% endblock %}
{% block sidebar %}
{{ workspace_nav | safe }}
{% endblock %}
{% block main %}
2026-01-19 18:48:14 +00:00
<div class="page-grid__main padded padded--lg">
<table class="table">
<thead>
<tr>
<th scope="col">Connection String</th>
<th scope="col">Permissions</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{% if service_cred_info.is_empty() %}
<tr class="table__message">
<td colspan="999">No data</td>
</tr>
{% endif %}
{% for cred in service_cred_info %}
<tr>
<td>
<copy-source copy-data="{{ cred.conn_string.expose_secret() }}">
<span aria-label="Copy postgresql URL" title="Copy URL">
<code class="phono-code">{{ cred.conn_string_redacted }}</code>
<i class="ti ti-clipboard"></i>
</span>
<code class="phono-code" slot="fallback">{{ cred.conn_string.expose_secret() }}</code>
</copy-source>
</td>
<td>
{{ cred.permissions_editor | safe }}
</td>
<td></td>
</tr>
{% endfor %}
</tbody>
<table>
</div>
{% endblock %}
2026-01-19 18:48:14 +00:00
{% block scripts %}
<script type="module" src="{{ settings.root_path }}/js_dist/copy-source.webc.mjs"></script>
{% endblock %}