{% extends "base.html" %} {% block title %}{{ t('Users') }}{% endblock %} {% block content %}

{{ t('Users') }}

+ {{ t('New') }}
{% for u in rows %} {% endfor %}
{{ t('Username') }}{{ t('Full name') }}{{ t('Role') }}{{ t('Branches') }}{{ t('Language') }}{{ t('Active') }}
{{ u.username }}{{ u.full_name or '' }}{% if u.level == 'prime' %}{{ t('Software provider (prime)') }}{% elif u.level == 'super' %}{{ t('System administrator (IT)') }}{% else %}{{ t(u.role|capitalize) }}{% endif %}{% if u.can_approve %} {{ t('Approver') }}{% endif %} {% if u.role == 'admin' or u.all_branches %}{{ t('All branches') }}{% else %}{% for c in ub.get(u.id, []) %}{{ c }} {% endfor %}{% endif %} {{ 'العربية' if u.lang == 'ar' else 'English' }}{{ '✓' if u.active }}
{% endblock %}