rearrange admin template forms so that forms are not nested

This commit is contained in:
dandds
2019-03-26 16:19:30 -04:00
parent c7ac967870
commit d158f1ea7e
3 changed files with 60 additions and 54 deletions

View File

@@ -33,19 +33,19 @@
{{ button_text }}
{{ Icon('plus-circle-solid') }}
</a>
<form action="{{ form_action }}" method="POST">
{{ form.csrf_token }}
{% call Modal(name=name, dismissable=dismissable, classes="wide") %}
<div v-if="activeModal === '{{ name }}'">
{% for step in steps %}
<div class="modal__form" v-show="step === {{ loop.index0 }}">
{{ FormSteps(step_count, loop.index) }}
{{ step }}
</div>
{% endfor %}
</div>
<form id="{{ name }}" action="{{ form_action }}" method="POST">
{{ form.csrf_token }}
<div v-if="activeModal === '{{ name }}'">
{% for step in steps %}
<div class="modal__form" v-show="step === {{ loop.index0 }}">
{{ FormSteps(step_count, loop.index) }}
{{ step }}
</div>
{% endfor %}
</div>
</form>
{% endcall %}
</form>
</div>
</multi-step-modal-form>
{% endmacro %}