34 lines
1.9 KiB
HTML
34 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div class="back-row top">
|
|
<a class="big-btn small neutral" href="{{ url_for('benutzer_verwaltung') }}">← Zurück</a>
|
|
</div>
|
|
<form method="post" action="{{ url_for('benutzer_bearbeiten', benutzer_id=b.id) }}" class="compact-form" autocomplete="off">
|
|
<div class="card compact">
|
|
<div class="form-group">
|
|
<label>Benutzername</label>
|
|
<div class="static-value">{{ b.benutzername }}</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="anzeigename">Anzeigename <small>(optional)</small></label>
|
|
<input type="text" id="anzeigename" name="anzeigename" value="{{ b.anzeigename or '' }}" maxlength="60" autocomplete="off">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="passwort">Neues Passwort setzen <small>(leer lassen = unverändert, mind. {{ mindestlaenge }} Zeichen)</small></label>
|
|
<input type="password" id="passwort" name="passwort" autocomplete="new-password">
|
|
</div>
|
|
<div class="rights-list">
|
|
{% for key, label in RECHTE.items() %}
|
|
<label class="check-row"><input type="checkbox" name="recht_{{ key }}" value="1" {{ 'checked' if b['recht_' ~ key] else '' }}> {{ label }}</label>
|
|
{% endfor %}
|
|
<label class="check-row check-admin"><input type="checkbox" name="admin" value="1" {{ 'checked' if b.admin else '' }}> Admin (alle Rechte + Benutzerverwaltung)</label>
|
|
<label class="check-row"><input type="checkbox" name="aktiv" value="1" {{ 'checked' if b.aktiv else '' }} {{ 'disabled' if ich_id == b.id else '' }}> Konto aktiv{% if ich_id == b.id %} <small>(eigenes Konto)</small>{% endif %}</label>
|
|
{% if ich_id == b.id and b.aktiv %}<input type="hidden" name="aktiv" value="1">{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="action-row compact">
|
|
<button type="submit" class="big-btn small primary">✓ Speichern</button>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|