diff --git a/pinaxcon/templates/_form_snippet.html b/pinaxcon/templates/_form_snippet.html new file mode 100644 index 0000000000000000000000000000000000000000..bc001cc4805d236420eba56ca7d7b704fd451ecb --- /dev/null +++ b/pinaxcon/templates/_form_snippet.html @@ -0,0 +1,27 @@ +{% load lca2017_tags %} + +{% for field in form %} + {% if not field.is_hidden %} +
+ {% classname field.field.widget as widget %} + {% if widget != "CheckboxInput" %} +

+ {{ field.errors }} + {{ field }} + {% else %} + + {{ field }} + {{ field.errors }} + {% endif %} + + {% if field.help_text %} + {% if widget != "CheckboxInput" or not field.errors %} +
+ {% endif %} + {{ field.help_text|safe }} + {% endif %} + +

+
+ {% endif %} +{% endfor %}