forked from beba/foerderbarometer
help texts for Mailinglists and EMail Form
This commit is contained in:
parent
3a062c7c7c
commit
32da9ccd16
|
@ -185,11 +185,15 @@ MAIL_CHOICES = {'REALNAME': 'Vorname.Nachname',
|
|||
class Email(Domain):
|
||||
address = models.CharField(max_length=50,
|
||||
choices=MAIL_CHOICES.items(),
|
||||
default='USERNAME', verbose_name='Adressbestandteil')
|
||||
default='USERNAME', verbose_name='Adressbestandteil',
|
||||
help_text="Bitte gib hier den gewünschten Adressbestandteil an, der sich vor der Domain befinden soll.")
|
||||
|
||||
other = models.CharField(max_length=50,blank=True,null=True)
|
||||
|
||||
class List(Domain):
|
||||
address = models.CharField(max_length=50, default='NO_ADDRESS')
|
||||
address = models.CharField(max_length=50, default='NO_ADDRESS',
|
||||
verbose_name="Adressbestandteil für Projektmailingliste",
|
||||
help_text=format_html("Bitte gib hier den gewünschten Adressbestandteil an,<br>der sich vor der Domain befinden soll."))
|
||||
|
||||
PROJECT_CHOICE = {'PEDIA': 'Wikipedia',
|
||||
'SOURCE': 'Wikisource',
|
||||
|
|
|
@ -153,12 +153,14 @@ class ExternView(CookieWizardView):
|
|||
form.fields['duration'].help_text = HELP_CHOICES[choice]
|
||||
elif choice == 'MAIL':
|
||||
form = EmailForm(data)
|
||||
form.fields['domain'].help_text = format_html("Mit welcher Domain, bzw. für welches Wikimedia-Projekt,<br>möchtest du eine Mailadresse beantragen?")
|
||||
elif choice == 'LIT':
|
||||
form = LiteratureForm(data)
|
||||
elif choice == 'VIS':
|
||||
form = BusinessCardForm(data)
|
||||
elif choice == 'LIST':
|
||||
form = ListForm(data)
|
||||
form.fields['domain'].help_text = format_html("Mit welcher Domain, bzw. für welches Wikimedia-Projekt,<br>möchtest du eine Mailingliste beantragen?")
|
||||
else:
|
||||
raise RuntimeError(f'ERROR! UNKNOWN FORMTYPE {choice} in ExternView')
|
||||
self.choice = choice
|
||||
|
|
Loading…
Reference in New Issue