2019-07-06 23:25:52 +02:00
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
|
|
|
{% set active_page = "dashboard" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Custom Alias
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block default_content %}
|
|
|
|
|
2019-12-22 13:57:19 +01:00
|
|
|
<div class="bg-white p-6" style="max-width: 60em; margin: auto">
|
2020-01-22 00:03:25 +01:00
|
|
|
<h1 class="h3 mb-5">New Email Alias</h1>
|
|
|
|
|
2020-01-22 09:17:44 +01:00
|
|
|
{% if user_custom_domains|length == 0 and not DISABLE_ALIAS_SUFFIX %}
|
2020-01-22 00:03:25 +01:00
|
|
|
<div class="alert alert-primary" role="alert">
|
2020-01-22 09:17:44 +01:00
|
|
|
You might notice a random word after the dot(<em>.</em>) in the alias.
|
|
|
|
This part is to avoid a person taking all the "nice" aliases like <b>hello@{{ EMAIL_DOMAIN }}</b>,
|
|
|
|
<b>me@{{ EMAIL_DOMAIN }}</b>, etc 😉. <br>
|
|
|
|
If you add your own domain, this restriction is removed and you can fully customize the alias. <br>
|
2020-01-22 00:03:25 +01:00
|
|
|
</div>
|
2019-07-06 23:25:52 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2019-12-02 01:34:54 +01:00
|
|
|
<form method="post">
|
2020-01-22 00:03:25 +01:00
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-sm-6 pr-1 mb-1" style="min-width: 5em">
|
2020-01-22 14:05:42 +01:00
|
|
|
<input name="prefix" class="form-control"
|
|
|
|
type="text"
|
2020-01-22 00:03:25 +01:00
|
|
|
pattern="[0-9a-z-_]{1,}"
|
|
|
|
title="Only lowercase letter, number, dash (-), underscore (_) can be used in alias prefix."
|
|
|
|
placeholder="email alias"
|
|
|
|
autofocus required>
|
2019-12-08 16:44:21 +01:00
|
|
|
</div>
|
2019-12-06 10:28:00 +01:00
|
|
|
|
2019-12-23 16:09:20 +01:00
|
|
|
|
2020-01-22 22:51:52 +01:00
|
|
|
<div class="col-sm-6"
|
2020-01-22 00:03:25 +01:00
|
|
|
style="padding-left: 5px">
|
2020-01-22 22:51:52 +01:00
|
|
|
<select class="form-control" name="suffix">
|
|
|
|
{% for suffix in suffixes %}
|
|
|
|
<option value="{{ suffix[1] }}">
|
|
|
|
{% if suffix[0] %}
|
|
|
|
{{ suffix[1] }} (your domain)
|
|
|
|
{% else %}
|
|
|
|
{{ suffix[1] }}
|
|
|
|
{% endif %}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2019-12-11 00:26:28 +01:00
|
|
|
</div>
|
2019-07-06 23:25:52 +02:00
|
|
|
</div>
|
2019-12-22 13:57:19 +01:00
|
|
|
|
2020-01-22 00:03:25 +01:00
|
|
|
<div class="row col">
|
|
|
|
<button class="btn btn-primary mt-1">Create</button>
|
2019-12-22 16:41:37 +01:00
|
|
|
</div>
|
2020-01-22 00:03:25 +01:00
|
|
|
</form>
|
2019-07-06 23:25:52 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|