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
Tags v3.0.0
2 merge requests!18Fix application form submit button remaining disabled (#3483),!13Merge in v4.1.1
......@@ -19,7 +19,7 @@
{% block determination_information %}
{% 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 }}
{% csrf_token %}
......@@ -47,7 +47,7 @@
{% 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>
{% 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 %}
</form>
{% 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