contentdb/app/templates/report/index.html
2024-03-04 18:05:16 +00:00

51 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title -%}
{{ _("Report") }}
{%- endblock %}
{% block content %}
<h1>{{ _("Report") }}</h1>
{% if not form %}
<p>
{{ _("Due to spam, we no longer accept reports from anonymous users on this form.") }}
{{ _("Please sign in or contact the admin using the link below.") }}
</p>
<p>
<a href="{{ url_for('users.login') }}" class="btn btn-primary me-2">Login</a>
<a href="{{ admin_contact_url }}" class="btn btn-secondary">Contact the admin</a>
</p>
{% else %}
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
<form method="POST" action="" enctype="multipart/form-data">
{{ form.hidden_tag() }}
{% if url %}
<p>
URL: <code>{{ url }}</code>
</p>
{% endif %}
{{ render_field(form.message, hint=_("What are you reporting? Why are you reporting it?")) }}
{{ render_submit_field(form.submit) }}
<p class="mt-5 text-muted">
{{ _("Reports will be shared with ContentDB staff.") }}
{% if is_anon %}
{{ _("Only the admin will be able to see who made the report.") }}
{% endif %}
</p>
<p class="alert alert-info">
{{ _("Found a bug? Please report on the package's issue tracker or in a thread instead.") }}
</p>
</form>
{% endif %}
{% endblock %}