From afc8a0509ed96ef4192315fa2db4eb84640423db Mon Sep 17 00:00:00 2001 From: erichhasl Date: Sun, 19 Nov 2017 17:46:18 +0100 Subject: [PATCH] use textarea widgets for long fields --- web_dev/sas_web/meingoethopia/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web_dev/sas_web/meingoethopia/views.py b/web_dev/sas_web/meingoethopia/views.py index d285605..41d6f45 100644 --- a/web_dev/sas_web/meingoethopia/views.py +++ b/web_dev/sas_web/meingoethopia/views.py @@ -8,7 +8,7 @@ class BetriebForm(forms.Form): name = forms.CharField(label='Name des Betriebs', max_length=100) manager = forms.CharField(label='Betriebsleiter', max_length=200) email = forms.EmailField(label='Kontakt Email') - business_idea = forms.CharField(label='Idee') + business_idea = forms.CharField(label='Idee', widget=forms.Textarea) captcha = CaptchaField() @@ -17,21 +17,21 @@ class ParteiForm(forms.Form): abbreviation = forms.CharField(label='Abkürzung', max_length=5) chef = forms.CharField(label='Parteivorsitzende', max_length=200) email = forms.EmailField(label='Kontakt Email') - description = forms.CharField(label='Beschreibung') + description = forms.CharField(label='Beschreibung', widget=forms.Textarea) captcha = CaptchaField() class PresidentForm(forms.Form): name = forms.CharField(label='Name', max_length=100) email = forms.EmailField(label='Kontakt Email') - motivation = forms.CharField(label='Motivation') + motivation = forms.CharField(label='Motivation', widget=forms.Textarea) captcha = CaptchaField() class QuestionForm(forms.Form): subject = forms.CharField(label='Thema', max_length=100) email = forms.EmailField(label='Kontakt Email') - content = forms.CharField(label='Frage') + content = forms.CharField(label='Frage', widget=forms.Textarea) captcha = CaptchaField()