{% extends "pos/base.html" %} {% load static %} {% block title %}User Departments{% endblock %} {% block content %}
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}

User Departments

Kitchen users ko multiple departments ke sath attach karein.

{% for row in rows %} {% empty %} {% endfor %}
ID User Departments Count Action
{{ row.user.id }} {{ row.user.username }} {% if row.user.email %}
{{ row.user.email }}
{% endif %} {% if row.user.is_superuser %} Superuser {% endif %}
{% if row.departments %}
{% for dept in row.departments %} {{ dept.name }} {% endfor %}
{% else %} {% if row.user.is_superuser %} All Departments {% else %} No Department Assigned {% endif %} {% endif %}
{% if row.user.is_superuser %} All {% else %} {{ row.department_count }} {% endif %} Edit
No active users found.
{% endblock %}