mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 15:34:37 +00:00
VC/Zoom: get rid of phone link
This commit is contained in:
parent
ce9b1984d1
commit
b110bbb4bc
@ -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
|
||||
})
|
||||
|
||||
@ -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') %}
|
||||
<dl>
|
||||
<dt>{% trans %}Zoom Meeting ID{% endtrans %}</dt>
|
||||
<dd>{{ vc_room.data.zoom_id }}</dd>
|
||||
@ -23,14 +22,4 @@
|
||||
{{ clipboard_input(vc_room.data.url, name="vc-room-url-%s"|format(event_vc_room.id)) }}
|
||||
</dd>
|
||||
{% endif %}
|
||||
{% if event_vc_room.data.show_phone_numbers and phone_link %}
|
||||
<dt>
|
||||
{% trans %}Useful links{% endtrans %}
|
||||
</dt>
|
||||
<dd>
|
||||
<a href="{{ phone_link }}" target="_blank">
|
||||
{% trans %}Phone numbers{% endtrans %}
|
||||
</a>
|
||||
</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
|
||||
@ -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') %}
|
||||
<dl class="details-container">
|
||||
<dt>{% trans %}Zoom Meeting ID{% endtrans %}</dt>
|
||||
<dd>{{ vc_room.data.zoom_id }}</dd>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user