Fix: disabled Aktiv-Checkbox bei eigenem Account sendete keinen Wert

This commit is contained in:
Flo Hartmann
2026-08-21 23:52:27 +00:00
parent 6950cffd4d
commit aad146be93

View File

@@ -52,7 +52,8 @@
{% if aktion == 'bearbeiten' %}
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" name="active" {% if ziel.active %}checked{% endif %}
{% if ziel and ziel.id == user.id %}disabled{% endif %}>
{% if ziel and ziel.id == user.id %}aria-disabled="true" title="Eigener Status kann nicht ge&auml;ndert werden" class="opacity-60 cursor-not-allowed" onclick="return false;"{% endif %}>
{% if ziel and ziel.id == user.id %}<input type="hidden" name="active" value="on">{% endif %}
Aktiv
</label>
{% endif %}