{% set isIndex = 'index' == tmpl ? true : false %} {% set tmpl = 'list' %} {% extends isIndex ? '@MauticCore/Default/content.html.twig' : '@MauticCore/Default/raw_output.html.twig' %} {% block mauticContent %}programStakeholder{% endblock %} {% block headerTitle %}{{ 'mautic.program.stakeholder.header.index'|trans }}{% endblock %} {% block content %}
| {{- include('@MauticCore/Helper/list_actions.html.twig', { 'item': item, 'templateButtons': { 'edit': canEdit, 'delete': securityHasEntityAccess(permissions['program:stakeholders:deleteown'], permissions['program:stakeholders:deleteother'], item.createdBy), }, 'langVar': 'initiative.stakeholder', }) -}} | {{ item.id }} | {% set typeIcon = program_item_type_icon('stakeholder', item.type) %} {% if typeIcon %}{% endif %} | {{ program_item_type_name('stakeholder', item.type) ?? 'mautic.program.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.program.stakeholder.active' : 'mautic.program.stakeholder.inactive')|trans }} | {# The initiatives this stakeholder is assigned to, through their Stakeholders tab. #} {% set initiatives = item.initiativeLinks|default([]) %} {% for link in initiatives %} {{ link.initiative.name }}{% if link.roleInInitiative %} ({{ link.roleInInitiative }}){% endif %}{% if not loop.last %}, {% endif %} {% else %} {{ 'mautic.program.stakeholder.no_plans'|trans }} {% endfor %} |