|
|
@ -121,6 +121,11 @@ LABEL_CHOICES = {'BIB': format_html('Bibliothek'), |
|
|
|
'VIS': format_html('Visitenkarten'), |
|
|
|
} |
|
|
|
|
|
|
|
HELP_CHOICES = {'BIB': format_html("In welchem Zeitraum möchtest du recherchieren oder<br>wie lange ist der Bibliotheksausweis gültig?"), |
|
|
|
'ELIT': "Wie lange gilt der Zugang?", |
|
|
|
'SOFT': "Wie lange gilt die Lizenz?", |
|
|
|
} |
|
|
|
|
|
|
|
class ExternView(CookieWizardView): |
|
|
|
'''This View is for Volunteers''' |
|
|
|
|
|
|
@ -144,6 +149,7 @@ class ExternView(CookieWizardView): |
|
|
|
elif choice in ('BIB', 'SOFT', 'ELIT'): |
|
|
|
form = LibraryForm(data) |
|
|
|
form.fields['library'].label = LABEL_CHOICES[choice] |
|
|
|
form.fields['duration'].help_text = HELP_CHOICES[choice] |
|
|
|
elif choice == 'MAIL': |
|
|
|
form = EmailForm(data) |
|
|
|
elif choice == 'LIT': |
|
|
|