Fix form markup

This commit is contained in:
Andrew Croce 2018-08-07 12:06:50 -04:00
parent 667a2cb5b2
commit 09ce3510aa

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>