Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/onegov/feriennet/forms/notification_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -62,7 +63,7 @@ class NotificationTemplateSendForm(Form):

request: FeriennetRequest

send_to = RadioField(
send_to = TranslatedSelectField(
label=_('Send to'),
choices=[
('myself', _(
Expand All @@ -74,6 +75,9 @@ class NotificationTemplateSendForm(Form):
('inactive_organisers', _(
'Organisers without occasions'
)),
('volunteers', _(
'Volunteers'
)),
('by_role', _(
'Users of a given role'
)),
Expand All @@ -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'
)
Expand Down