diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php
index 5a711408c..94c639d17 100644
--- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php
+++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php
@@ -222,7 +222,7 @@ class ActivityType extends AbstractType
if ($activityType->isVisible('comment')) {
$builder->add('comment', CommentType::class, [
- 'label' => empty($activityType->getLabel('comment'))
+ 'label' => empty($activityType->getLabel('comment'))
? 'activity.comment' : $activityType->getLabel('comment'),
'required' => $activityType->isRequired('comment'),
]);
@@ -302,6 +302,19 @@ class ActivityType extends AbstractType
;
}
+ /*
+ if ($activityType->isVisible('location')) {
+ $builder
+ ->add('location', HiddenType::class)
+ ->get('location')
+ ->addModelTransformer(new CallbackTransformer(
+ function () {},
+ function () {}
+ ))
+ ;
+ }
+ */
+
if ($activityType->isVisible('emergency')) {
$builder->add('emergency', CheckboxType::class, [
'label' => $activityType->getLabel('emergency'),
diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue
index 1cbd299dc..108e1e493 100644
--- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue
+++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/ConcernedGroups.vue
@@ -73,9 +73,12 @@ export default {
addPersons: {
key: 'activity',
options: {
- type: ['person', 'thirdparty', 'user'], // TODO add 'user'
+ type: ['person', 'thirdparty', 'user'],
priority: null,
uniq: false,
+ button: {
+ size: 'btn-sm'
+ }
}
}
}
diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue
index 464ca8abb..6d4c968cc 100644
--- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue
+++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location.vue
@@ -1,15 +1,37 @@
Ajouter une nouvelle localisation
+
+
+ * select type
+ * input name
+
+