Skip to content

Simplify handling of hidden form fields in template macros #106

@bladams

Description

@bladams

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions