{% extends "@ChillMain/layout.html.twig" %} {% import '@ChillMain/Address/macro.html.twig' as address %} {% set title_ = 'Show third party %name%'|trans({'%name%' : thirdParty.name }) %} {% block title title_ %} {% block content %}

{{ title_ }} {{ (thirdParty.active ? 'Active, shown to users' : 'Inactive, not shown to users')|trans }}

{{ 'Name'|trans }}
{{ thirdParty.name }}
{{ 'Type'|trans }}
{% set types = [] %} {% for t in thirdParty.type %} {% set types = types|merge( [ ('chill_3party.key_label.'~t)|trans ] ) %} {% endfor %}
{{ types|join(', ') }}
{{ 'Centers'|trans }}
{{ 'The party is visible in those centers'|trans }} : {{ thirdParty.centers|join(', ') }}
{{ 'Phonenumber'|trans }}
{{ thirdParty.telephone|chill_print_or_message("thirdparty.No_phonenumber") }}
{{ 'email'|trans }}
{{ thirdParty.email|chill_print_or_message("thirdparty.No_email") }}
{{ 'Address'|trans }}
{% if thirdParty.address == null %} {{ 'No address given'|trans }} {% else %} {{ address._render(thirdParty.address, {'with_valid_from': false }) }} {% endif %}
{{ 'Comment'|trans }}
{{ thirdParty.comment|chill_print_or_message("thirdparty.No_comment") }}
{% endblock %}