{% extends "base.html" %} {% block title %}User Management - Simplified{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Simplified User Management

Manage users with the new 4-tier permission system: Superadmin → Admin → Manager → Worker

👤 Create New User
⚙️ Edit User Rights

Select a user from the table below to edit their rights and module access.

👥 Current Users
{% if users %}
{% for user in users %} {% endfor %}
Username Role Modules Access Level Actions
{{ user.username }} {{ user.role.title() }}
{% if user.role in ['superadmin', 'admin'] %} All Modules {% elif user.modules %} {% for module in user.get_modules() %} {{ module.title() }} {% endfor %} {% else %} No modules assigned {% endif %}
{% if user.role == 'superadmin' %} Full system access {% elif user.role == 'admin' %} Full app access {% elif user.role == 'manager' %} Full module access + reports {% elif user.role == 'worker' %} Basic operations only (no reports) - Can have multiple modules {% endif %}
{% if user.username != session.get('user') %} {% endif %}
{% else %}

No users found. Create your first user above!

{% endif %}
{% endblock %}