Make the conference editing form use fieldsets
authorMagnus Hagander <magnus@hagander.net>
Mon, 2 Jul 2018 10:28:15 +0000 (12:28 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 2 Jul 2018 10:28:15 +0000 (12:28 +0200)
postgresqleu/confreg/backendforms.py

index b5721a6bb9b0259c2279eca2f08c7665601d3a14..3597a3ec9a50fc79d0f85c62e7fd347c0f0658e4 100644 (file)
@@ -165,6 +165,14 @@ class BackendConferenceForm(BackendForm):
        def fix_fields(self):
                self.selectize_multiple_fields['volunteers'] = RegisteredUsersLookup(self.conference)
 
+       fieldsets = [
+               {'id': 'base_info', 'legend': 'Basic information', 'fields': ['attendees_before_waitlist', 'invoice_autocancel_hours', 'sendwelcomemail', 'welcomemail', 'additionalintro']},
+               {'id': 'fields', 'legend': 'Registration fields', 'fields': [ 'asktshirt', 'askfood', 'asknick', 'asktwitter', 'askshareemail', 'askphotoconsent']},
+               {'id': 'steps', 'legend': 'Steps', 'fields': ['active', 'allowedit', 'callforpapersopen', 'callforsponsorsopen', 'scheduleactive', 'sessionsactive', 'conferencefeedbackopen', 'feedbackopen']},
+               {'id': 'callforpapers', 'legend': 'Call for papers', 'fields': ['skill_levels', 'callforpapersintro']},
+               {'id': 'roles', 'legend': 'Roles', 'fields': ['testers', 'talkvoters', 'staff', 'volunteers']},
+               {'id': 'legacy', 'legend': 'Legacy', 'fields': ['schedulewidth', 'pixelsperminute']},
+       ]
 
 class BackendSuperConferenceForm(BackendForm):
        class Meta: