minvws / nl-kat-coordination

Repo nl-kat-coordination for minvws
European Union Public License 1.2
122 stars 55 forks source link

Use custom widgets for form fields that need to be rendered with custom html #506

Open dekkers opened 1 year ago

dekkers commented 1 year ago

We currently have a lot of logic in the templates to render form fields. The html to render form fields shouldn't be in the general templates, but should be in widgets (https://docs.djangoproject.com/en/4.1/ref/forms/widgets/).

It might also be a good idea to move widgets that are general rendering of Manon components and not specific to OpenKAT to something like a django-manon package.

underdarknl commented 1 year ago

Agreed! See also: https://github.com/minvws/nl-kat-coordination/issues/349