diff --git a/composer.json b/composer.json index dd761a99d..64d9dca22 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,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/package.json.txt b/package.json.txt new file mode 100644 index 000000000..58f21ac5d --- /dev/null +++ b/package.json.txt @@ -0,0 +1,3 @@ +add npm/yarn dependency in package.json : + +"select2-bootstrap-theme": "0.1.0-beta.10", 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/scss/chillactivity.scss b/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss similarity index 89% rename from src/Bundle/ChillActivityBundle/Resources/public/scss/chillactivity.scss rename to src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss index ed54ce27a..1d271abfe 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/scss/chillactivity.scss +++ b/src/Bundle/ChillActivityBundle/Resources/public/chill/chillactivity.scss @@ -1,12 +1,14 @@ -@import '~ChillMainSass/custom/config/colors'; -@import '~ChillMainSass/custom/mixins/entity'; +// Access to Bootstrap variables and mixins +@import '~ChillMainAssets/module/bootstrap/shared'; -.chill-entity.chill-entity__activity-reason { - @include entity($chill-pink, white); -} +//@import '~ChillMainSass/custom/mixins/entity'; + +//.chill-entity.chill-entity__activity-reason { +// @include entity($chill-pink, white); +//} .activity { - color: $chill-green; + //color: $chill-green; } // exceptions for flex-bloc in concerned-groups @@ -71,7 +73,7 @@ div.flex-table.list-records { &:nth-child(2) { flex-grow: 0; flex-shrink: 1; flex-basis: 70%; } - + &:only-child { flex-grow: 0; flex-shrink: 0; flex-basis: 100%; & > div.concerned-groups { @@ -80,11 +82,11 @@ div.flex-table.list-records { flex-direction: column; // TODO pas fini div.group { flex-grow: 1; flex-shrink: 0; flex-basis: 30%; - h4 {} + h4 {} ul.list-content { - li { + li { display: inline; - } + } } } } diff --git a/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js b/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js new file mode 100644 index 000000000..3028d6f5c --- /dev/null +++ b/src/Bundle/ChillActivityBundle/Resources/public/chill/index.js @@ -0,0 +1 @@ +require('./chillactivity.scss'); diff --git a/src/Bundle/ChillActivityBundle/Resources/public/index.js b/src/Bundle/ChillActivityBundle/Resources/public/index.js deleted file mode 100644 index e219e368b..000000000 --- a/src/Bundle/ChillActivityBundle/Resources/public/index.js +++ /dev/null @@ -1 +0,0 @@ -require('./scss/chillactivity.scss'); 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 e27feb886..bef11159c 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,6 +1,6 @@