Enable users to report without sending a mail

This commit is contained in:
Alexandre Iooss 2022-03-02 21:22:44 +01:00
parent f9c33e2cad
commit 2ad0c8dbc7
5 changed files with 119 additions and 6 deletions

View file

@ -23,6 +23,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
plugins: [lgAdmin, lgHash, lgThumbnail, lgZoom],
customSlideName: true,
isStaff: {{ request.user.is_staff|yesno:"true,false" }},
csrfToken: "{{ csrf_token }}",
});
</script>
{% endblock %}

View file

@ -0,0 +1,24 @@
{% extends "base.html" %}
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% block title %}{% trans "Report confirmation" %}{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12">
<h1>{% trans "Report confirmation" %}</h1>
<form method="post">{% csrf_token %}
<p>
{% blocktranslate trimmed %}
Are you sure you want to report <code>{{ object }}</code>?
This photo will no longer be public, and administrators will be notified.
{% endblocktranslate %}
</p>
<input type="submit" class="btn btn-warning" value="{% trans "Confirm" %}">
</form>
</div>
</div>
{% endblock %}