{% extends 'researcher_workspace/staff/user_search.html' %} {% load class_tag %} {% load data_as_table %} {% block breadcrumb %} {{ block.super }}
  • Details
  • {% endblock breadcrumb %} {% block content %}

    User Details

    {% if not user_does_not_exist or is_user %}
    {% if is_user and user.is_superuser %} See user on admin console {% endif %}

    User ARO status

    {% if api_user.courses and api_user.courses.course %} {% for course in api_user.courses.course %} {% if course.category_level_type == "Post Graduate" and course.category_type != "Masters (Coursework)" and course.stage_type == "Admitted" %}

    Student is RHD

    {% endif %} {% endfor %} {% endif %} {% if "Academic" in api_user.group_type or aro_whitelisted %}

    User can be ARO

    {% else %}

    User is ineligible to be an ARO, unless added to the whitelist below

    {% endif %} {% if user.is_staff %} {% if aro_whitelisted %}
    User whitelisted by: {{ aro_whitelisted.permission_granted_by }}
    User whitelisted because: {{ aro_whitelisted.comment }}
    User whitelisted on: {{ aro_whitelisted.created }}
    {% csrf_token %}
    {% else %}
    {% csrf_token %}
    {% endif %} {% endif %}
    {% endif %} {% if user_does_not_exist %}

    No user exists in LDAP with that username

    {% else %}

    LDAP User Details

    {% for field in user_fields %} {% endfor %}
    {{ field }} {{ user_details|get_attr:field }}

    BOOMI API User Details

    {% if api_user %} {{ api_user|print_data_as_html_table }} {% else %}

    No results returned by BOOMI

    {% endif %}
    {% endif %} {% endblock content %}