Save valid TO form fields when clicking previous in TO builder

This commit is contained in:
leigh-mil
2020-01-27 11:20:52 -05:00
parent 0ddb1f54c0
commit 99edf3df90
5 changed files with 105 additions and 12 deletions

View File

@@ -39,9 +39,20 @@
{% endblock %}
{% if step != "1" %}
<a class="usa-button usa-button-secondary" href="{{ previous_button_link }}">
Previous
</a>
{% if step == "2" or step == "3" -%}
<button
type="submit"
class="usa-button usa-button-secondary"
formaction="{{ previous_button_link }}">
Previous
</button>
{% else -%}
<a
class="usa-button usa-button-secondary"
href="{{ previous_button_link }}">
Previous
</a>
{%- endif %}
{% endif %}
<a