Enable users to report without sending a mail
This commit is contained in:
parent
f9c33e2cad
commit
2ad0c8dbc7
5 changed files with 119 additions and 6 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
24
photologue/templates/photologue/photo_confirm_report.html
Normal file
24
photologue/templates/photologue/photo_confirm_report.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue