misc: update to checkboxes widget changes (#13581)
This commit is contained in:
parent
d8827fced1
commit
aeab44dca1
|
@ -707,7 +707,7 @@ class MyspaceDirectory(wcs.myspace.MyspaceDirectory):
|
|||
|
||||
form = Form(enctype = 'multipart/form-data')
|
||||
form.add(CheckboxesWidget, 'themes', title=_('Announce Themes'),
|
||||
value=enabled_themes, options=[(x, x) for x in options],
|
||||
value=enabled_themes, options=[(x, x, x) for x in options],
|
||||
inline=False, required=False)
|
||||
|
||||
form.add_submit('submit', _('Apply Changes'))
|
||||
|
|
|
@ -178,5 +178,5 @@ def test_agenda():
|
|||
app = get_app(pub)
|
||||
resp = app.get('/agenda/', status=200)
|
||||
resp = app.get('/agenda/filter')
|
||||
assert 'tags$elementAdults' in resp.form.fields
|
||||
assert 'calendars$elementlocal' in resp.form.fields
|
||||
assert 'tags$element0' in resp.form.fields
|
||||
assert 'calendars$element0' in resp.form.fields
|
||||
|
|
Reference in New Issue