{% set branch_indices = onfail_branch_indices(form_fields, prefix) %} {% set rows_url = rows_base_url %} {% set add_branch_action = 'add-' ~ onfail_scope ~ '-onfail-branch' %} {% set remove_branch_action = 'remove-' ~ onfail_scope ~ '-onfail-branch' %} {% for branch_idx in branch_indices %} {% set branch_key = prefix ~ '-branches-' ~ branch_idx %} {% set branch_step_indices = branch_step_indices(form_fields, branch_key) %} {% set add_branch_step_action = 'add-' ~ onfail_scope ~ '-onfail-branch-step' %} {% set remove_branch_step_action = 'remove-' ~ onfail_scope ~ '-onfail-branch-step' %} {% include "partials/branch_row.html" %} {% endfor %}