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 @@ - - diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue new file mode 100644 index 000000000..3f9eb6dea --- /dev/null +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue @@ -0,0 +1,86 @@ + + + diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig index f6ffa2b66..5ad95c327 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig @@ -6,10 +6,10 @@ {% block content %}
- -
{# <=== vue component #} - {% include 'ChillActivityBundle:Activity:edit.html.twig' %} - + +
{# <=== vue component #} + {% include 'ChillActivityBundle:Activity:edit.html.twig' %} +
{% endblock %} @@ -18,10 +18,10 @@ {{ encore_entry_link_tags('mod_async_upload') }} {{ encore_entry_script_tags('vue_activity') }} {% endblock %} diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig index 3d61303b5..c1e97899f 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig @@ -22,10 +22,10 @@ {% block personcontent %}
- -
{# <=== vue component #} - {% include 'ChillActivityBundle:Activity:edit.html.twig' %} - + +
{# <=== vue component #} + {% include 'ChillActivityBundle:Activity:edit.html.twig' %} +
{% endblock %} @@ -33,7 +33,7 @@ {{ encore_entry_link_tags('mod_async_upload') }}