diff --git a/src/onegov/feriennet/forms/notification_template.py b/src/onegov/feriennet/forms/notification_template.py index 40e7fb0e20..cbc7a0c2a5 100644 --- a/src/onegov/feriennet/forms/notification_template.py +++ b/src/onegov/feriennet/forms/notification_template.py @@ -13,7 +13,8 @@ from onegov.feriennet.layout import DefaultLayout from onegov.feriennet.models import NotificationTemplate from onegov.form import Form -from onegov.form.fields import MultiCheckboxField, HtmlField +from onegov.form.fields import (MultiCheckboxField, HtmlField, + TranslatedSelectField) from onegov.user import User, UserCollection from sqlalchemy import distinct, or_, and_, select, exists from uuid import uuid4 @@ -62,7 +63,7 @@ class NotificationTemplateSendForm(Form): request: FeriennetRequest - send_to = RadioField( + send_to = TranslatedSelectField( label=_('Send to'), choices=[ ('myself', _( @@ -74,6 +75,9 @@ class NotificationTemplateSendForm(Form): ('inactive_organisers', _( 'Organisers without occasions' )), + ('volunteers', _( + 'Volunteers' + )), ('by_role', _( 'Users of a given role' )), @@ -92,10 +96,7 @@ class NotificationTemplateSendForm(Form): ('by_occasion', _( 'Users with attenedees that have an occasion on their ' 'wish- or booking-list' - )), - (('volunteers', _( - 'Volunteers' - ))) + )) ], default='by_role' )