agdsn / sipa

The Supreme Information Providing Application
MIT License
13 stars 10 forks source link

Use wtforms_widgets for simpler and more extendible rendering #493

Open lukasjuhrich opened 6 months ago

lukasjuhrich commented 6 months ago

Currently, there is a horrible, badly extendable macro, which takes on the rendering of our fields in a way that works with bootstrap. This is solved by agdsn/wtforms-widgets, which furthermore supports proper field-level error reporting (sipa only flashes every form error on the top of the page).

lukasjuhrich commented 6 months ago

This is also a blocker for more fine-grained form interactivity like immediate validation and rendering of errors, because we otherwise would have to duplicate the rendering logic of fields.

lukasjuhrich commented 6 months ago

image This is a pic of what we currently don't have: error messages directly below the fields. (54b24c88d0473217f38388acee118b14b9f952f2)