Repository: liqd/a4-meinberlin

Issue:
testing 3491 (livestream interactive event): can write into livestream ck-editor
**URL:** 
**user:** initiator
**expected behaviour:** 
**behaviour:** 
**important screensize:**
**device & browser:** 
**Comment/Question:** It is not by any chance possible to not be able to write into the CK-editor?  Initiators can write long texts in there and what can be done probably will be. The questions is, if we want to allow it or not? At least I think we should add a helptext saying that they SHOULD NOT write here. this could be also the place to explain that the video is only visible during active phase. Let's discuss this in comments and depending on what we decide I can think about a helptext.

Screenshot?



Discussion:
@CarolingerSeilchenspringer I don't know how to stop them from being able to write in there other then making our own embed component so help text would be preferred method from my side.
ok then, let's change wording to:
English: You can enter a livestream from YouTube or Vimeo. The livestream will be shown when the module phase is active. For description text please use module or phase description.

German: Sie können einen Livestream von YouTube oder Vimeo einfügen. Der Livestream wird während der aktiven Modulphase angezeigt. Für Beschreibungstexte nutzen Sie bitte die Modul- oder Phasenbeschreibung. 

Please also rename navigation and headlines from "Live Stream" to "Livestream" according to Duden. In English it should always be "livestream".

Resolving patch:
diff --git a/meinberlin/apps/livequestions/dashboard.py b/meinberlin/apps/livequestions/dashboard.py
--- a/meinberlin/apps/livequestions/dashboard.py
+++ b/meinberlin/apps/livequestions/dashboard.py
@@ -10,7 +10,7 @@
 class LiveStreamComponent(DashboardComponent):
     identifier = 'live_stream'
     weight = 20
-    label = _('Live Stream')
+    label = _('Livestream')
 
     def is_effective(self, module):
         module_app = module.phases[0].content().app
diff --git a/meinberlin/apps/livequestions/migrations/0003_add_helptext.py b/meinberlin/apps/livequestions/migrations/0003_add_helptext.py
new file mode 100644
--- /dev/null
+++ b/meinberlin/apps/livequestions/migrations/0003_add_helptext.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.16 on 2020-11-16 15:40
+
+import adhocracy4.ckeditor.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('meinberlin_livequestions', '0002_livestream'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='livestream',
+            name='live_stream',
+            field=adhocracy4.ckeditor.fields.RichTextCollapsibleUploadingField(blank=True, help_text='You can enter a livestream from YouTube or Vimeo. The livestream will be shown when the module phase is active. For description text please use module or phase description.', verbose_name='Livestream'),
+        ),
+    ]
diff --git a/meinberlin/apps/livequestions/models.py b/meinberlin/apps/livequestions/models.py
--- a/meinberlin/apps/livequestions/models.py
+++ b/meinberlin/apps/livequestions/models.py
@@ -66,9 +66,15 @@ def get_absolute_url(self):
 
 class LiveStream(module_models.Item):
     live_stream = RichTextCollapsibleUploadingField(
-        verbose_name='Live Stream',
+        verbose_name='Livestream',
         blank=True,
-        config_name='video-editor'
+        config_name='video-editor',
+        help_text=_(
+            'You can enter a livestream from YouTube or Vimeo. '
+            'The livestream will be shown when the module phase '
+            'is active. For description text please use module '
+            'or phase description.'
+        )
     )
 
     def save(self, *args, **kwargs):


Test patch: