{% import 'macros/form.html' as form %} {% from 'tour/snippets/translated_field.html' import translated_input, translated_markdown %} {% set step_id = step.id or h.tour_random_step_id() %} {% set is_persisted = step.id %} {# Every step's controls are submitted under names namespaced by this id #} {% set ns = "step[" ~ step_id ~ "]" %} {% set image_field = ns ~ "[image_id]" %} {% if errors %} {% set collapse_step = false %} {% endif %}