* apply: Recorder.step_snap(page, name) captures both a JPEG screenshot and the page HTML for every major moment; every provider now calls step_snap at each logical step so failure reports contain the exact DOM and rendered state at every stage of the flow * ZIP report: each snapshot becomes snapshots/NN_<label>.jpg + snapshots/NN_<label>.html for AI-assisted debugging * web: Wohnungsliste zeigt nur noch Flats, die die eigenen Filter treffen; Match-Chip entfernt (Liste ist jetzt implizit matchend) * UI komplett auf Deutsch: Protokoll statt Logs, Administrator statt admin, Trockenmodus statt dry-run, Automatik pausiert statt circuit open, Alarm statt Alert, Abmelden statt Logout * Wohnungen-Header: Zeile 1 Info (Alarm + Filter), Zeile 2 Schalter mit echten Radio-Paaren (An/Aus) für Automatisch bewerben und Trockenmodus; hx-confirm auf den kritischen Radios; per-form CSS für sichtbaren Check-State * Protokoll: von/bis-Datumsfilter (Berliner Zeit) + CSV-Download (/logs/export.csv) mit UTC + lokaler Zeit Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
50 lines
2.5 KiB
HTML
50 lines
2.5 KiB
HTML
<h2 class="font-semibold mb-4">Benutzer verwalten</h2>
|
|
|
|
{% if request.query_params.get('ok') %}<div class="chip chip-ok mb-4">Benutzer angelegt.</div>{% endif %}
|
|
{% if request.query_params.get('err') == 'exists' %}<div class="chip chip-bad mb-4">Benutzername existiert bereits.</div>{% endif %}
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
<div>
|
|
<h3 class="font-semibold mb-2">Neuen Benutzer anlegen</h3>
|
|
<form method="post" action="/actions/users/create" class="space-y-3 max-w-md">
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
<div>
|
|
<label class="block text-xs uppercase text-slate-500 mb-1">Benutzername</label>
|
|
<input class="input" name="username" required>
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs uppercase text-slate-500 mb-1">Passwort (≥ 10 Zeichen)</label>
|
|
<input class="input" type="password" name="password" required>
|
|
</div>
|
|
<label class="inline-flex items-center gap-2">
|
|
<input type="checkbox" name="is_admin">
|
|
<span>Administrator-Rechte</span>
|
|
</label>
|
|
<button class="btn btn-primary" type="submit">Anlegen</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div>
|
|
<h3 class="font-semibold mb-2">Alle Benutzer</h3>
|
|
<div class="card divide-y divide-soft">
|
|
{% for u in users %}
|
|
<div class="px-3 py-2 flex items-center gap-2 text-sm">
|
|
<span class="flex-1">{{ u.username }}</span>
|
|
{% if u.is_admin %}<span class="chip chip-info">Administrator</span>{% endif %}
|
|
{% if u.disabled %}<span class="chip chip-bad">deaktiviert</span>
|
|
{% else %}<span class="chip chip-ok">aktiv</span>{% endif %}
|
|
{% if u.id != user.id %}
|
|
<form method="post" action="/actions/users/disable">
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
<input type="hidden" name="target_id" value="{{ u.id }}">
|
|
<input type="hidden" name="value" value="{% if u.disabled %}off{% else %}on{% endif %}">
|
|
<button class="btn btn-ghost text-xs" type="submit">
|
|
{% if u.disabled %}aktivieren{% else %}deaktivieren{% endif %}
|
|
</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|