<commit_before>{% extends theme('layouts/_survey.html') %}

{% block page_title %}Survey{% endblock %}

{% block survey %}

<h1 class="u-vh">Monthly Business Survey - Retail Sales Index</h1>
<div class="u-mb-xs">
  <a href="previous">Previous</a>
</div>
<br/>
{% set state = content %}
{% set all_errors = state.get_errors().items() %}
{% if all_errors %}
  {% with %}

    {% set alert_title %}<h2 class="alert__title">This page has {{all_errors|length}} errors</h2> {% endset %}

    {% set alert_body %}
    <p>These <strong>must be corrected</strong> to continue.</p>
    <ul class="list list--bare">

      {% for item_id, errors in all_errors %}
        {% set loop_index = loop.index %}
        {% if errors %}
        {% for error in errors %}
        <li class="list__item">
          {{loop_index}}) {{ error }} <a href="#{{item_id}}">{{_('Go to this error')}}</a>
        </li>
        {% endfor %}
        {% endif %}
      {% endfor %}
    </ul>
    {% endset %}

    <div class="u-mb-s u-mb-l@s">{% include 'partials/alert.html' %}</div>

  {% endwith %}

{% endif %}

<form action="" class="form qa-questionnaire-form" role="form" method="POST" novalidate>

    {% set group = state.schema_item.container %}

      <div class="group" id="{{group.id}}">

      {% set block = state.schema_item %}

        <div class="block" id="{{block.id}}">

        {% for section in state.children %}

          {% include 'partials/section.html' %}

        {% endfor %}

        </div>

      </div>


  <button class="btn btn--secondary qa-btn-submit" type="submit" name="action[save_continue]">Save &amp; Continue</button>
  <br/>
  <a class="u-dib" href="previous">Previous</a><commit_msg>tweaked spacing on bottom 'previous' link<commit_after>{% extends theme('layouts/_survey.html') %}

{% block page_title %}Survey{% endblock %}

{% block survey %}

<h1 class="u-vh">Monthly Business Survey - Retail Sales Index</h1>
<div class="u-mb-xs">
  <a href="previous">Previous</a>
</div>
<br/>
{% set state = content %}
{% set all_errors = state.get_errors().items() %}
{% if all_errors %}
  {% with %}

    {% set alert_title %}<h2 class="alert__title">This page has {{all_errors|length}} errors</h2> {% endset %}

    {% set alert_body %}
    <p>These <strong>must be corrected</strong> to continue.</p>
    <ul class="list list--bare">

      {% for item_id, errors in all_errors %}
        {% set loop_index = loop.index %}
        {% if errors %}
        {% for error in errors %}
        <li class="list__item">
          {{loop_index}}) {{ error }} <a href="#{{item_id}}">{{_('Go to this error')}}</a>
        </li>
        {% endfor %}
        {% endif %}
      {% endfor %}
    </ul>
    {% endset %}

    <div class="u-mb-s u-mb-l@s">{% include 'partials/alert.html' %}</div>

  {% endwith %}

{% endif %}

<form action="" class="form qa-questionnaire-form" role="form" method="POST" novalidate>

    {% set group = state.schema_item.container %}

      <div class="group" id="{{group.id}}">

      {% set block = state.schema_item %}

        <div class="block" id="{{block.id}}">

        {% for section in state.children %}

          {% include 'partials/section.html' %}

        {% endfor %}

        </div>

      </div>


  <button class="btn btn--secondary qa-btn-submit" type="submit" name="action[save_continue]">Save &amp; Continue</button>
  <br/>
  <div class="u-mt-xs">
    <a href="previous">Previous</a>
  </div>
{'fraction_non_alphanumeric': 0.2016855565242662, 'fraction_numerical': 0.0023249055507120024, 'mean_word_length': 2.884875846501129, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7127412', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1114, 'n_words': 262}