django-crispy-forms / crispy-tailwind

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

crispy_field load tag #95

Closed areski closed 5 months ago

areski commented 3 years ago

I'm seeing this error when using it:

_Compressing... Invalid template /usr/local/lib/python3.9/site-packages/crispy_tailwind/templates/tailwind/layout/inline_field.html: Invalid block tag on line 9: 'crispy_field', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag?

Invalid template /usr/local/lib/python3.9/site-packages/crispy_tailwind/templates/tailwind/layout/field_with_buttons.html: Invalid block tag on line 12: 'crispyfield'. Did you forget to register or load this tag?`

Any pointers on how to fix this?

smithdc1 commented 3 years ago

Thanks for reporting the issue.

Looks like crispy_field needs to be changed to tailwind_field in those templates. Would you be in the market for a PR to fix those?

We should audit the other templates to makes sure I've not missed anymore.

areski commented 3 years ago

I opened a PR, but not sure the fix is right!

GitRon commented 5 months ago

PR seems to have been merged ages ago. Closing this ticket.