浏览代码

use textarea widgets for long fields

master
erichhasl 8 年前
父节点
当前提交
afc8a0509e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      web_dev/sas_web/meingoethopia/views.py

+ 4
- 4
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()




正在加载...
取消
保存