Skip to content

Commit

Permalink
Add extra disable-on-submit to forms
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Nov 3, 2023
1 parent 853c72b commit 580fbaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates_bw/accounts/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>Delete account</h1>
fully aware of what happens with your data. If you are entirely sure you want to delete your account, please choose one of the following options
and confirm your password:
</p>
<form method="post" class="bw-form w-100">{% csrf_token %}
<form method="post" class="bw-form w-100 disable-on-submit">{% csrf_token %}
<div class="bw-multiple-radio">
{{delete_form}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates_bw/moderation/ticket.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h3 class="text-grey">Messages ({{ticket.messages.all.count}})</h3>
{% endif %}
{% endfor %}
{% if request.user.is_authenticated %}
<form method="post" action="." class="bw-form v-spacing-top-4">
<form method="post" action="." class="bw-form v-spacing-top-4 disable-on-submit">
{% csrf_token %}
{{tc_form}}
<button class="btn-inverse v-spacing-top-4">Add message to ticket</button>
Expand Down

0 comments on commit 580fbaa

Please sign in to comment.