{% extends "layouts/base.twig" %} {% block title %}{{ translations.external_collaborators }}{% endblock %} {% block page_heading %}

{{ translations.external_collaborators }}

{{ translations.external_collaborators_subtitle }}

{% endblock %} {% block content %}

{{ translations.consultant_access_list }}

{% if collaborators|length == 0 %} {% else %} {% for c in collaborators %} {% set fullName = ((c.first_name ?? '') ~ ' ' ~ (c.last_name ?? ''))|trim %} {% set isActive = c.is_active ? 1 : 0 %} {% endfor %} {% endif %}
# {{ translations.user }} {{ translations.contact }} {{ translations.position }} {{ translations.level }} {{ translations.status }} {{ translations.actions }}
{{ translations.no_records_found }}
#{{ c.membership_id }}
{{ fullName ?: translations.no_name }} {{ translations.account_id }}: {{ c.auth_user_id }}
{{ c.email ?: '---' }} {{ c.phone ?: '---' }}
{% set areas = position_areas[c.position_id] ?? [] %}
{{ c.position_name ?: '---' }} {% if areas|length > 0 %}
{% for area in areas %} {{ area }} {% endfor %}
{% elseif c.position_id %} {{ translations.no_areas_assigned }} {% endif %}
{{ c.level_name ?: '---' }} {% if c.is_active %} {{ translations.active }} {% else %} {{ translations.inactive }} {% endif %}
{% if c.is_active %} {% else %} {% endif %}
{# ===================== MODAL: GRANT ACCESS ===================== #} {# ===================== MODAL: EDIT ACCESS ===================== #} {# ============================================= MODAL: AREA TEMPLATES (global configuration) ============================================= #} {# ============================================= MODAL: AREA DESCRIPTIONS (per consultant) ============================================= Obszary konsultanta są dziedziczone ze stanowiska — tu edytujemy wyłącznie OPISY i OBOWIĄZKI dla każdego z nich (dane informacyjne). #} {% endblock %} {% block scripts %} {% endblock %}