If we remove the automatic call to render_hidden we could avoid the additional complexity of filtering out hidden fields and just rely on our own macros to render the fields.
|
{% if not f.widget.input_type == 'hidden' %} |
Care will need to be taken to make this change since this may cause problems where we use the block form of the macro or explicitly provide field names since the CSRF token field will no longer be rendered automatically in those cases.
This applies to both the horizontal.html and horizontal_b4.html.
If we remove the automatic call to
render_hiddenwe could avoid the additional complexity of filtering out hidden fields and just rely on our own macros to render the fields.keg-elements/keg_elements/templates/keg_elements/forms/horizontal.html
Line 241 in 343db08
Care will need to be taken to make this change since this may cause problems where we use the block form of the macro or explicitly provide field names since the CSRF token field will no longer be rendered automatically in those cases.
This applies to both the horizontal.html and horizontal_b4.html.