moviewyrm/bookwyrm/templates/snippets/report_button.html

18 lines
426 B
HTML
Raw Normal View History

2021-03-09 02:36:34 +00:00
{% load i18n %}
2021-05-11 21:41:28 +00:00
{% load utilities %}
2021-03-12 01:38:21 +00:00
{% with 0|uuid as report_uuid %}
2021-12-31 02:37:49 +00:00
{% 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 %}
2021-03-12 01:38:21 +00:00
{% endwith %}