diff --git a/composer.json b/composer.json
index fb0d2dcd1..b5af76421 100644
--- a/composer.json
+++ b/composer.json
@@ -52,7 +52,7 @@
"knplabs/knp-time-bundle": "^1.12",
"symfony/intl": "4.*",
"symfony/swiftmailer-bundle": "^3.5",
- "league/csv": "^9.6",
+ "league/csv": "^9.7.1",
"phpoffice/phpspreadsheet": "^1.16",
"symfony/browser-kit": "^5.2",
"symfony/css-selector": "^5.2",
diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php
index 7835a0db4..9ef67a7ac 100644
--- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php
+++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivityNotifications.php
@@ -22,6 +22,7 @@ class LoadActivityNotifications extends AbstractFixture implements DependentFixt
'entityRef' => 'activity_gerard depardieu',
'sender' => 'center a_social',
'addressees' => [
+ 'center a_social',
'center a_administrative',
'center a_direction',
'multi_center'
diff --git a/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php b/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php
new file mode 100644
index 000000000..1836f599b
--- /dev/null
+++ b/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php
@@ -0,0 +1,24 @@
+getRelatedEntityClass() == Activity::class;
+ }
+
+ public function getTemplate()
+ {
+ return '@ChillActivity/Activity/showInNotification.html.twig';
+ }
+
+ public function getTemplateData(Notification $notification)
+ {
+ return ['notification' => $notification];
+ }
+}
diff --git a/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss b/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss
index bd67b58ca..1d271abfe 100644
--- a/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss
+++ b/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss
@@ -1,4 +1,6 @@
-@import '~ChillMainAssets/module/bootstrap/bootstrap';
+// Access to Bootstrap variables and mixins
+@import '~ChillMainAssets/module/bootstrap/shared';
+
//@import '~ChillMainSass/custom/mixins/entity';
//.chill-entity.chill-entity__activity-reason {
@@ -6,7 +8,7 @@
//}
.activity {
- color: $chill-green;
+ //color: $chill-green;
}
// exceptions for flex-bloc in concerned-groups
diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig
index 4985ea1f7..92b1b3ff4 100644
--- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig
+++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/concernedGroups.html.twig
@@ -60,7 +60,7 @@
-
+
{% for activity in activities %}
{% set t = activity.type %}
-
+
{% if activity.date %}
{{ activity.date|format_date('long') }}
{% endif %}
-
+
- {% if t.durationTimeVisible > 0 %}
-
-
- {{ activity.durationTime|date('H:i') }}
-
- {% endif %}
-
+ {% if t.durationTimeVisible > 0 %}
+
+
+ {{ activity.durationTime|date('H:i') }}
+
+ {% endif %}
{% if activity.travelTime and t.travelTimeVisible %}
-
-
- {{ activity.travelTime|date('H:i') }}
-
+
+
+ {{ activity.travelTime|date('H:i') }}
+
{% endif %}
{% if context == 'person' and activity.accompanyingPeriod is not empty %}
-
{% endif %}
-
+
@@ -77,19 +64,19 @@
{{ 'by'|trans }}{{ activity.user.usernameCanonical }}
{% endif %}
-
+
-
{{ activity.type.name | localize_translatable_string }}
-
+
{% if activity.attendee is not null and t.attendeeVisible %}
{% if activity.attendee %}
- {{ '→ ' ~ 'present'|trans|capitalize }}
- {% else %}
+ {{ '→ ' ~ 'present'|trans|capitalize }}
+ {% else %}
{{ '→ ' ~ 'not present'|trans|capitalize }}
{% endif %}
{% endif %}
-
+
-
{{ 'location'|trans ~ ': ' }}
Domicile de l'usager
@@ -97,7 +84,7 @@
{% if activity.location %}{{ activity.location }}{% endif %}
#}
-
+
{%- if t.reasonsVisible -%}
-
{%- if activity.reasons is empty -%}
@@ -121,7 +108,7 @@
{%- endif -%}
{% endif %}
-
+
{%- if t.socialActionsVisible -%}
-
{%- if activity.socialActions is empty -%}
@@ -134,7 +121,7 @@
{% endif %}
-
+
-
- {%
+
+ {%
if activity.comment.comment is not empty
or activity.persons|length > 0
or activity.thirdParties|length > 0
- or activity.users|length > 0
+ or activity.users|length > 0
%}
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': activity } %}
-
+
{% if activity.comment.comment is not empty %}
{% endif %}
-
+
{% endfor %}
diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showInNotification.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showInNotification.html.twig
new file mode 100644
index 000000000..5128e9a64
--- /dev/null
+++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showInNotification.html.twig
@@ -0,0 +1,4 @@
+
+{{ dump(notification) }}
+
+
Go to Activity
diff --git a/src/Bundle/ChillActivityBundle/config/services.yaml b/src/Bundle/ChillActivityBundle/config/services.yaml
index 411ad1b5a..86168101a 100644
--- a/src/Bundle/ChillActivityBundle/config/services.yaml
+++ b/src/Bundle/ChillActivityBundle/config/services.yaml
@@ -1,4 +1,4 @@
-services:
+services:
chill.activity.security.authorization.activity_voter:
class: Chill\ActivityBundle\Security\Authorization\ActivityVoter
arguments:
@@ -6,7 +6,7 @@ services:
tags:
- { name: security.voter }
- { name: chill.role }
-
+
chill.activity.security.authorization.activity_stats_voter:
class: Chill\ActivityBundle\Security\Authorization\ActivityStatsVoter
arguments:
@@ -14,8 +14,8 @@ services:
tags:
- { name: security.voter }
- { name: chill.role }
-
-
+
+
chill.activity.timeline:
class: Chill\ActivityBundle\Timeline\TimelineActivityProvider
arguments:
@@ -33,3 +33,8 @@ services:
autoconfigure: true
resource: '../Menu/'
tags: ['chill.menu_builder']
+
+ Chill\ActivityBundle\Notification\:
+ autowire: true
+ autoconfigure: true
+ resource: '../Notification'
diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig
index 36ef66af3..e9f9a0270 100644
--- a/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig
+++ b/src/Bundle/ChillEventBundle/Resources/views/Event/listByPerson.html.twig
@@ -108,8 +108,6 @@
{{ chill_pagination(paginator) }}
{% endif %}
-{% form_theme form_add_event_participation_by_person 'bootstrap_4_layout.html.twig' %}
-
{{ form_start(form_add_event_participation_by_person) }}
{#
@@ -137,4 +135,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig
index 2e7dd6cdb..a0551ff1a 100644
--- a/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig
+++ b/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig
@@ -3,9 +3,7 @@
{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %}
{% block title 'Participation creation'|trans %}
-
- {% form_theme form _self %}
-
+
{% block _collection_row %}