Skip to content
Snippets Groups Projects
Unverified Commit a6a8d081 authored by Sandeep Chauhan's avatar Sandeep Chauhan Committed by GitHub
Browse files

Fix permission error on double click on submit determination (#3422)

Fixes #3342 

This PR contains changes only for determination. We will be implementing
the same approach for other forms as well.
parent a2a5c74d
No related branches found
No related tags found
2 merge requests!18Fix application form submit button remaining disabled (#3483),!13Merge in v4.1.1
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{% block determination_information %} {% block determination_information %}
{% endblock %} {% endblock %}
<form class="form form--with-p-tags" action="" method="post"> <form class="form form--with-p-tags" action="" method="post" x-data="{ isFormSubmitting: false }" x-on:submit="isFormSubmitting = true">
{{ form.media }} {{ form.media }}
{% csrf_token %} {% csrf_token %}
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
{% if form.draft_button_name %} {% if form.draft_button_name %}
<button class="button button--submit button--top-space button--white" type="submit" name="{{ form.draft_button_name }}" formnovalidate>{% trans "Save draft" %}</button> <button class="button button--submit button--top-space button--white" type="submit" name="{{ form.draft_button_name }}" formnovalidate>{% trans "Save draft" %}</button>
{% endif %} {% endif %}
<button class="button button--submit button--top-space button--primary" type="submit" name="submit">{% trans "Submit" %}</button> <button class="button button--submit button--top-space button--primary" :disabled="isFormSubmitting" type="submit" name="submit">{% trans "Submit" %}</button>
{% endblock %} {% endblock %}
</form> </form>
{% for type, message in message_templates.items %} {% for type, message in message_templates.items %}
......
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