diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 00570b16f..ae1be5ded 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -216,12 +216,12 @@ class ActivityType extends AbstractType ]); }*/ - if ($activityType->isVisible('privateComment')) { +/* if ($activityType->isVisible('privateComment')) { $builder->add('privateComment', PrivateCommentType::class, [ 'label' => '' === $activityType->getLabel('privateComment') ? 'private comment' : $activityType->getPrivateCommentLabel(), 'required' => false, ]); - } + }*/ if ($activityType->isVisible('persons')) { $builder->add('persons', HiddenType::class); diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue index 017f751e0..238065d85 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/App.vue @@ -9,7 +9,7 @@ import ConcernedGroups from "./components/ConcernedGroups.vue"; import SocialIssuesAcc from "./components/SocialIssuesAcc.vue"; import Location from "./components/Location.vue"; -import CommentEditor from "ChillMainAssets/vuejs/_components/CommentEditor.vue" +import CommentEditor from "ChillMainAssets/vuejs/CommentEditor/component/CommentEditor.vue" export default { name: "App", diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig index e111c4a50..1f38c7402 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig @@ -84,11 +84,11 @@ {# {{ form_row(form.comment) }}#} {#{% endif %}#} -
+ -{%- if form.privateComment is defined -%} - {{ form_row(form.privateComment) }} -{% endif %} +{#{%- if form.privateComment is defined -%}#} +{# {{ form_row(form.privateComment) }}#} +{#{% endif %}#} {%- if form.attendee is defined -%} {{ form_row(form.attendee) }} @@ -124,6 +124,7 @@ {% block js %} {{ encore_entry_script_tags('mod_pickentity_type') }} + {{ encore_entry_script_tags('vue_comment_editor') }} {% endblock %} {% block css %} diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss index 1dc56dded..41620a4f1 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss @@ -33,6 +33,8 @@ @import './scss/hover.scss'; +@import './scss/comment-editor.scss'; + /* * BASE LAYOUT POSITION */ diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/comment-editor.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/comment-editor.scss new file mode 100644 index 000000000..05eacd1b1 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/comment-editor.scss @@ -0,0 +1,14 @@ +.comment-container { + margin-top: 1.5rem; +} + +.editor-container { + position: relative; + display: flex; + flex-direction: column; + width: 100%; +} + +.editor-wrapper { + position: relative; +} diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/CommentEditor/App.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/CommentEditor/App.vue new file mode 100644 index 000000000..63f659359 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/CommentEditor/App.vue @@ -0,0 +1,36 @@ + +