<div class="navigation_buttons">
    {% if context['hide_back'] %}
    {% else %}
        <a class="back button" href="{{ context['steps'][context['current_step'] - 2][2] }}">Back</a>
    {% endif %}

    {% if context['steps']|length > context['current_step'] and not context.get('no_proceed') %}
        {% if not form or context['override_form'] %}
            <a class="button" href="{{ context['steps'][context['current_step']][2] }}" value="Next">Next</a>
        {% else %}
            {% if not context['hide_submit'] %}
                <input type="submit" class="button" name="submit_button" value="Next">
            {% else %}
                <input type="submit" class="button" name="submit_button" value="Next" style="display: none;">
            {% endif %}
        {% endif %}
    {% endif %}
</div>
