Load steps after setting flavor

This commit is contained in:
Tim Möhlmann
2018-10-18 12:56:16 +03:00
parent 5679d355aa
commit adfadab4cf
4 changed files with 22 additions and 12 deletions

View File

@@ -8,13 +8,18 @@
ready when using this wizard.
{% endcall %}
<form method="post" action="{{ url_for(".submit_flavor") }}">
{% include "steps/flavor.html" %}
<input class="btn btn-primary" type="submit" value="Next >" style="margin-bottom: 15px">
</form>
{% if flavor %}
<form method="post" action="{{ url_for(".submit") }}">
{% include "steps/compose/flavor.html" %}
{% include "steps/compose/config.html" %}
{% include "steps/compose/services.html" %}
{% include "steps/compose/expose.html" %}
<!-- {% include "steps/compose/optional.html" %} -->
<input type="hidden" name="flavor" value="{{ flavor }}">
{% include "steps/" + flavor + "/config.html" %}
{% include "steps/" + flavor + "/services.html" %}
{% include "steps/" + flavor + "/expose.html" %}
<input class="btn btn-primary" type="submit" value="Setup Mailu">
{% endif %}
<!-- {% include "steps/compose/optional.html" %} -->
</form>
{% endblock %}