preventing users from double click on submit

This commit is contained in:
Beverly Nguyen
2025-03-13 15:04:12 -07:00
parent ff65471084
commit 821265cf6e
7 changed files with 32 additions and 14 deletions

View File

@@ -77,13 +77,16 @@
help='3' if help else 0
)}}" class='page-footer'>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<!-- <p>Placeholder: This message will be delivered to <b>400 phone numbers</b> and will use a total of <b>800 message parts</b>, leaving Washington DSHS with <b>249,200 message parts remaining</b>.</p> -->
<h3>Does everything look good?</h3>
{% if not error %}
{% set button_text %}
{{ "Schedule" if scheduled_for else 'Send'}}
{% endset %}
{{ usaButton({ "text": button_text }) }}
{{ usaButton({
"text": button_text,
"type": submit,
"preventDoubleClick": True,
}) }}
{% endif %}
</form>
</div>