{% set isIndex = 'index' == tmpl ? true : false %} {% set tmpl = 'list' %} {% extends isIndex ? '@MauticCore/Default/content.html.twig' : '@MauticCore/Default/raw_output.html.twig' %} {% block mauticContent %}planStakeholder{% endblock %} {% block headerTitle %}{{ 'mautic.plan.stakeholder.header.index'|trans }}{% endblock %} {% block content %}
| {{- include('@MauticCore/Helper/list_actions.html.twig', { 'item': item, 'templateButtons': { 'edit': canEdit, 'delete': securityHasEntityAccess(permissions['plan:stakeholders:deleteown'], permissions['plan:stakeholders:deleteother'], item.createdBy), }, 'langVar': 'plan.stakeholder', }) -}} | {{ item.id }} | {% set typeIcon = plan_item_type_icon('stakeholder', item.type) %} {% if typeIcon %}{% endif %} | {{ plan_item_type_name('stakeholder', item.type) ?? 'mautic.plan.description_item.type.unknown'|trans({'%key%': item.type}) }} | {% if canEdit %} {{ item.name }} {% else %} {{ item.name }} {% endif %} | {{ item.role }} | {% if item.email %}{{ item.email }}{% endif %} | {% if item.phone %}{{ item.phone }}{% endif %} | {{ (item.isPublished ? 'mautic.plan.stakeholder.active' : 'mautic.plan.stakeholder.inactive')|trans }} | {# The plans this stakeholder is assigned to, through their Stakeholders tab. #} {% set plans = item.planLinks|default([]) %} {% for link in plans %} {{ link.plan.name }}{% if link.roleInPlan %} ({{ link.roleInPlan }}){% endif %}{% if not loop.last %}, {% endif %} {% else %} {{ 'mautic.plan.stakeholder.no_plans'|trans }} {% endfor %} |