From 886140d771cd94bb46c1e6ef4640effcdff34aa6 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Thu, 19 Nov 2020 11:26:39 +0100 Subject: [PATCH] changes in /intern --- input/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/input/views.py b/input/views.py index 27d6851..3e083e4 100644 --- a/input/views.py +++ b/input/views.py @@ -83,10 +83,20 @@ class InternView(LoginRequiredMixin, CookieWizardView): form = TravelForm(data) else: raise RuntimeError(f'ERROR! UNKNOWN FORMTYPE {choice} in InternView') + self.choice = choice else: form = super().get_form(step, data, files) + form.fields['realname'].help_text = format_html("Vor- und Zuname (Realname), Wer hat das Projekt beantragt?
\ + Wer ist Hauptansprechperson? Bei WMDE-MAs immer „(WMDE)“,
\ + bei externen Partnern „(PART)“ hinzufügen.") return form + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + if hasattr(self, 'choice'): + context["choice"] = INTERN_CHOICES[self.choice] + return context + def done(self, form_list, **kwargs): print('InternView.done() reached') # gather data from all forms