<commit_before>{% load i18n %}

{% load foirequest_tags %}
{% load account_tags %}
{% load humanize %}
{% load form_helper %}

{% if not hide_intro %}
<p>
  {% if object.status_is_final %}
    {% blocktrans with title=object.title %}The request "{{ title }}" received documents that we are not allowed to publish. However, every person can get individual access to these documents by requesting them below.{% endblocktrans %}
  {% else %}
    {% blocktrans with title=object.title %}The request "{{ title }}" is for documents that we are not allowed to publish. However, every person can get individual access to these documents by requesting them just for themselves.{% endblocktrans %}
  {% endif %}
</p>
{% endif %}
{% if user.is_authenticated %}
  {% if object.user == user %}
    <p>{% blocktrans with email=SITE_EMAIL %}You stated that you are not allowed to publish the received documents. If this was a mistake, please contact {{ email }}.{% endblocktrans %}</p>
  {% else %}
    {% if object.same_as.user == user %}
      <p>{% blocktrans %}You made the original request.{% endblocktrans %}</p>
    {% else %}
      {% check_same_request object user "same_request" %}
      {% if same_request %}
        <a href="{{ same_request.get_absolute_url }}">{% blocktrans %}You made an identical request.{% endblocktrans %}</a>
      {% else %}
        <form method="post" class="d-print-none" action="{% url 'foirequest-make_same_request' slug=object.slug %}">
          {% csrf_token %}
          <p>{% blocktrans %}Make an identical request in your name to get access to the information.{% endblocktrans %}</p>
          <p>{% blocktrans %}Your Email Address:{% endblocktrans %} <strong><span id="email_address">{{ user.email }}</span></strong></p>

          {% if not address_form %}
            {% get_user_form address_required=object.law.address_required as address_form %}
          {% endif %}
          {% render_form address_form %}
          {% if redirect_url %}
            <input type="hidden" name="redirect_url" value="{{ redirect_url }}"/>
          {% endif %}
          <p class="text-right">
            <button type="submit" class="btn btn-primary">
              &rarr;
              {% trans "Make identical request in your name" %}
            </button>
          </p>
        </form>
      {% endif %}
    {% endif %}
  {% endif %}
{% else %}
  <form method="post" id="make-same-request" class="form-horizontal d-print-none" action="{% url 'foirequest-make_same_request' slug=object.slug %}#make-same-request">
    {% csrf_token %}
    <p>{% blocktrans %}Make an identical request in your name to get access to the information.{% endblocktrans %}</p>
    {% if not new_user_form %}
      {% get_user_form address_required=object.law.address_required as new_user_form %}
    {% endif %}
    {% render_form new_user_form %}
    {% if redirect_url %}
      <input type="hidden" name="redirect_url" value="{{ redirect_url }}"/>
    {% endif %}
    {% if reference %}
      <input type="hidden" name="reference" value="{{ reference }}"/>
    {% endif %}
    <p class="text-right"><commit_msg>Add reference to make same request form logged in<commit_after>{% load i18n %}

{% load foirequest_tags %}
{% load account_tags %}
{% load humanize %}
{% load form_helper %}

{% if not hide_intro %}
<p>
  {% if object.status_is_final %}
    {% blocktrans with title=object.title %}The request "{{ title }}" received documents that we are not allowed to publish. However, every person can get individual access to these documents by requesting them below.{% endblocktrans %}
  {% else %}
    {% blocktrans with title=object.title %}The request "{{ title }}" is for documents that we are not allowed to publish. However, every person can get individual access to these documents by requesting them just for themselves.{% endblocktrans %}
  {% endif %}
</p>
{% endif %}
{% if user.is_authenticated %}
  {% if object.user == user %}
    <p>{% blocktrans with email=SITE_EMAIL %}You stated that you are not allowed to publish the received documents. If this was a mistake, please contact {{ email }}.{% endblocktrans %}</p>
  {% else %}
    {% if object.same_as.user == user %}
      <p>{% blocktrans %}You made the original request.{% endblocktrans %}</p>
    {% else %}
      {% check_same_request object user "same_request" %}
      {% if same_request %}
        <a href="{{ same_request.get_absolute_url }}">{% blocktrans %}You made an identical request.{% endblocktrans %}</a>
      {% else %}
        <form method="post" class="d-print-none" action="{% url 'foirequest-make_same_request' slug=object.slug %}">
          {% csrf_token %}
          <p>{% blocktrans %}Make an identical request in your name to get access to the information.{% endblocktrans %}</p>
          <p>{% blocktrans %}Your Email Address:{% endblocktrans %} <strong><span id="email_address">{{ user.email }}</span></strong></p>

          {% if not address_form %}
            {% get_user_form address_required=object.law.address_required as address_form %}
          {% endif %}
          {% render_form address_form %}
          {% if redirect_url %}
            <input type="hidden" name="redirect_url" value="{{ redirect_url }}"/>
          {% endif %}
          {% if reference %}
            <input type="hidden" name="reference" value="{{ reference }}"/>
          {% endif %}

          <p class="text-right">
            <button type="submit" class="btn btn-primary">
              &rarr;
              {% trans "Make identical request in your name" %}
            </button>
          </p>
        </form>
      {% endif %}
    {% endif %}
  {% endif %}
{% else %}
  <form method="post" id="make-same-request" class="form-horizontal d-print-none" action="{% url 'foirequest-make_same_request' slug=object.slug %}#make-same-request">
    {% csrf_token %}
    <p>{% blocktrans %}Make an identical request in your name to get access to the information.{% endblocktrans %}</p>
    {% if not new_user_form %}
      {% get_user_form address_required=object.law.address_required as new_user_form %}
    {% endif %}
    {% render_form new_user_form %}
    {% if redirect_url %}
      <input type="hidden" name="redirect_url" value="{{ redirect_url }}"/>
    {% endif %}
    {% if reference %}
      <input type="hidden" name="reference" value="{{ reference }}"/>
    {% endif %}
    <p class="text-right">
{'fraction_non_alphanumeric': 0.1510791366906475, 'fraction_numerical': 0.0006255864873318737, 'mean_word_length': 3.088874680306905, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 62, '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': '2371376', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1779, 'n_words': 569}