<commit_before>{% load i18n %}

{% load markup %}
{% load form_helper %}


<form method="post" action="{% url 'campaign-add_campaign_report' questionaire_id=questionaire.id iobj_id=iobj.id foirequest_id=foirequest.id %}">
  {% csrf_token %}
  <h3>{{ questionaire.title }}</h3>
  <div>{{ questionaire.description|markdown }}</div>
  {% if report_count %}
    <p>
      {% blocktranslate count report_count=report_count %}
      You already made a submission.
      {% plural %}
      You already made {{ report_count }} submissions.
      {% endblocktranslate %}
    </p>
  {% endif %}
  {% render_form form %}
  <p class="text-right">
    <button class="btn btn-primary" type="submit">
      {% if questionaire.multiple_reports %}
        {% translate "Add entry" %}
      {% else %}
        {% translate "Save" %}
      {% endif %}
    </button>
  </p>
</form>
<commit_msg>Fix questionaire form error on decoupled request<commit_after>{% load i18n %}

{% load markup %}
{% load form_helper %}

{% if questionaire and iobj and foirequest %}
  <form method="post" action="{% url 'campaign-add_campaign_report' questionaire_id=questionaire.id iobj_id=iobj.id foirequest_id=foirequest.id %}">
    {% csrf_token %}
    <h3>{{ questionaire.title }}</h3>
    <div>{{ questionaire.description|markdown }}</div>
    {% if report_count %}
      <p>
        {% blocktranslate count report_count=report_count %}
        You already made a submission.
        {% plural %}
        You already made {{ report_count }} submissions.
        {% endblocktranslate %}
      </p>
    {% endif %}
    {% render_form form %}
    <p class="text-right">
      <button class="btn btn-primary" type="submit">
        {% if questionaire.multiple_reports %}
          {% translate "Add entry" %}
        {% else %}
          {% translate "Save" %}
        {% endif %}
      </button>
    </p>
  </form>
{% endif %}
{'fraction_non_alphanumeric': 0.1589825119236884, 'fraction_numerical': 0.0042395336512983575, 'mean_word_length': 2.9008264462809916, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '676138', 'n_tokens_mistral': 662, 'n_tokens_neox': 572, 'n_words': 137}