diff --git a/hypha/apply/determinations/templates/determinations/base_determination_form.html b/hypha/apply/determinations/templates/determinations/base_determination_form.html index 4d17d56caba46fc45b6ce251db87e406c0dbbd7f..28eb214c60ba959b5ee178531988c68ed315e915 100644 --- a/hypha/apply/determinations/templates/determinations/base_determination_form.html +++ b/hypha/apply/determinations/templates/determinations/base_determination_form.html @@ -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 %}