{# Edit action form component #}
{% if action %}
{{ action['action'] | format_name }}
{% if not action['args'] == None %}
{% if not action['args'].__class__.__name__ == 'dict' %}
{% else %} {{ forms.hidden_tag() }} {% for field in forms %} {% if field.type not in ['CSRFTokenField'] %}
{% if field.type == "BooleanField" %} {{ field(class="form-check-input") }} {% elif field.type == "FlexibleEnumField" %} {% for key in field.choices %} {% endfor %} {% else %} {{ field(class="form-control") }} {% endif %}
{% endif %} {% endfor %} {% endif %}
{% endif %}
{% endif %}