SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 247905e2 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add confirmation button to anonymize report action

parent 22e0531e
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,11 @@
{% endif %}
{% else %}
{% if user|is_in_group:'Editorial Administrators' and not user|is_possible_author_of_submission:submission %}
<button class="btn btn-sm btn-danger text-white my-2" hx-get="{% url "submissions:_hx_anonymize_report" report_id=report.id %}" hx-target="#report_{{report.report_nr}}" hx-swap="outerHTML">
<button class="btn btn-sm btn-danger text-white my-2"
hx-get="{% url "submissions:_hx_anonymize_report" report_id=report.id %}"
hx-target="#report_{{report.report_nr}}"
hx-swap="outerHTML"
hx-confirm="Are you sure you want to anonymize this report?">
Anonymize this report
</button>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment