Skip to content
Snippets Groups Projects
Commit 96cfbc37 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix event creation wizard

Make sure plan is hidden by default and allow to adapt/change this during the usage of the wizard
This fixes #115
parent 18ede889
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,10 @@ from AKModel.models import Event, AKCategory, AKRequirement
class NewEventWizardStartForm(forms.ModelForm):
class Meta:
model = Event
fields = ['name', 'slug', 'timezone']
fields = ['name', 'slug', 'timezone', 'plan_hidden']
widgets = {
'plan_hidden': forms.HiddenInput(),
}
is_init = forms.BooleanField(initial=True, widget=forms.HiddenInput)
......@@ -23,7 +26,6 @@ class NewEventWizardSettingsForm(forms.ModelForm):
'slug': forms.HiddenInput(),
'timezone': forms.HiddenInput(),
'active': forms.HiddenInput(),
'plan_hidden': forms.HiddenInput(),
'start': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
'end': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
'reso_deadline': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment