From 3cfe149d75c0644f5ac4267721027838c4b041b0 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 17 Nov 2018 18:44:39 +0100 Subject: [PATCH] Add fieldsets to registration edit form Makes it easier to parse since it's now a fairly large form. --- postgresqleu/confreg/backendforms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postgresqleu/confreg/backendforms.py b/postgresqleu/confreg/backendforms.py index c5b441c..ce78369 100644 --- a/postgresqleu/confreg/backendforms.py +++ b/postgresqleu/confreg/backendforms.py @@ -250,6 +250,11 @@ class BackendRegistrationForm(BackendForm): fields = ['firstname', 'lastname', 'email', 'company', 'address', 'country', 'phone', 'shirtsize', 'dietary', 'twittername', 'nick', 'shareemail', 'regtype', 'additionaloptions'] + fieldsets = [ + {'id': 'personal_info', 'legend': 'Personal information', 'fields': ['firstname', 'lastname', 'email', 'company', 'address', 'country', 'phone', 'twittername', 'nick']}, + {'id': 'reg_info', 'legend': 'Registration information', 'fields': ['regtype', 'additionaloptions', 'shareemail']}, + {'id': 'attendee_specifics', 'legend': 'Attendee specifics', 'fields': ['shirtsize', 'dietary']}, + ] def fix_fields(self): if self.instance.payconfirmedat: -- 2.39.5