From 92a95d418671aeabe65affcfa281b8bdca0da30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 24 Jun 2021 12:44:24 +0200 Subject: [PATCH] finish form behaviour --- .../AccompanyingPeriodWork.php | 1 + .../vuejs/AccompanyingCourseWorkEdit/App.vue | 163 +++++++++++++++++- .../vuejs/AccompanyingCourseWorkEdit/store.js | 41 ++++- 3 files changed, 197 insertions(+), 8 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php index 5fd01acf3..e80f37364 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWork.php @@ -45,6 +45,7 @@ use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\ManyToOne(targetEntity=AccompanyingPeriod::class) + * @Serializer\Groups({"read"}) */ private ?AccompanyingPeriod $accompanyingPeriod = null; diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue index feee033e4..7483bc109 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/App.vue @@ -69,6 +69,90 @@
+ + +
+

{{ $t('persons_involved') }}

+ + +
+ + +
+

Tiers traitant

+ +
+

+ Aucun tiers traitant +

+ +
    +
  • + + +
  • +
+
+
+

{{ handlingThirdParty.text }}

+ + +
    +
  • + +
  • +
+
+ +
+ + +
+

Tiers intervenants

+ +
+

Aucun tiers intervenant

+ +
+
+
    +
  • +

    {{ t.text }}

    + + +
      + +
    +
  • +
+
+ + +
@@ -82,6 +166,9 @@ "startDate endDate" "comment comment" "objectives objectives" + "persons persons" + "handling handling" + "3parties 3parties" ; #title { @@ -116,6 +203,15 @@ } } } + #persons { + grid-area: persons; + } + #handlingThirdParty { + grid-area: handling; + } + #thirdParties { + grid-area: 3parties; + } } @@ -123,21 +219,43 @@