moviewyrm/bookwyrm/templates/snippets/report_modal.html

59 lines
1.8 KiB
HTML
Raw Normal View History

{% extends 'components/modal.html' %}
2021-03-12 01:38:21 +00:00
{% load i18n %}
2022-01-10 22:55:10 +00:00
{% load utilities %}
2021-03-12 01:38:21 +00:00
{% load humanize %}
{% block modal-title %}
2022-01-10 22:55:10 +00:00
{% if status %}
{% blocktrans with username=user|username %}Report @{{ username }}'s status{% endblocktrans %}
{% elif link %}
{% blocktrans with domain=link.domain.domain %}Report {{ domain }} link{% endblocktrans %}
{% else %}
{% blocktrans with username=user|username %}Report @{{ username }}{% endblocktrans %}
{% endif %}
2021-03-12 01:38:21 +00:00
{% endblock %}
{% block modal-form-open %}
<form name="report" method="post" action="{% url 'report' %}">
{% endblock %}
{% block modal-body %}
{% csrf_token %}
2022-01-10 22:55:10 +00:00
<input type="hidden" name="reporter" value="{{ request.user.id }}">
2021-03-12 01:38:21 +00:00
<input type="hidden" name="user" value="{{ user.id }}">
{% if status_id %}
2022-01-10 22:55:10 +00:00
<input type="hidden" name="statuses" value="{{ status_id }}">
{% endif %}
{% if link %}
<input type="hidden" name="links" value="{{ link.id }}">
2021-04-17 17:28:03 +00:00
{% endif %}
2021-03-12 01:38:21 +00:00
<section class="content">
2022-01-10 22:55:10 +00:00
<p class="notification">
{% blocktrans with site_name=site.name %}This report will be sent to {{ site_name }}'s moderators for review.{% endblocktrans %}
{% if link %}
{% trans "Links from this domain will be removed until your report has been reviewed." %}
{% endif %}
</p>
2021-12-31 02:37:49 +00:00
<div class="control">
<label class="label" for="id_{{ controls_uid }}_report_note">
{% trans "More info about this report:" %}
</label>
<textarea class="textarea" name="note" id="id_{{ controls_uid }}_report_note"></textarea>
</div>
2021-03-12 01:38:21 +00:00
</section>
{% endblock %}
{% block modal-footer %}
<button class="button is-success" type="submit">{% trans "Submit" %}</button>
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
2021-03-12 01:38:21 +00:00
{% endblock %}
2021-12-31 02:37:49 +00:00
2021-03-12 01:38:21 +00:00
{% block modal-form-close %}</form>{% endblock %}