1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-20 03:29:50 +02:00

Factor some generic bits in the base template

This commit is contained in:
kaiyou 2018-04-22 16:09:07 +02:00
parent dd8b0dba54
commit f70acfe893
2 changed files with 21 additions and 6 deletions
config/templates

@ -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 %}