diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 3e4f3a4d..61ffae20 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -234,8 +234,12 @@ INSTALLED_APPS = [ # testing and rollout "django_nose", "waffle", + + "crispy_forms", ] +CRISPY_TEMPLATE_PACK = "bootstrap4" + DEBUG_TOOLBAR_PANELS = [ 'debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', diff --git a/pinaxcon/templates/bootstrap4/field.html b/pinaxcon/templates/bootstrap4/field.html new file mode 100644 index 00000000..305e6493 --- /dev/null +++ b/pinaxcon/templates/bootstrap4/field.html @@ -0,0 +1,48 @@ +{% load crispy_forms_field %} + +{% if field.is_hidden %} + {{ field }} +{% else %} + {% if field|is_checkbox %} +