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
commit e59b1f09c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,14 @@
{% include 'requests/menu.html' %} {% 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">
<div class="panel__heading"> <div class="panel__heading">
@ -14,13 +22,6 @@
</div> </div>
<div class="panel__content"> <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 }} {{ f.csrf_token }}
{% block form %} {% block form %}
@ -38,7 +39,8 @@
</div> </div>
{% endblock %} {% endblock %}
</form>
</form>
</div> </div>