{% extends "pos/base.html" %} {% load static %} {% block title %}User Departments{% endblock %} {% block content %}
Kitchen users ko multiple departments ke sath attach karein.
| 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. | ||||