torchbox / tbxforms

A Torchbox-flavoured template pack for django-crispy-forms, adapted from crispy-forms-gds.

Home Page:https://pypi.org/project/tbxforms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time (`TimeField`) and Date time (`DateTimeField`) fields not supported

kbayliss opened this issue · comments

Using either TimeField or DateTimeField results in an unstyled/default field (i.e. one that does not look like the GOV.UK Design System).

This is because the GOV.UK Design System does not contain a pattern for time fields or datetime fields.

While there's no official pattern for these fields, alphagov/govuk-design-system-backlog#173 contains some suggestions on how to work around this until official support is (hopefully) added, which could be implemented within tbxforms as an interim solution.