diff --git a/CHANGELOG.md b/CHANGELOG.md index a1f4e134a..d828fd44c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,29 +11,41 @@ and this project adheres to ## Unreleased +* [asideactivity] creation of aside activity category fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/262) +* [vendee/person] fix typo "situation professionelle" => "situation professionnelle" * [main] add availableForUsers condition from locationType in the location API endpoint (champs-libres/departement-de-la-vendee/accent-suivi-developpement#248) * [main] add the current location of the user as API point + add it in the activity location list (champs-libres/departement-de-la-vendee/accent-suivi-developpement#247) +* [activity] improve show/new/edit templates, fix SEE and SEE_DETAILS acl +* [badges] create specific badge for TMS, and make person/thirdparty badges clickable with on-the-fly modal in : + * concerned groups items (activity, calendar) + * accompanyingCourseWork lists + * accompanyingCourse lists +* [acompanyingCourse] add initial comment on Resume page +## Test releases + +### test release 2021-12-11 + +* [main] add order field to civility * [main] change address format in case the country is France, in Address render box and address normalizer * [person] add validator for accompanying period with a test on social issues (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/76) * [activity] fix visibility for location * [origin] fix origin: use correctly the translatable strings - - * /!\ everyone must update the origin table. As there is only one row, execute `update chill_person_accompanying_period_origin set label = jsonb_build_object('fr', 'appel téléphonique');` + * /!\ everyone must update the origin table. As there is only one row, execute `update chill_person_accompanying_period_origin set label = jsonb_build_object('fr', 'appel téléphonique');` * [person] redirect bug fixed. * [action] add an unrelated issue within action creation. * [origin] fix origin: use correctly the translatable strings - * /!\ everyone must update the origin table. As there is only one row, execute `update chill_person_accompanying_period_origin set label = jsonb_build_object('fr', 'appel téléphonique');` + * /!\ everyone must update the origin table. As there is only one row, execute `update chill_person_accompanying_period_origin set label = jsonb_build_object('fr', 'appel téléphonique');` * [main] change order of civilities in civility fixtures (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] set min attr in the minimum of children field (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] add marital status date in person view (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] show number of children + allow set number of children to null (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] show acceptSMS option (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] add death information in person render box in twig and vue render boxes (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) +* [badge-entity] design coherency between pills badge-person and 3 kinds of badge-thirdparty +* [AddPersons] suggestions row are clickable, not only checkbox -## Test releases - ### test release 2021-12-06 * [main] address: use search API end points for getting postal code and reference address (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/316) @@ -49,8 +61,6 @@ and this project adheres to * [visgraph] improve and fix bugs on vis-network relationship graph * [bugfix] posting of birth- and deathdate through api fixed. * [suggestions] improve suggestions lists -* [badge-entity] design coherency between badge-person and 3 kinds of badge-thirdparty -* [AddPersons] suggestions row are clickable, not only checkbox ### Test release 2021-11-19 - bis diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig index 2808cca60..d6d0ed43d 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig @@ -3,6 +3,14 @@ {{ path(pathname, parms) }} {% endmacro %} +{% macro insert_onthefly(type, entity) %} + {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { + action: 'show', displayBadge: true, + targetEntity: { name: type, id: entity.id }, + buttonText: entity|chill_entity_render_string + } %} +{% endmacro %} + {% macro computeWidth(nbBlocks) %} {{ 'flex-basis: ' ~ (100 / nbBlocks)|round(1) ~ '%;' }} {% endmacro %} @@ -13,6 +21,7 @@ {% set blocks = blocks|merge([{ 'title': 'Others persons'|trans, 'items': entity.persons, + 'type': 'person', 'path' : 'chill_person_view', 'key' : 'person_id' }]) %} @@ -20,11 +29,13 @@ {% set blocks = blocks|merge([{ 'title': 'Persons in accompanying course'|trans, 'items': entity.personsAssociated, + 'type': 'person', 'path' : 'chill_person_view', 'key' : 'person_id' },{ 'title': 'Third persons'|trans, 'items': entity.personsNotAssociated, + 'type': 'person', 'path' : 'chill_person_view', 'key' : 'person_id', }]) %} @@ -34,6 +45,7 @@ {% set blocks = blocks|merge([{ 'title': 'Third parties'|trans, 'items': entity.thirdParties, + 'type': 'thirdparty', 'path' : 'chill_crud_3party_3party_view', 'key' : 'id', }]) %} @@ -42,6 +54,7 @@ {% set blocks = blocks|merge([{ 'title': 'Users concerned'|trans, 'items': entity.users, + 'type': 'user', 'key' : 'id', }]) %} {% endif %} @@ -59,22 +72,12 @@
{{ activity.date|format_date('short') }}
{% endif %} -+ {{ entity.date|format_date('short') }} +
+ {% endif %} +{{ 'No social issues associated'|trans }}
- {% else %} - {% for si in entity.socialIssues %}{{ si|chill_entity_render_box }}{% endfor %} - {% endif %} -{{ 'No social issues associated'|trans }}
+ {% else %} + {% for si in entity.socialIssues %}{{ si|chill_entity_render_box }}{% endfor %} + {% endif %} +{{ 'No social actions associated'|trans }}
- {% else %} - {% for sa in entity.socialActions %}{{ sa|chill_entity_render_box }}{% endfor %} - {% endif %} -- {{ entity.location.name }} - ({{ entity.location.locationType.title|localize_translatable_string }}) -
- {{ entity.location.address|chill_entity_render_box }} - {% else %} - {{ 'No address given'|trans }} ++ {{ entity.location.locationType.title|localize_translatable_string }} + {{ entity.location.name }} +
+{{ $t('pick_social_issue_linked_with_action') }}