{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Hospital Users" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Hospital Users" %}

{% trans "Manage hospital user accounts and reset passwords" %}

{% trans "Back to Config" %}
{% trans "Total Users" %}

{{ total_users }}

{% trans "Active" %}

{{ active_count }}

{% trans "Inactive" %}

{{ inactive_count }}

{% trans "Filters" %}
{% if user.is_px_admin %}
{% endif %}
{% trans "Clear" %}
{% trans "User Accounts" %}
{% trans "Showing" %} {{ page_obj.start_index|default:0 }}-{{ page_obj.end_index|default:0 }} {% trans "of" %} {{ page_obj.paginator.count|default:0 }}
{% for u in users %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Email" %} {% trans "Hospital" %} {% trans "Department" %} {% trans "Role(s)" %} {% trans "Status" %} {% trans "Actions" %}
{{ u.first_name.0 }}{{ u.last_name.0 }}
{{ u.get_full_name }}
{% if u.employee_id %}
{{ u.employee_id }}
{% endif %}
{{ u.email }} {% if u.hospital %} {{ u.hospital.name }} {% else %} - {% endif %} {% if u.department %} {{ u.department.get_localized_name }} {% else %} - {% endif %} {% for role_name in u.get_role_names %} {{ role_name }} {% empty %} - {% endfor %} {% if u.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}

{% trans "No users found" %}

{% trans "Try adjusting your filters" %}

{% if page_obj.has_other_pages %}
{% trans "Showing" %} {{ page_obj.start_index }}-{{ page_obj.end_index }} {% trans "of" %} {{ page_obj.paginator.count }} {% trans "entries" %}
{% for key, value in request.GET.items %} {% if key != 'page_size' and key != 'page' %} {% endif %} {% endfor %}
{% if page_obj.has_previous %} {% else %} {% endif %} {% for num in page_obj.paginator.page_range %} {% if num == page_obj.number %} {{ num }} {% elif num > page_obj.number|add:'-3' and num < page_obj.number|add:'3' %} {{ num }} {% elif num == 1 or num == page_obj.paginator.num_pages %} {{ num }} {% elif num == page_obj.number|add:'-3' or num == page_obj.number|add:'3' %} ... {% endif %} {% endfor %} {% if page_obj.has_next %} {% else %} {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}