Add display deletion endpoint and admin UI tweaks
This commit is contained in:
@@ -45,7 +45,17 @@
|
||||
<td class="monospace small">{{ d.token }}</td>
|
||||
<td class="text-muted">{{ d.assigned_playlist.name if d.assigned_playlist else "(none)" }}</td>
|
||||
<td class="text-end">
|
||||
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('display.display_player', token=d.token) }}" target="_blank">Open</a>
|
||||
<div class="d-inline-flex gap-2">
|
||||
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('display.display_player', token=d.token) }}" target="_blank">Open</a>
|
||||
<form
|
||||
method="post"
|
||||
action="{{ url_for('admin.delete_display', display_id=d.id) }}"
|
||||
data-confirm="Delete display {{ d.name }}? This cannot be undone."
|
||||
onsubmit="return confirm(this.dataset.confirm);"
|
||||
>
|
||||
<button class="btn btn-outline-danger btn-sm" type="submit">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user