From 50b7df1f4ade75d122fe89477db1d0fb51af84ca Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 11 Feb 2022 15:16:28 +0100 Subject: [PATCH 01/30] adding thirdparty info --- .../views/PersonResource/list.html.twig | 38 ++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig index 62b9701ec..9b0586779 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig @@ -14,6 +14,25 @@ {{ encore_entry_link_tags('mod_pickentity_type') }} {% endblock %} +{% macro rowCustomButtons(tp) %} + {% if is_granted('CHILL_3PARTY_3PARTY_UPDATE', tp) %} +
  • + +
  • + {% endif %} + {% if is_granted('CHILL_3PARTY_3PARTY_SHOW', tp) %} +
  • + +
  • + {% endif %} +{% endmacro %} + {% block personcontent %}

    {{ 'List of resources'|trans }}

    @@ -25,18 +44,27 @@
    {% if resource.person is not null %} -
    - +
    + {{ resource.person|chill_entity_render_box() }} + {# {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { action: 'show', displayBadge: true, targetEntity: { name: 'person', id: resource.person.id }, buttonText: resource.person|chill_entity_render_string, isDead: resource.person.deathdate is not null } %} - + #}
    {% elseif resource.thirdparty is not null %} -
    +
    + {{ resource.thirdparty|chill_entity_render_box({ + 'render': 'bloc', + 'showContacts': false, + 'addLink': false, + 'isConfidential': (resource.thirdparty.contactDataAnonymous ? true : false) + }) }} +
    + {#
    {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { action: 'show', displayBadge: true, @@ -45,7 +73,7 @@ parent: resource.thirdparty.parent } %} -
    +
    #} {% else %}
    {{ resource.freetext }} From 01a3af694ad7c7465fb08b7c89be75d2d2cbd5bb Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 11 Feb 2022 15:49:49 +0100 Subject: [PATCH 02/30] activity: can click through the cross icon for removing person in concerned group --- .../vuejs/Activity/components/ConcernedGroups/PersonBadge.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue index 0a611e217..11b8063a3 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups/PersonBadge.vue @@ -1,7 +1,7 @@