mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 00:04:26 +00:00
67 lines
2.4 KiB
Twig
67 lines
2.4 KiB
Twig
{% 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 %}
|
|
<div class="grid-10 centered">
|
|
<h1>
|
|
{{ title_ }}
|
|
<span class="chill__box {{ thirdParty.active ? 'green' : 'red' }}">{{ (thirdParty.active ? 'Active, shown to users' : 'Inactive, not shown to users')|trans }}</span>
|
|
</h1>
|
|
|
|
<dl class="chill_view_data">
|
|
<dt>{{ 'Name'|trans }}</dt>
|
|
<dd>{{ thirdParty.name }}</dd>
|
|
|
|
<dt>{{ 'Type'|trans }}</dt>
|
|
{% set types = [] %}
|
|
{% for t in thirdParty.type %}
|
|
{% set types = types|merge( [ ('chill_3party.key_label.'~t)|trans ] ) %}
|
|
{% endfor %}
|
|
<dd>{{ types|join(', ') }}</dd>
|
|
|
|
<dt>{{ 'Centers'|trans }}</dt>
|
|
<dd>{{ 'The party is visible in those centers'|trans }} : {{ thirdParty.centers|join(', ') }}</dd>
|
|
|
|
<dt>{{ 'Phonenumber'|trans }}</dt>
|
|
<dd>{{ thirdParty.telephone|chill_print_or_message("thirdparty.No_phonenumber") }}</dd>
|
|
|
|
<dt>{{ 'email'|trans }}<dt>
|
|
<dd>{{ thirdParty.email|chill_print_or_message("thirdparty.No_email") }}</dd>
|
|
|
|
<dt>{{ 'Address'|trans }}</dt>
|
|
<dd>
|
|
{% if thirdParty.address == null %}
|
|
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
|
{% else %}
|
|
{{ address._render(thirdParty.address, {'with_valid_from': false }) }}
|
|
{% endif %}
|
|
</dd>
|
|
|
|
<dt>{{ 'Comment'|trans }}</dt>
|
|
<dd>{{ thirdParty.comment|chill_print_or_message("thirdparty.No_comment") }}</dd>
|
|
|
|
</dl>
|
|
|
|
<ul class="record_actions">
|
|
<li class="cancel">
|
|
<a class="sc-button bt-cancel" href="{{ chill_return_path_or('chill_3party_3party_index') }}">
|
|
{{ 'Cancel'|trans }}
|
|
</a>
|
|
</li>
|
|
|
|
{% if is_granted('CHILL_3PARTY_3PARTY_UPDATE', thirdParty) %}
|
|
<li>
|
|
<a class="sc-button bt-update" href="{{ chill_path_forward_return_path('chill_3party_3party_update', { 'thirdparty_id': thirdParty.id }) }}">
|
|
{{ 'Update'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
</div>
|
|
{% endblock %} |