moviewyrm/bookwyrm/templates/snippets/report_button.html
2021-12-30 18:37:49 -08:00

17 lines
426 B
HTML

{% load i18n %}
{% load utilities %}
{% with 0|uuid as report_uuid %}
{% join "report" report_uuid as modal_id %}
<button
class="button is-small is-danger is-light is-fullwidth"
type="button"
data-modal-open="{{ modal_id }}"
{% if is_current %}disabled{% endif %}
>
{% trans "Report" %}
</button>
{% include 'snippets/report_modal.html' with user=user reporter=request.user id=modal_id %}
{% endwith %}