def questions_form(self): bind = is_form_bound(self.request, "questions") return QuestionsForm( data=self.request.POST if bind else None, files=self.request.FILES if bind else None, speaker=self.request.user, event=self.request.event, target="speaker", )
def profile_form(self): bind = is_form_bound(self.request, 'profile') return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def profile_form(self): bind = is_form_bound(self.request, 'profile') return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, field_configuration=self.request.event.cfp_workflow.steps_dict.get('profile', {}).get('fields'), data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def profile_form(self): bind = is_form_bound(self.request, "profile") return SpeakerProfileForm( user=self.request.user, event=self.request.event, read_only=False, with_email=False, field_configuration=self.request.event.cfp_flow.config.get( "profile", {}).get("fields"), data=self.request.POST if bind else None, files=self.request.FILES if bind else None, )
def login_form(self): return LoginInfoForm( user=self.request.user, data=self.request.POST if is_form_bound(self.request, 'login') else None, )
def profile_form(self): return OrgaProfileForm( instance=self.request.user, data=self.request.POST if is_form_bound(self.request, 'profile') else None, )