Skip to content

Commit

Permalink
Merge pull request #162 from UiL-OTS-labs/fix/merge-select
Browse files Browse the repository at this point in the history
fix: use searchable select widget for pp merge page
  • Loading branch information
tymees authored Nov 28, 2024
2 parents 6cb0afd + 87f6930 commit e44436d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions participants/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
from django.core.exceptions import ValidationError
from django.utils.text import gettext_lazy as _

from cdh.core.forms import (TelephoneInput,BootstrapRadioSelect,
BootstrapCheckboxInput)
from cdh.core.forms import (SearchableSelectWidget, TelephoneInput,
BootstrapRadioSelect,
BootstrapCheckboxInput, )
from main.forms import PPNTemplatedForm, PPNTemplatedModelForm

from .models import CriterionAnswer, Participant
Expand Down Expand Up @@ -61,11 +62,13 @@ class ParticipantMergeForm(PPNTemplatedForm):
old_participant = forms.ModelChoiceField(
Participant.objects.all(),
label=_('participants:merge_form:field:old_participant'),
widget=SearchableSelectWidget,
)

new_participant = forms.ModelChoiceField(
Participant.objects.all(),
label=_('participants:merge_form:field:new_participant'),
widget=SearchableSelectWidget,
)

def clean_new_participant(self):
Expand Down

0 comments on commit e44436d

Please sign in to comment.