diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7c1c3d1f..57ecdf5a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,9 +11,14 @@ and this project adheres to
## Unreleased
-* [Activity form] invert 'incoming' and 'receiving' in Activity form
-* [Activity form] keep the same order for 'attendee' field in new and edit form
-* [list with period] use "sameas" test operator to introduce requestor in list
+* [Datepickers] datepickers fixed when using keyboard to enter date (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/545)
+* [social_action] Display 'agents traitants' in parcours resumé and social action list (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/568)
+* [Person_search] Closed parcours shown within an accordeon that can be opened/closed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/574)
+
+## Test releases
+
+### 2021-04-24
+
* [notification email on course designation] allow raw string in email content generation
* [Accompanying period work] list evaluations associated to a work by startDate, and then by id, from the most recent to older
* [Documents] Change wording 'créer' to 'enregistrer' (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/634)
@@ -25,10 +30,15 @@ and this project adheres to
* [Course comment] add validationConstraint NotNull and NotBlank on comment content, to avoid sql error
* [Notifications] delay the sending of notificaiton to kernel.terminate
* [Notifications / Period user change] fix the sending of notification when user changes
+* [Activity form] invert 'incoming' and 'receiving' in Activity form
+* [Activity form] keep the same order for 'attendee' field in new and edit form
+* [list with period] use "sameas" test operator to introduce requestor in list
+* [notification email on course designation] allow raw string in email content generation
+* [Accompanying period work] list evaluations associated to a work by startDate, and then by id, from the most recent to older
-## Test releases
### 2021-04-13
+
* [person] household address: add a form for editing the validFrom date (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/541)
* [person] householdmemberseditor: fix composition type bug in select form (vuejs) (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/543)
* [docgen] add more persons choices in docgen for course: amongst requestor (if person), resources of course (if person), and PersonResource (if person);
diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue
index 51957b010..4691a860a 100644
--- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue
+++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue
@@ -54,19 +54,19 @@
{{ $t('activity.select_first_a_social_issue') }}
-
-
-
-
+
+
+
+
- {{ $t('activity.social_action_list_empty') }}
+ {{ $t('activity.social_action_list_empty') }}
@@ -111,7 +111,7 @@ export default {
return this.$store.state.socialIssuesOther;
},
socialActionsList() {
- return this.$store.state.socialActionsList;
+ return this.$store.getters.socialActionsListSorted;
},
socialActionsSelected() {
return this.$store.state.activity.socialActions;
diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js
index f94381fc2..ca56a5dae 100644
--- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js
+++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js
@@ -101,6 +101,9 @@ const store = createStore({
state.activity.activityType.thirdPartiesVisible !== 0)
);
},
+ socialActionsListSorted(state) {
+ return [ ...state.socialActionsList].sort((a, b) => a.ordering - b.ordering);
+ },
},
mutations: {
// SocialIssueAcc
@@ -131,7 +134,6 @@ const store = createStore({
state.socialActionsList = [];
},
addActionInList(state, action) {
- //console.log('add action list', action.id);
state.socialActionsList.push(action);
},
updateActionsSelected(state, actions) {
diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss
index 1750533f8..e4cdcb10c 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss
+++ b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss
@@ -16,6 +16,9 @@
// Chill forms
@import './scss/forms';
+// Extend bootstrap accordion
+@import './scss/accordion';
+
// Chill record_actions
@import './scss/record_actions';
diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/accordion.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/accordion.scss
new file mode 100644
index 000000000..88d4b5e08
--- /dev/null
+++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/accordion.scss
@@ -0,0 +1,11 @@
+.accordion {
+ // show a folded / label on accordion
+ button[aria-expanded="true"] > span.folded,
+ button[aria-expanded="false"] > span.unfolded { display: none; }
+ button[aria-expanded="false"] > span.folded,
+ button[aria-expanded="true"] > span.unfolded { display: inline; }
+
+ .accordion-item {
+ margin-bottom: 1rem;
+ }
+}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/flex_table.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/flex_table.scss
index 2383e43b1..30cac9c85 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/flex_table.scss
+++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/flex_table.scss
@@ -30,6 +30,7 @@ div.list-with-period {
// override wrap-list
div.wrap-list.periods-list {
+ padding-right: 1rem;
div.wl-row {
flex-wrap: nowrap;
div.wl-col {
@@ -63,6 +64,7 @@ div.list-with-period {
}
div.periods-list {
+ padding-right: 1rem;
div.title {
text-align: right;
div.date {}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue
index 349581452..b6a55ef39 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue
@@ -5,9 +5,8 @@
+ {% set participating = false %}
+ {% for part in acp.currentParticipations %}
+ {% if part.person.id != person.id %}
+ {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
+ targetEntity: { name: 'person', id: part.person.id },
+ action: 'show',
+ displayBadge: true,
+ buttonText: part.person|chill_entity_render_string,
+ isDead: part.person.deathdate is not null
+ } %}
+ {% else %}
+ {% set participating = true %}
+ {% endif %}
+ {% endfor %}
+ {% if participating %}
+ {{ 'person.and_himself'|trans({'gender': person.gender}) }}
+ {% endif %}
+
+
+ {% endif %}
+
+ {% if acp.requestoranonymous == false %}
+ {% if (acp.requestorPerson is not null and acp.requestorPerson.id != person.id) or acp.requestorThirdParty is not null %}
+
+
+
+ {% if acp.requestorPerson is not null %}
+ {{ 'Requestor'|trans({'gender': acp.requestorPerson.gender}) }}
+ {% else %}
+ {{ 'Requestor'|trans({'gender': 'other'})}}
+ {% endif %}
+
+
+
+ {% if acp.requestorThirdParty is not null %}
+ {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
+ targetEntity: { name: 'thirdparty', id: acp.requestorThirdParty.id },
+ action: 'show',
+ displayBadge: true,
+ buttonText: acp.requestorThirdParty|chill_entity_render_string
+ } %}
+ {% else %}
+ {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
+ targetEntity: { name: 'person', id: acp.requestorPerson.id },
+ action: 'show',
+ displayBadge: true,
+ buttonText: acp.requestorPerson|chill_entity_render_string,
+ isDead: acp.requestorPerson.deathdate is not null
+ } %}
+ {% endif %}
+
- {% set participating = false %}
- {% for part in acp.currentParticipations %}
- {% if part.person.id != person.id %}
- {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
- targetEntity: { name: 'person', id: part.person.id },
- action: 'show',
- displayBadge: true,
- buttonText: part.person|chill_entity_render_string,
- isDead: part.person.deathdate is not null
- } %}
- {% else %}
- {% set participating = true %}
- {% endif %}
- {% endfor %}
- {% if participating %}
- {{ 'person.and_himself'|trans({'gender': person.gender}) }}
- {% endif %}
-
-
- {% endif %}
-
- {% if acp.requestoranonymous == false %}
- {% if (acp.requestorPerson is not null and acp.requestorPerson.id != person.id) or acp.requestorThirdParty is not null %}
-
-
-
- {% if acp.requestorPerson is not null %}
- {{ 'Requestor'|trans({'gender': acp.requestorPerson.gender}) }}
- {% else %}
- {{ 'Requestor'|trans({'gender': 'other'})}}
- {% endif %}
-
-
-
- {% if acp.requestorThirdParty is not null %}
- {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
- targetEntity: { name: 'thirdparty', id: acp.requestorThirdParty.id },
- action: 'show',
- displayBadge: true,
- buttonText: acp.requestorThirdParty|chill_entity_render_string
- } %}
- {% else %}
- {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with {
- targetEntity: { name: 'person', id: acp.requestorPerson.id },
- action: 'show',
- displayBadge: true,
- buttonText: acp.requestorPerson|chill_entity_render_string,
- isDead: acp.requestorPerson.deathdate is not null
- } %}
- {% endif %}
-