{% extends "./alter_common.html" %}

{% comment %}
# Copyright (C) 2025  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
{% endcomment %}

{% load alter_extras %}

{% block page_title %}
  {% translate "Alteration request security check" %}
{% endblock page_title %}

{% block navbar-content %}
  <h4>{% translate "Alteration request security check" %}</h4>
{% endblock navbar-content %}

{% block content %}
  {% bootstrap_messages %}
  {% if form.errors %}
    {% translate "Please fix the errors in the form." as error_message %}
    {% bootstrap_alert error_message alert_type="danger" %}
  {% endif %}
  <div class="row mt-3">
    <p>
      {% blocktranslate trimmed %}
        To confirm that you are the author of this request, please type the email address
        you used while submitting it, a message containing an access link will be sent to you.
      {% endblocktranslate %}
    </p>
  </div>
  <form method="POST" class="form">
    {% csrf_token %}
    {% bootstrap_field_submit form.email _("Request an access link") %}
  </form>
{% endblock content %}
