Skip to content

Commit

Permalink
Merge pull request #613 from DySprozin/patch-1
Browse files Browse the repository at this point in the history
Added confirm to topic delete
  • Loading branch information
sh4nks committed Jun 8, 2022
2 parents d2482b5 + 3133ce8 commit 83ef79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flaskbb/templates/forum/topic_controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<li>
<form class="d-inline" method="post" action="{{ url_for('forum.delete_topic', topic_id=topic.id, slug=topic.slug) }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<button class="btn btn-link">
<span class="fas fa-trash fa-fw"></span> {% trans %}Delete Topic{% endtrans %}
<button class="btn btn-link far text-red" type="button" data-bs-toggle="modal" data-bs-target="#confirmModal" data-tooltip="tooltip" title="{% trans %}Delete this topic{% endtrans %}">
<span class="fas fa-trash fa-fw"></span> {% trans %}Delete Topic{% endtrans %}
</button>
</form>
</li>
Expand Down

0 comments on commit 83ef79d

Please sign in to comment.