moviewyrm/bookwyrm/templates/snippets/report_button.html
2022-02-24 13:00:41 -08:00

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