Skip to content

Commit

Permalink
Removed MinLengthValidator as it was causing some issues. Added 'than…
Browse files Browse the repository at this point in the history
…k-you' question and follow-up checkbox
  • Loading branch information
haudquaquam committed May 28, 2024
1 parent fe26847 commit 1c8698e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions coldfront/core/project/forms_/renewal_forms/request_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from flags.state import flag_enabled
from django import forms
from django.utils.safestring import mark_safe
from django.core.validators import MinLengthValidator


class ProjectRenewalPIChoiceField(forms.ModelChoiceField):

Expand Down Expand Up @@ -548,6 +546,7 @@ def _update_brc_survey_fields(self):
label=('15. Any other or specific topics of interest?'),
required=False,
widget=forms.Textarea(attrs={'rows': 2}))

def _update_lrc_survey_fields(self):
self.fields['which_sitrc_services_used'] = forms.MultipleChoiceField(
choices=(
Expand Down Expand Up @@ -640,7 +639,6 @@ def _update_lrc_survey_fields(self):
self.fields['lrc_recommendation_rating_reason'] = forms.CharField(
label='5a. What is the reason for your rating above?',
required=False,
validators=MinLengthValidator(20)
widget=forms.Textarea(attrs={'rows': 2}))

self.fields['bootstrap_computational_methods'] = forms.CharField(
Expand Down Expand Up @@ -750,6 +748,17 @@ def _update_lrc_survey_fields(self):
'Kubernetes service?'),
required=False,
widget=forms.Textarea(attrs={'rows': 2}))

self.fields['contact_me'] = forms.MultipleChoiceField(
choices=(
('yes', (
'Please contact me to follow up on my use '
'of the Science IT Program.')),
),
label=(
'Thank you for taking time to fill out the survey.'),
required=False,
widget=forms.CheckboxSelectMultiple())

class ProjectRenewalReviewAndSubmitForm(forms.Form):

Expand Down

0 comments on commit 1c8698e

Please sign in to comment.