From b110bbb4bcfb1a8b7cee7cce4f9380d76eba724b Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Thu, 19 Nov 2020 11:11:00 +0100 Subject: [PATCH] VC/Zoom: get rid of phone link --- vc_zoom/indico_vc_zoom/plugin.py | 7 +------ vc_zoom/indico_vc_zoom/templates/info_box.html | 11 ----------- .../templates/manage_event_info_box.html | 1 - 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/vc_zoom/indico_vc_zoom/plugin.py b/vc_zoom/indico_vc_zoom/plugin.py index 46d7726..4646910 100644 --- a/vc_zoom/indico_vc_zoom/plugin.py +++ b/vc_zoom/indico_vc_zoom/plugin.py @@ -13,7 +13,6 @@ from sqlalchemy.orm.attributes import flag_modified from werkzeug.exceptions import Forbidden, NotFound from wtforms.fields.core import BooleanField from wtforms.fields import TextAreaField -from wtforms.fields.html5 import URLField from wtforms.fields.simple import StringField from wtforms.validators import DataRequired @@ -44,7 +43,7 @@ class PluginSettingsForm(VCPluginSettingsFormBase): ('Zoom Account', ['email_domains', 'assistant_id', 'allow_webinars']), ('Room Settings', ['mute_audio', 'mute_host_video', 'mute_participant_video', 'join_before_host', 'waiting_room']), - ('Notifications', ['zoom_phone_link', 'creation_email_footer', 'send_host_url']) + ('Notifications', ['creation_email_footer', 'send_host_url']) ] api_key = StringField(_('API Key'), [DataRequired()]) @@ -86,9 +85,6 @@ class PluginSettingsForm(VCPluginSettingsFormBase): widget=SwitchWidget(), description=_('Participants may be kept in a waiting room by the host')) - zoom_phone_link = URLField(_('ZoomVoice phone number'), - description=_('Link to the list of ZoomVoice phone numbers')) - creation_email_footer = TextAreaField(_('Creation email footer'), widget=CKEditorWidget(), description=_('Footer to append to emails sent upon creation of a VC room')) @@ -120,7 +116,6 @@ class ZoomPlugin(VCPluginMixin, IndicoPlugin): 'mute_participant_video': True, 'join_before_host': True, 'waiting_room': False, - 'zoom_phone_link': None, 'creation_email_footer': None, 'send_host_url': False }) diff --git a/vc_zoom/indico_vc_zoom/templates/info_box.html b/vc_zoom/indico_vc_zoom/templates/info_box.html index e05b398..c6002a2 100644 --- a/vc_zoom/indico_vc_zoom/templates/info_box.html +++ b/vc_zoom/indico_vc_zoom/templates/info_box.html @@ -1,6 +1,5 @@ {% from '_clipboard_input.html' import clipboard_input %} {% set host = vc_room.data.host %} -{% set phone_link = settings.get('zoom_phone_link') %}
{% trans %}Zoom Meeting ID{% endtrans %}
{{ vc_room.data.zoom_id }}
@@ -23,14 +22,4 @@ {{ clipboard_input(vc_room.data.url, name="vc-room-url-%s"|format(event_vc_room.id)) }} {% endif %} - {% if event_vc_room.data.show_phone_numbers and phone_link %} -
- {% trans %}Useful links{% endtrans %} -
-
- - {% trans %}Phone numbers{% endtrans %} - -
- {% endif %}
diff --git a/vc_zoom/indico_vc_zoom/templates/manage_event_info_box.html b/vc_zoom/indico_vc_zoom/templates/manage_event_info_box.html index add3d5a..34943ae 100644 --- a/vc_zoom/indico_vc_zoom/templates/manage_event_info_box.html +++ b/vc_zoom/indico_vc_zoom/templates/manage_event_info_box.html @@ -1,7 +1,6 @@ {% from '_password.html' import password %} {% from '_clipboard_input.html' import clipboard_input %} {% set host = vc_room.data.host %} -{% set phone_link = settings.get('zoom_phone_link') %}
{% trans %}Zoom Meeting ID{% endtrans %}
{{ vc_room.data.zoom_id }}