From 5f3a5c87b6bdc2d46cf7eca8827e984f09c31571 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 30 Dec 2021 18:37:49 -0800 Subject: [PATCH] Update report modal --- bookwyrm/templates/snippets/report_button.html | 14 ++++++++++---- bookwyrm/templates/snippets/report_modal.html | 14 +++++++++----- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/bookwyrm/templates/snippets/report_button.html b/bookwyrm/templates/snippets/report_button.html index 2638a9ff..6b4a3f25 100644 --- a/bookwyrm/templates/snippets/report_button.html +++ b/bookwyrm/templates/snippets/report_button.html @@ -3,9 +3,15 @@ {% with 0|uuid as report_uuid %} -{% trans "Report" as button_text %} -{% include 'snippets/toggle/toggle_button.html' with class="is-danger is-light is-small is-fullwidth" text=button_text controls_text="report" controls_uid=report_uuid focus="modal_title_report" disabled=is_current %} - -{% include 'snippets/report_modal.html' with user=user reporter=request.user controls_text="report" controls_uid=report_uuid %} +{% join "report" report_uuid as modal_id %} + +{% include 'snippets/report_modal.html' with user=user reporter=request.user id=modal_id %} {% endwith %} diff --git a/bookwyrm/templates/snippets/report_modal.html b/bookwyrm/templates/snippets/report_modal.html index 0d6504ab..615f13cc 100644 --- a/bookwyrm/templates/snippets/report_modal.html +++ b/bookwyrm/templates/snippets/report_modal.html @@ -1,4 +1,4 @@ -{% extends 'components/modal.html' %} +{% extends 'components/new_modal.html' %} {% load i18n %} {% load humanize %} @@ -21,8 +21,12 @@

{% blocktrans with site_name=site.name %}This report will be sent to {{ site_name }}'s moderators for review.{% endblocktrans %}

- - +
+ + +
{% endblock %} @@ -31,9 +35,9 @@ {% block modal-footer %} -{% trans "Cancel" as button_text %} -{% include 'snippets/toggle/toggle_button.html' with text=button_text controls_text="report" controls_uid=report_uuid class="" %} + {% endblock %} + {% block modal-form-close %}{% endblock %}