{# Action form component #}

{{ form.hidden_tag() }} {% for field in form %} {% if field.type not in ['CSRFTokenField', 'HiddenField'] and field.name != 'return' and field.name != 'batch_action' and field.name != 'consolidate_batch_args' %}
{% if field.type == "SubmitField" %} {{ field(class="btn btn-dark") }} {% elif field.type == "BooleanField" %} {{ field(class="form-check-input") }} {% elif field.type == "FlexibleEnumField" %} {% for key in field.choices %} {% endfor %} {% else %} {{ field(class="form-control", list="variables_datalist", oninput="updateConsolidateVisibility(this)") }} {% endif %} {% if form.arg_types is defined and form.arg_types and form.arg_types.get(field.name) == 'list' %} {% endif %}
{% endif %} {% endfor %}
{# Dynamic Arguments Section #} {% if form.has_kwargs %}
{# New args will be added here #}
{% endif %} {# Manual rendering of batch_action and return #} {% if form.batch_action %}
{{ form.batch_action(class="form-check-input", onchange="handleBatchActionChange(this)") }}
{% endif %} {% if form.return %}
{{ form.return(class="form-control") }}
{% endif %} {% if 'hidden_name' in form %} {% elif 'workflow_name' in form %} {% endif %}