{% set channel_platforms = channel_platforms|default([]) %} {% set platform_intent_choices = platform_intent_choices|default({ 'Nieokreślone': 'undecided', 'Planowane': 'planned', 'Później': 'later', 'Wykluczone': 'excluded' }) %} {% set current_channels = {} %} {% if project is defined and project.projectPlatformStatuses is defined %} {% for channel in project.projectPlatformStatuses %} {% if channel.platform and channel.platform.id %} {% set current_channels = current_channels|merge({ (channel.platform.id): channel.intent }) %} {% endif %} {% endfor %} {% endif %} {% if channel_platforms is not empty %}