weircon-front: SSO-portal til weircon.dk (Authentik-login, app-dashboard, admin, favoritter, tema, palette)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
agw
2026-06-11 20:00:00 +02:00
co-authored by Claude Opus 4.8
commit 74c8d9f500
16 changed files with 983 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}Admin — app-beskrivelser{% endblock %}
{% block body %}
<h1>App-beskrivelser &amp; grupper</h1>
<p class="lead">Beskrivelsen og gruppen kommer fra hver apps felter i Authentik. Rediger her — det gemmes tilbage i Authentik og slår igennem på både portalen og Authentiks egen side.</p>
{% if saved %}<div class="flash">{{ saved }}</div>{% endif %}
<form method="post" action="/admin/apps">
<table style="margin-top:1rem">
<thead><tr><th style="width:24%">App</th><th style="width:18%">Gruppe</th><th>Beskrivelse</th></tr></thead>
<tbody>
{% for r in rows %}
<tr>
<td>{{ r.name }}<input type="hidden" name="slug" value="{{ r.slug }}"></td>
<td><input name="group" value="{{ r.group }}" placeholder="fx Home" list="groups"></td>
<td><input name="desc" value="{{ r.desc }}" placeholder="kort beskrivelse"></td>
</tr>
{% endfor %}
</tbody>
</table>
<datalist id="groups">
{% for g in rows|map(attribute='group')|reject('equalto','')|unique %}<option value="{{ g }}">{% endfor %}
</datalist>
<p style="margin-top:1.1rem"><button class="btn" type="submit">Gem alle</button></p>
</form>
{% endblock %}