Added prompt
authorThierry Florac <tflorac@ulthar.net>
Wed, 12 Dec 2018 11:12:59 +0100
changeset 1156 2ff34f9d9217
parent 1155 f944a4efb65b
child 1157 ffb751b038cc
Added prompt
src/pyams_content/component/video/zmi/paragraph.py
--- a/src/pyams_content/component/video/zmi/paragraph.py	Wed Dec 12 10:18:31 2018 +0100
+++ b/src/pyams_content/component/video/zmi/paragraph.py	Wed Dec 12 11:12:59 2018 +0100
@@ -77,6 +77,9 @@
         super(ExternalVideoParagraphAddForm, self).updateWidgets(prefix)
         if 'provider_name' in self.widgets:
             widget = self.widgets['provider_name']
+            widget.required = True
+            widget.prompt = True
+            widget.promptMessage = _("Select video provider...")
             widget.object_data = {
                 'ams-change-handler': 'MyAMS.helpers.select2ChangeHelper',
                 'ams-change-stop-propagation': 'true',