Added vars and fixed naming use

This commit is contained in:
Ionut Filip
2018-10-16 16:12:42 +03:00
parent 0d164486b4
commit e8dee22ecf
6 changed files with 105 additions and 22 deletions

View File

@@ -0,0 +1,58 @@
{% call macros.panel("info", "Step 0 - Initial configuration") %}
<p>Before starting some variables must be st</p>
<div class="form-group">
<label>Root path: </label>
<input class="form-control" type="text" name="root" placeholder="/mailu">
</div>
<div class="form-group">
<label>Main mail domain</label>
<input class="form-control" type="text" name="domain" placeholder="e.g. mailu.io">
</div>
<div class="form-group">
<label>Postmaster local part (will append the main mail domain)</label>
<input class="form-control" type="text" name="postmaster" placeholder="default: admin">
</div>
<div class="form-group">
<label>Choose how secure connections will behave </label>
<br/>
<select name="tls_flavor">
{% for tlsflavor in ["letsencrypt", "cert", "notls", "mail", "mail-letsencrypt"] %}
<option value="{{ tlsflavor }}" >{{ tlsflavor }}</option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label>Authentication rate limit (per source IP address)</label>
<input class="form-control" type="text" name="auth_ratelimit" placeholder="eg 10/minute;1000/hour">
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="disable_statistics" value="True">
Opt-out of statistics
</label>
</div>
<div class="form-group">
<label>Website name</label>
<input class="form-control" type="text" name="site_name" placeholder="Mailu">
</div>
<div class="form-group">
<label>Linked Website URL</label>
<input class="form-control" type="text" name="website" placeholder="https://mailu.io">
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="domain_registration" value="true">
Domain registration
</label>
</div>
{% endcall %}

View File

@@ -1,8 +0,0 @@
{% call macros.panel("info", "Step 0 - Set root path") %}
<p>Before starting root path must be set</p>
<div class="form-group">
<label>Root path: </label>
<input class="form-control" type="text" name="root" placeholder="/mailu">
</div>
{% endcall %}

View File

@@ -9,7 +9,7 @@ manage your email domains, users, etc.</p>
<div class="form-group">
<label>Enable the admin UI (and path to the admin UI)</label>
<div class="input-group">
<div class="input-group-addon"><input type="checkbox" name="admin_enabled" checked></div>
<div class="input-group-addon"><input type="checkbox" name="admin_enabled" value="true"></div>
<input class="form-control" type="text" name="admin_path" value="/admin">
</div>
</div>
@@ -21,7 +21,7 @@ accessing messages for beginner users.</p>
<div class="form-group">
<label>Enable Web email client (and path to the Web email client)</label>
<div class="input-group">
<div class="input-group-addon"><input type="checkbox" name="webmail_enabled" checked></div>
<div class="input-group-addon"><input type="checkbox" name="webmail_enabled" value="true"></div>
<input class="form-control" type="text" name="webmail_path" value="/webmail">
</div>
<p></p>
@@ -38,15 +38,22 @@ also disable the antivirus if required (it does use aroung 1GB of ram).</p>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="antispam_enabled" checked>
<input class="form-check-input" type="checkbox" name="antispam_enabled" value="rspamd">
Enable the filtering service
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="antivirus_enabled" checked>
<input class="form-check-input" type="checkbox" name="antivirus_enabled" value="clamav">
Enable the antivirus service
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="webdav_enabled" value="radicale">
Enable the webdav service
</label>
</div>
{% endcall %}

View File

@@ -9,11 +9,11 @@
{% endcall %}
<form method="post" action="{{ url_for(".submit") }}">
{% include "steps/root.html" %}
{% include "steps/initial-config.html" %}
{% include "steps/flavor.html" %}
{% include "steps/expose.html" %}
{% include "steps/services.html" %}
{% include "steps/optional.html" %}
<!-- {% include "steps/optional.html" %} -->
<input class="btn btn-primary" type="submit" value="Setup Mailu">
</form>