{% set page_title = _("Report to StopForumSpam") %} {% extends theme("layout.html") %} {% block content %} {% from theme("_macros/form.html") import horizontal_field %}
{% if not has_api_key %}
{% trans %}No StopForumSpam API key is configured. An administrator has to add one in the plugin settings before users can be reported.{% endtrans %}
{% elif not record or not record.ip %}
{% trans %}The IP address this user registered from is unknown, so they cannot be reported. Only users who registered while this plugin was installed can be reported.{% endtrans %}
{% endif %} {% if record and record.reported_at %}
{% trans date=record.reported_at|format_date %}This user was already reported on {{ date }}.{% endtrans %}
{% endif %}
{% trans %}Username{% endtrans %}
{{ user.username }}
{% trans %}Email{% endtrans %}
{{ user.email }}
{% trans %}Registration IP{% endtrans %}
{{ record.ip if record and record.ip else "-" }}

{% trans %}These details are submitted to StopForumSpam and become publicly visible there. Only report accounts you are sure are spammers.{% endtrans %}

{{ form.hidden_tag() }}
{{ form.evidence.label(class="col-3 col-form-label text-end") }}
{{ form.evidence(class="form-control" ~ (" is-invalid" if form.evidence.errors else ""), rows=5) }} {% for error in form.evidence.errors %}
{{ error }}
{% endfor %} {{ form.evidence.description }}
{{ horizontal_field(form.ban) }} {{ horizontal_field(form.submit, div_class="offset-3 col-4") }}
{% endblock %}