{% extends 'base.html' %} {% block title %}Edit User - Admin Panel{% endblock %} {% block content %}

Edit User: {{ user.username }}

Back to Users
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Update User Information
Username cannot be changed
Optional - for password reset
Admin users have full system access
Current password (click eye icon to show/hide)
Minimum 6 characters, leave blank to keep current password
Uncheck karen jo feature user ko nahi dikhani.
Debug Info:
Allowed Features: "{{ user.allowed_features }}"
Type: {{ user.allowed_features.__class__.__name__ }}
Length: {{ user.allowed_features|length if user.allowed_features else 0 }}
Is None: {{ user.allowed_features is none }}
Is Empty: {{ user.allowed_features == '' }}
Split: {{ user.allowed_features.split(',') if user.allowed_features and user.allowed_features != 'None' and user.allowed_features != '' else '[]' }}
{% if user.is_active %} Active {% else %} Inactive {% endif %}
Account status cannot be changed from this form
{{ user.created_at }}
{{ user.last_login }}
Warning: Changing user role will affect their system access immediately.
Cancel
{% endblock %}