{% load custom_tags_and_filters %}

Basic Information

  • First name: {{ user_profile.first_name }}
  • Last name: {{ user_profile.last_name }}
  • Username: {{ user_profile.username }}
  • Email: {{ user_profile.email }}
  • {% if user.is_any_part_of_staff and user_profile.type %}
  • Type: {{ user_profile.type }}
  • {% endif %}
  • Date joined: {{ user_profile.date_joined }}
  • Last login: {{ user_profile.last_login|default_if_none:"Never" }}
  • Access expiration: {{ user_profile.access_expiration|default_if_none:"Access never expires" }}
  • {% if user.is_any_part_of_staff %}
  • Account: {{ user_profile.is_active|yesno:"Active,Inactive" }}
  • Role(s): {{ user_profile.roles|join:", "|default:"None" }}
  • {{ customizations|get_item:"facility_rules_name" }} required: {{ user_profile.training_required|yesno|capfirst }}
  • {% if user_profile.badge_number %}
  • Badge number: {{ user_profile.badge_number }}
  • {% endif %} {% if user_profile.notes %}
  • Notes:
    {{ user_profile.notes|linebreaksbr }}
  • {% endif %} {% endif %}

Projects

{% if user_profile.projects.exists %}
    {% if user_profile.active_projects %}
  • Active:
      {% for project in user_profile.active_projects %}
    • {{ project.display_with_status_and_managers|safe }} {% if user.is_accounting_officer or user.is_user_office or user.is_facility_manager or user.is_superuser %} {% endif %}
    • {% endfor %}
  • {% endif %} {% if user_profile.inactive_projects %}
  • Inactive:
      {% for project in user_profile.inactive_projects %}
    • {{ project.display_with_status_and_managers|safe }} {% if user.is_accounting_officer or user.is_user_office or user.is_facility_manager or user.is_superuser %} {% endif %}
    • {% endfor %}
  • {% endif %}
{% else %}
    {% if user == user_profile %} You do not have any projects. {% else %} This user does not have any projects. {% endif %}
{% endif %}

Tool Qualifications

{% if qualifications %}
    {% for qualification in qualifications %}
  • {{ qualification.tool.name }} {% if qualification.qualification_level %}({{ qualification.qualification_level.name }}){% endif %}
  • {% endfor %}
{% else %}
    {% if user == user_profile %} You are not qualified for any tools. {% else %} This user is not qualified for any tools. {% endif %}
{% endif %}
{% if user_profile.primary_tool_owner.all or user_profile.backup_for_tools.all or user_profile.superuser_for_tools.all or user_profile.staff_for_tools.all or user_profile.adjustment_request_reviewer_on_tools.all %}

Tool responsibilities

    {% if user_profile.primary_tool_owner.all %}
  • Primary owner:
      {% for tool in user_profile.primary_tool_owner.all %}
    • {{ tool }}
    • {% endfor %}
  • {% endif %} {% if user_profile.backup_for_tools.all %}
  • Backup owner:
      {% for tool in user_profile.backup_for_tools.all %}
    • {{ tool }}
    • {% endfor %}
  • {% endif %} {% if user_profile.staff_for_tools.all %}
  • Staff:
      {% for tool in user_profile.staff_for_tools.all %}
    • {{ tool }}
    • {% endfor %}
  • {% endif %} {% if user_profile.superuser_for_tools.all %}
  • Superuser:
      {% for tool in user_profile.superuser_for_tools.all %}
    • {{ tool }}
    • {% endfor %}
  • {% endif %} {% if user_profile.adjustment_request_reviewer_on_tools.all %}
  • Adjustment request reviewer:
      {% for tool in user_profile.adjustment_request_reviewer_on_tools.all %}
    • {{ tool }}
    • {% endfor %}
  • {% endif %}
{% endif %} {% if user_profile.accessible_access_levels.all %}

Physical access levels

    {% for physical_access in user_profile.accessible_access_levels.all %}
  • {{ physical_access }}
  • {% endfor %}
{% endif %} {% if user_profile.managed_users.all or user_profile.supervisors.all or user_profile.managed_projects.all or user_profile.managed_accounts.all %}

Management

    {% if user_profile.managed_accounts.all %}
  • Managed accounts:
      {% for managed_account in user_profile.managed_accounts.all %}
    • {{ managed_account.name }} {% if user.is_accounting_officer or user.is_user_office or user.is_facility_manager or user.is_superuser %} {% endif %}
    • {% endfor %}
  • {% endif %} {% if user_profile.managed_projects.all %}
  • Managed projects:
      {% for managed_project in user_profile.managed_projects.all %}
    • {{ managed_project.get_display }} {% if user.is_accounting_officer or user.is_user_office or user.is_facility_manager or user.is_superuser %} {% endif %}
    • {% endfor %}
  • {% endif %} {% if user_profile.managed_users.all %}
  • Managed users:
      {% for managed_user in user_profile.managed_users.all %}
    • {{ managed_user.get_name }} {% if user.is_any_part_of_staff %} {% endif %}
    • {% endfor %}
  • {% endif %} {% if user_profile.supervisors.all %}
  • Supervisors:
      {% for supervisor in user_profile.supervisors.all %}
    • {{ supervisor.get_name }} {% if user.is_any_part_of_staff %} {% endif %}
    • {% endfor %}
  • {% endif %}
{% endif %} {% if user.is_any_part_of_staff %} {% if user_profile.groups.exists %}

Groups

    {% for group in user_profile.groups.all %}
  • {{ group }}
  • {% endfor %}
{% endif %} {% if safety_trainings or onboarding_phases %}

Checklists

    {% if safety_trainings %}
  • Safety Trainings:
      {% for safety_training in safety_trainings %}
    • {{ safety_training }}:
    • {% endfor %}
  • {% endif %} {% if onboarding_phases %}
  • Onboarding Phases:
      {% for onboarding_phase in onboarding_phases %}
    • {{ onboarding_phase }}:
    • {% endfor %}
  • {% endif %}
{% endif %} {% endif %}