Fix: disabled Aktiv-Checkbox bei eigenem Account sendete keinen Wert
This commit is contained in:
@@ -52,7 +52,8 @@
|
|||||||
{% if aktion == 'bearbeiten' %}
|
{% if aktion == 'bearbeiten' %}
|
||||||
<label class="flex items-center gap-2 text-sm">
|
<label class="flex items-center gap-2 text-sm">
|
||||||
<input type="checkbox" name="active" {% if ziel.active %}checked{% endif %}
|
<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ä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
|
Aktiv
|
||||||
</label>
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user