Merge pull request #135 from dod-ccpo/fix-request-form-markup

Fix form markup
This commit is contained in:
andrewdds
2018-08-07 13:04:35 -04:00
committed by GitHub

View File

@@ -6,6 +6,14 @@
{% include 'requests/menu.html' %}
{% block form_action %}
{% if request_id %}
<form method='POST' action="{{ url_for('requests.requests_form_update', screen=current, request_id=request_id) }}" autocomplete="off">
{% else %}
<form method='POST' action="{{ url_for('requests.requests_form_update', screen=current) }}" autocomplete="off">
{% endif %}
{% endblock %}
<div class="panel">
<div class="panel__heading">
@@ -14,13 +22,6 @@
</div>
<div class="panel__content">
{% block form_action %}
{% if request_id %}
<form method='POST' action="{{ url_for('requests.requests_form_update', screen=current, request_id=request_id) }}" autocomplete="off">
{% else %}
<form method='POST' action="{{ url_for('requests.requests_form_update', screen=current) }}" autocomplete="off">
{% endif %}
{% endblock %}
{{ f.csrf_token }}
{% block form %}
@@ -38,6 +39,7 @@
</div>
{% endblock %}
</form>
</div>