vc_dummy: add attach form

This commit is contained in:
Jacques Dafflon 2015-03-30 17:26:52 +02:00 committed by Pedro Ferreira
parent bae5e615dd
commit b462f1491d

View File

@ -21,7 +21,7 @@ from wtforms.fields.core import BooleanField
from indico.core.plugins import IndicoPlugin, url_for_plugin, IndicoPluginBlueprint
from indico.modules.vc import VCPluginMixin
from indico.modules.vc.forms import VCRoomFormBase
from indico.modules.vc.forms import VCRoomFormBase, VCRoomAttachFormBase
from indico.web.forms.widgets import SwitchWidget
@ -31,6 +31,12 @@ class VCRoomForm(VCRoomFormBase):
description="Yes. It doesn't make any sense.")
class VCRoomAttachForm(VCRoomAttachFormBase):
show_phone_numbers = BooleanField('What is your favorite color?',
widget=SwitchWidget(),
description="Yes. It doesn't make any sense.")
class DummyPlugin(VCPluginMixin, IndicoPlugin):
"""Dummy
@ -38,6 +44,7 @@ class DummyPlugin(VCPluginMixin, IndicoPlugin):
"""
configurable = True
vc_room_form = VCRoomForm
vc_room_attach_form = VCRoomAttachForm
friendly_name = "Dummy"
@property