Révision d8827fce
Ajouté par Frédéric Péters il y a plus de 7 ans
extra/modules/agenda.py | ||
---|---|---|
236 | 236 |
if tags and remote_calendars: |
237 | 237 |
form.widgets.append(HtmlWidget('<table id="agenda-filter"><tr><td>')) |
238 | 238 |
if tags: |
239 |
form.add(CheckboxesWidget, 'tags', title = _('Tags'),
|
|
240 |
elements = [(x,x) for x in tags],
|
|
241 |
inline = False)
|
|
239 |
form.add(CheckboxesWidget, 'tags', title=_('Tags'),
|
|
240 |
options=[(x,x) for x in tags],
|
|
241 |
inline=False)
|
|
242 | 242 |
if tags and remote_calendars: |
243 | 243 |
form.widgets.append(HtmlWidget('</td><td>')) |
244 | 244 |
if remote_calendars: |
245 | 245 |
remote_calendars.sort(lambda x,y: cmp(x.label, y.label)) |
246 |
form.add(CheckboxesWidget, 'calendars', title = _('Calendars'),
|
|
247 |
elements = [('local', _('Local'))] + [(x.id, x.label) for x in remote_calendars],
|
|
248 |
inline = False)
|
|
246 |
form.add(CheckboxesWidget, 'calendars', title=_('Calendars'),
|
|
247 |
options=[('local', _('Local'))] + [(x.id, x.label) for x in remote_calendars],
|
|
248 |
inline=False)
|
|
249 | 249 |
if tags and remote_calendars: |
250 | 250 |
form.widgets.append(HtmlWidget('</td></tr></table>')) |
251 | 251 |
|
Formats disponibles : Unified diff
misc: update to new CheckboxesWidget init signature (#13386)