indico
indico copied to clipboard
Reactify custom WTForms fields
This PR adds the following components:
- a
FinalPersonLinkField, so that thePersonLinkFieldcan be added to final forms- also includes a wrapper for abstracts and contributions, with predefined roles
- a
SessionColorPickerand aFinalSessionColorPicker - a
LocationFieldand aFinalLocationField - an
ItemListField, aFinalItemListFieldand aFinalReferencesField
Moreover, it includes a new dev module with a page to test all of the custom React fields in /dev/react/fields. Also, the ChoicesSetup was refactored using the new ItemListField.
This will be important for future rectifying of timetable-related dialogs for #6220.
I recommend adding some wrappers for the different object types - check the PersonLinkListFieldBase subclasses in Python what roles we set and on which conditions this depends.
I recommend adding some wrappers for the different object types - check the
PersonLinkListFieldBasesubclasses in Python what roles we set and on which conditions this depends.
I guess we can skip the abstracts one for now, right?
yeah... unless we want to move all dialogs in one go, which might actually not be such a bad idea considering the huge amount of awful complexity the wtforms-based backend of this field requires (for sending back the data when re-rendering the form)
merged into timetable branch