django-crispy-forms / crispy-tailwind

A Tailwind template pack for django-crispy-forms
MIT License
331 stars 56 forks source link

Non Field Errors, unclosed div tag #76

Closed gigincg closed 3 years ago

gigincg commented 3 years ago

When non-field errors are rendered, the parent div that starts on line 2 in https://github.com/django-crispy-forms/crispy-tailwind/blob/master/crispy_tailwind/templates/tailwind/errors.html is never closed. This messes up the layout of the page when there are non-field errors

A simple fix would be to add a closing div to the end of the errors.html file.

smithdc1 commented 3 years ago

Great, thanks for the report. 👍

Are you in a position to open a pr with the fix you suggested? It would really help me out.

Thanks

gigincg commented 3 years ago

I can surely make a PR. It's a simple fix.