|
1 | 1 | <template> |
2 | 2 | <form> |
3 | | - <BaseInputText |
4 | | - v-model="v$.item.title.$model" |
5 | | - :error-text="v$.item.title.$errors.map((error) => error.$message).join('<br>')" |
6 | | - :is-invalid="v$.item.title.$error" |
7 | | - :label="t('Title')" |
8 | | - /> |
9 | | - |
10 | | - <div class="flex flex-col md:flex-row gap-x-5"> |
11 | | - <div class="md:w-1/2 flex flex-col"> |
| 3 | + <div class="grid lg:grid-cols-2 md:gap-4"> |
| 4 | + <BaseInputText |
| 5 | + v-model="v$.item.title.$model" |
| 6 | + :error-text="v$.item.title.$errors.map((error) => error.$message).join('<br>')" |
| 7 | + :is-invalid="v$.item.title.$error" |
| 8 | + :label="t('Title')" |
| 9 | + /> |
| 10 | + |
| 11 | + <div class="grid md:grid-cols-2 md:gap-4"> |
12 | 12 | <div class="field"> |
13 | 13 | <div class="p-float-label"> |
14 | 14 | <Calendar |
|
51 | 51 | class="p-error" |
52 | 52 | /> |
53 | 53 | </div> |
| 54 | + </div> |
| 55 | + </div> |
54 | 56 |
|
55 | | - <tiny-editor |
56 | | - v-model="v$.item.content.$model" |
57 | | - :init="{ |
58 | | - skin_url: '/build/libs/tinymce/skins/ui/oxide', |
59 | | - content_css: '/build/libs/tinymce/skins/content/default/content.css', |
60 | | - branding: false, |
61 | | - relative_urls: false, |
62 | | - height: 250, |
63 | | - toolbar_mode: 'sliding', |
64 | | - file_picker_callback: browser, |
65 | | - autosave_ask_before_unload: true, |
66 | | - plugins: [ |
67 | | - 'advlist autolink lists link image charmap print preview anchor', |
68 | | - 'searchreplace visualblocks code fullscreen', |
69 | | - 'insertdatetime media table paste wordcount emoticons', |
70 | | - ], |
71 | | - toolbar: |
72 | | - 'undo redo | bold italic underline strikethrough | insertfile image media template link | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen preview save print | code codesample | ltr rtl', |
| 57 | + <div class="grid md:grid-cols-2 md:gap-4"> |
| 58 | + <tiny-editor |
| 59 | + v-model="v$.item.content.$model" |
| 60 | + :init="{ |
| 61 | + skin_url: '/build/libs/tinymce/skins/ui/oxide', |
| 62 | + content_css: '/build/libs/tinymce/skins/content/default/content.css', |
| 63 | + branding: false, |
| 64 | + relative_urls: false, |
| 65 | + height: 250, |
| 66 | + toolbar_mode: 'sliding', |
| 67 | + file_picker_callback: browser, |
| 68 | + autosave_ask_before_unload: true, |
| 69 | + plugins: [ |
| 70 | + 'advlist autolink lists link image charmap print preview anchor', |
| 71 | + 'searchreplace visualblocks code fullscreen', |
| 72 | + 'insertdatetime media table paste wordcount emoticons', |
| 73 | + ], |
| 74 | + toolbar: |
| 75 | + 'undo redo | bold italic underline strikethrough | insertfile image media template link | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen preview save print | code codesample | ltr rtl', |
73 | 76 | }" |
74 | | - required |
75 | | - /> |
76 | | - </div> |
| 77 | + required |
| 78 | + /> |
77 | 79 |
|
78 | | - <div class="md:w-1/2 flex flex-col"> |
| 80 | + <div |
| 81 | + v-if="agendaCollectiveInvitations" |
| 82 | + class="flex flex-col" |
| 83 | + > |
79 | 84 | <div |
80 | 85 | v-t="'Invitees'" |
81 | 86 | class="text-h6" |
@@ -112,8 +117,12 @@ import Calendar from "primevue/calendar" |
112 | 117 | import EditLinks from "../resource_links/EditLinks.vue" |
113 | 118 | import BaseCheckbox from "../basecomponents/BaseCheckbox.vue" |
114 | 119 | import { useI18n } from "vue-i18n" |
| 120 | +import { usePlatformConfig } from "../../store/platformConfig" |
115 | 121 |
|
116 | 122 | const store = useStore() |
| 123 | +const platformConfigStore = usePlatformConfig(); |
| 124 | +
|
| 125 | +const agendaCollectiveInvitations = 'true' === platformConfigStore.getSetting('agenda.agenda_collective_invitations') |
117 | 126 |
|
118 | 127 | const { t } = useI18n() |
119 | 128 |
|
|
0 commit comments