diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/sass/thirdparty.scss b/src/Bundle/ChillThirdPartyBundle/Resources/public/sass/thirdparty.scss index 952b011ec..c4194a20e 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/sass/thirdparty.scss +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/sass/thirdparty.scss @@ -48,4 +48,12 @@ div.chill_contact { content: '\f095'; } } -} \ No newline at end of file +} +div.thirdparty-list { + label.counter { + float: right; + span { + font-weight: bold; + } + } +} diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/index.html.twig b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/index.html.twig index c741dd6c9..12f4560c2 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/index.html.twig +++ b/src/Bundle/ChillThirdPartyBundle/Resources/views/ThirdParty/index.html.twig @@ -3,64 +3,101 @@ {% block title 'List of third parties'|trans %} {% block content %} -
{{ 'No third parties'|trans }}
- {% else %} - - -| - | {{ 'Name'|trans }} | -{{ 'Category'|trans }} | -- |
|---|---|---|---|
| {{ (tp.active ? '' : '')|raw }} | -{{ tp.name }} | - {% set types = [] %} - {% for t in tp.type %} - {% set types = types|merge( [ ('chill_3party.key_label.'~t)|trans ] ) %} - {% endfor %} -{{ types|join(', ') }} | -- - | -
{{ 'No third parties'|trans }}
+ {% else %} - {% if is_granted('CHILL_3PARTY_3PARTY_CREATE') %} -| + | {{ 'Name'|trans }} + + | +{{ 'Category'|trans }} + + | +{{ 'Address'|trans }} + + | ++ |
|---|---|---|---|---|
| {{ (tp.active ? '' : '')|raw }} | +{{ tp.name }} | + {% set types = [] %} + {% for t in tp.type %} + {% set types = types|merge( [ ('chill_3party.key_label.'~t)|trans ] ) %} + {% endfor %} +{{ types|join(', ') }} | ++ {{ tp.address|chill_entity_render_box({'multiline': false, 'with_valid_from': false}) }} + | ++ + | +