moviewyrm/bookwyrm/templates/snippets/report_button.html
2022-01-10 14:55:10 -08:00

17 lines
421 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 id=modal_id status=status.id %}
{% endwith %}