UPD: improved Event Update Form.
This commit is contained in:
@@ -86,6 +86,63 @@ class EventListExportForm(forms.Form):
|
||||
|
||||
|
||||
class EventUpdateForm(forms.ModelForm):
|
||||
requirements = forms.CharField(required=False,
|
||||
label=_(u'Anforderungen / Voraussetzungen'),
|
||||
widget=forms.Textarea(attrs={'rows': 2}))
|
||||
|
||||
equipment = forms.CharField(required=False,
|
||||
label=_(u'Ausrüstung'),
|
||||
widget=forms.Textarea(attrs={'rows': 2}))
|
||||
|
||||
registration_howto = forms.CharField(required=False,
|
||||
label=_(u'Anmeldungshinweis'),
|
||||
widget=forms.Textarea(attrs={'rows': 2}))
|
||||
|
||||
course_topic_1 = forms.CharField(required=False,
|
||||
label=u'%s - %s 1' % (_(u'Kursinhalt'), _(u'Absatz')),
|
||||
widget=forms.Textarea(attrs={'rows': 2}))
|
||||
course_topic_2 = forms.CharField(required=False,
|
||||
label=u'%s - %s 2' % (_(u'Kursinhalt'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_topic_3 = forms.CharField(required=False,
|
||||
label=u'%s - %s 3' % (_(u'Kursinhalt'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_topic_4 = forms.CharField(required=False,
|
||||
label=u'%s - %s 4' % (_(u'Kursinhalt'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_topic_5 = forms.CharField(required=False,
|
||||
label=u'%s - %s 5' % (_(u'Kursinhalt'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_topic_6 = forms.CharField(required=False,
|
||||
label=u'%s - %s 6' % (_(u'Kursinhalt'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
|
||||
course_goal_1 = forms.CharField(required=False,
|
||||
label=u'%s - %s 1' % (_(u'Kursziel'), _(u'Absatz')),
|
||||
widget=forms.Textarea(attrs={'rows': 2}))
|
||||
course_goal_2 = forms.CharField(required=False,
|
||||
label=u'%s - %s 2' % (_(u'Kursziel'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_goal_3 = forms.CharField(required=False,
|
||||
label=u'%s - %s 3' % (_(u'Kursziel'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_goal_4 = forms.CharField(required=False,
|
||||
label=u'%s - %s 4' % (_(u'Kursziel'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_goal_5 = forms.CharField(required=False,
|
||||
label=u'%s - %s 5' % (_(u'Kursziel'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
course_goal_6 = forms.CharField(required=False,
|
||||
label=u'%s - %s 6' % (_(u'Kursziel'), _(u'Zeile')),
|
||||
widget=forms.TextInput())
|
||||
|
||||
description = forms.CharField(label=_(u'Beschreibung'),
|
||||
widget=forms.Textarea(attrs={'rows': 5}))
|
||||
|
||||
internal_note = forms.CharField(required=False,
|
||||
label=_(u'Bearbeitungshinweis'),
|
||||
widget=forms.Textarea(attrs={'rows': 5}))
|
||||
|
||||
class Meta:
|
||||
model = models.Event
|
||||
fields = '__all__'
|
||||
|
||||
Reference in New Issue
Block a user