Factor some generic bits in the base template

master
kaiyou 7 years ago
parent dd8b0dba54
commit f70acfe893

@ -2,3 +2,21 @@
{% import "macros.html" as macros %}
{% block title %}Mailu configuration{% endblock %}
{% block content %}
<div class="container">
<h1>Mailu configuration</h1>
<p>
Version
<select onchange="window.location.href=this.value;">
{% for available in versions %}
<option value="{{ url_for('{}.wizard'.format(available)) }}" {% if available == version %}selected{% endif %}>{{ available }}</option>
{% endfor %}
</select>
</p>
{% block page %}{% endblock %}
</div>
<p></p>
{% endblock %}

@ -1,9 +1,6 @@
{% extends "base.html" %}
{% block content %}
<div class="container">
<h1>Mailu configuration - {{ branch }}</h1>
{% block page %}
{% call macros.panel("warning", "Before starting, read the docs!") %}
Mailu is not perfectly documented, but still has a lot of documentation
available at <a href="https://mailu.io">mailu.io</a>. Make sure you read
@ -14,9 +11,9 @@
<form method="post" action="{{ url_for(".submit") }}">
{% include "steps/flavor.html" %}
{% include "steps/expose.html" %}
{% include "steps/services.html" %}
{% include "steps/optional.html" %}
<input class="btn btn-primary" type="submit" value="Setup Mailu">
</form>
</div>
{% endblock %}

Loading…
Cancel
Save