diff --git a/symposion/proposals/forms.py b/symposion/proposals/forms.py index 4dd40327..ea0699c8 100644 --- a/symposion/proposals/forms.py +++ b/symposion/proposals/forms.py @@ -10,6 +10,8 @@ from symposion.proposals.models import SupportingDocument class AddSpeakerForm(forms.Form): + required_css_class = 'label-required' + email = forms.EmailField( label=_("Email address of new speaker (use their email address, not yours)") ) @@ -33,6 +35,8 @@ class AddSpeakerForm(forms.Form): class SupportingDocumentCreateForm(forms.ModelForm): + required_css_class = 'label-required' + class Meta: model = SupportingDocument fields = [ diff --git a/symposion/reviews/forms.py b/symposion/reviews/forms.py index 03c4b6ef..426bab88 100644 --- a/symposion/reviews/forms.py +++ b/symposion/reviews/forms.py @@ -5,6 +5,9 @@ from symposion.reviews.models import Review, Comment, ProposalMessage, VOTES class ReviewForm(forms.ModelForm): + + required_css_class = 'label-required' + class Meta: model = Review fields = ["vote", "comment"] @@ -18,18 +21,27 @@ class ReviewForm(forms.ModelForm): class ReviewCommentForm(forms.ModelForm): + + required_css_class = 'label-required' + class Meta: model = Comment fields = ["text"] class SpeakerCommentForm(forms.ModelForm): + + required_css_class = 'label-required' + class Meta: model = ProposalMessage fields = ["message"] class BulkPresentationForm(forms.Form): + + required_css_class = 'label-required' + talk_ids = forms.CharField( label=_("Talk ids"), max_length=500, diff --git a/symposion/schedule/forms.py b/symposion/schedule/forms.py index 60fe8c55..fd549cd3 100644 --- a/symposion/schedule/forms.py +++ b/symposion/schedule/forms.py @@ -14,6 +14,8 @@ from symposion.schedule.models import (Day, Presentation, Room, SlotKind, Slot, class SlotEditForm(forms.Form): + required_css_class = 'label-required' + def __init__(self, *args, **kwargs): self.slot = kwargs.pop("slot") super(SlotEditForm, self).__init__(*args, **kwargs) @@ -48,6 +50,9 @@ class SlotEditForm(forms.Form): class ScheduleSectionForm(forms.Form): + + required_css_class = 'label-required' + ROOM_KEY = 'room' DATE_KEY = 'date' START_KEY = 'time_start' diff --git a/symposion/speakers/forms.py b/symposion/speakers/forms.py index 5f2aece9..e4fddbc8 100644 --- a/symposion/speakers/forms.py +++ b/symposion/speakers/forms.py @@ -5,6 +5,8 @@ from symposion.speakers.models import Speaker class SpeakerForm(forms.ModelForm): + required_css_class = 'label-required' + class Meta: model = Speaker fields = [ diff --git a/symposion/sponsorship/forms.py b/symposion/sponsorship/forms.py index 100ea8db..418eb7c5 100644 --- a/symposion/sponsorship/forms.py +++ b/symposion/sponsorship/forms.py @@ -8,6 +8,9 @@ from symposion.sponsorship.models import Sponsor, SponsorBenefit class SponsorApplicationForm(forms.ModelForm): + + required_css_class = 'label-required' + def __init__(self, *args, **kwargs): self.user = kwargs.pop("user") kwargs.update({ @@ -37,6 +40,9 @@ class SponsorApplicationForm(forms.ModelForm): class SponsorDetailsForm(forms.ModelForm): + + required_css_class = 'label-required' + class Meta: model = Sponsor fields = [ @@ -48,6 +54,9 @@ class SponsorDetailsForm(forms.ModelForm): class SponsorBenefitsInlineFormSet(BaseInlineFormSet): + + required_css_class = 'label-required' + def __init__(self, *args, **kwargs): kwargs['queryset'] = kwargs.get('queryset', self.model._default_manager).exclude(benefit__type="option") super(SponsorBenefitsInlineFormSet, self).__init__(*args, **kwargs) diff --git a/symposion/teams/forms.py b/symposion/teams/forms.py index 5ba8ccae..5d06c748 100644 --- a/symposion/teams/forms.py +++ b/symposion/teams/forms.py @@ -11,6 +11,8 @@ from symposion.teams.models import Membership class TeamInvitationForm(forms.Form): + required_css_class = 'label-required' + email = forms.EmailField(label=_("Email"), help_text=_("email address must be that of an account on this " "conference site"))