diff --git a/app/templates/auth/user_form.html b/app/templates/auth/user_form.html index 7f42cae..500b8fb 100644 --- a/app/templates/auth/user_form.html +++ b/app/templates/auth/user_form.html @@ -5,20 +5,46 @@ {% block content %}
+ + {# ── Account Status card (edit mode only, not own account) ── #} + {% if user and user.id != current_user.id %} +
+
+
+ Account Status: + + {{ 'Active' if user.active else 'Disabled' }} + +
+ {% if user.active %} + Disabling this account will immediately prevent the user from logging in. + {% else %} + This account is currently disabled — the user cannot log in. + {% endif %} +
+
+
+ + +
+
+
+ {% endif %} + + {# ── Edit form ── #}

{{ title }}

- {% if user and not user.active %} -
- - This account is currently disabled. The user cannot log in. -
- {% endif %}
{{ form.hidden_tag() }} - +
{{ form.username.label(class="form-label") }} @@ -29,7 +55,7 @@
{% endif %}
- +
{{ form.email.label(class="form-label") }} {{ form.email(class="form-control") }} @@ -40,7 +66,7 @@ {% endif %}
- +
{{ form.password.label(class="form-label") }} @@ -51,7 +77,7 @@
{% endif %}
- +
{{ form.confirm_password.label(class="form-label") }} {{ form.confirm_password(class="form-control") }} @@ -62,38 +88,11 @@ {% endif %}
- +
{{ form.role.label(class="form-label") }} {{ form.role(class="form-select") }}
- - {% if user and user.id != current_user.id %} -
- -
- - {{ 'Active' if user.active else 'Disabled' }} - - - - - -
-
- {% if user.active %} - Disabling this account will immediately prevent the user from logging in. - {% else %} - Enabling this account will restore the user's ability to log in. - {% endif %} -
-
- {% endif %}