Hook up Save Draft button

This commit is contained in:
richard-dds 2018-10-16 10:27:49 -04:00
parent 8ec796861e
commit 421ab65511

View File

@ -42,13 +42,7 @@
{% endcall %} {% endcall %}
{% endif %} {% endif %}
{% block form_action %} <form autocomplete="off" enctype="multipart/form-data">
{% if extended %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=jedi_request.id, extended=True) }}" autocomplete="off" enctype="multipart/form-data">
{% else %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=jedi_request.id) }}" autocomplete="off">
{% endif %}
{% endblock %}
{{ f.csrf_token }} {{ f.csrf_token }}
{% block form %} {% block form %}
@ -180,7 +174,8 @@
{% endblock form %} {% endblock form %}
{% block next %} {% block next %}
<div class='action-group'> <div class='action-group'>
<input type='submit' class='usa-button usa-button-primary' value='Save & Continue' /> <input formmethod="post" formaction="{{ url_for('requests.financial_verification', request_id=jedi_request.id, extended=extended) }}" type='submit' class='usa-button usa-button-primary' value='Save & Continue' />
<input formmethod="post" formaction="{{ url_for('requests.save_financial_verification_draft', request_id=jedi_request.id, extended=extended) }}" type='submit' class='usa-button usa-button-primary' value='Save Draft' />
</div> </div>
{% endblock %} {% endblock %}
</form> </form>