2019-07-06 23:25:52 +02:00
|
|
|
{% extends 'default.html' %}
|
|
|
|
|
|
|
|
{% set active_page = "dashboard" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Custom Alias
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block default_content %}
|
|
|
|
|
2020-04-28 20:25:40 +02:00
|
|
|
<div class="bg-white p-6 mt-5" style="max-width: 55em; 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-02-18 05:59:03 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col p-1">
|
|
|
|
<div class="alert alert-primary" role="alert">
|
|
|
|
You might notice a random word after the dot(<em>.</em>) in the alias.
|
2020-04-15 22:52:30 +02:00
|
|
|
This part is to avoid a person taking all the "nice" aliases like <b>hello@{{ FIRST_ALIAS_DOMAIN }}</b>,
|
|
|
|
<b>me@{{ FIRST_ALIAS_DOMAIN }}</b>, etc. <br>
|
2020-02-18 05:59:03 +01:00
|
|
|
If you add your own domain, this restriction is removed and you can fully customize the alias. <br>
|
|
|
|
</div>
|
|
|
|
</div>
|
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">
|
2020-02-18 05:54:35 +01:00
|
|
|
<div class="col-sm-6 mb-1 p-1" style="min-width: 4em">
|
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."
|
2020-02-18 05:54:35 +01:00
|
|
|
placeholder="email alias, for example newsletter-123_xyz"
|
2020-01-22 00:03:25 +01:00
|
|
|
autofocus required>
|
2020-02-18 05:54:35 +01:00
|
|
|
<div class="small-text">
|
|
|
|
Only lowercase letter, number, dash (-), underscore (_) can be used.
|
|
|
|
</div>
|
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-02-18 05:54:35 +01:00
|
|
|
<div class="col-sm-6 p-1">
|
2020-04-28 20:23:24 +02:00
|
|
|
<select class="form-control" name="suffix">
|
2020-01-22 22:51:52 +01:00
|
|
|
{% for suffix in suffixes %}
|
2020-05-02 12:15:03 +02:00
|
|
|
<option value="{{ suffix[2] }}">
|
2020-01-22 22:51:52 +01:00
|
|
|
{% 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-02-28 18:03:35 +01:00
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col p-1">
|
2020-04-28 20:23:24 +02:00
|
|
|
<select class="form-control" name="mailbox">
|
2020-02-28 18:03:35 +01:00
|
|
|
{% for mailbox in mailboxes %}
|
|
|
|
<option value="{{ mailbox }}">
|
|
|
|
{{ mailbox }}
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<div class="small-text">
|
|
|
|
The mailbox that owns this alias.
|
2020-02-10 17:19:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-28 18:03:35 +01:00
|
|
|
</div>
|
2020-02-10 17:19:42 +01:00
|
|
|
|
2020-02-05 11:36:06 +01:00
|
|
|
<div class="row mb-2">
|
2020-02-18 05:54:35 +01:00
|
|
|
<div class="col p-1">
|
2020-02-05 11:36:06 +01:00
|
|
|
<textarea name="note"
|
|
|
|
class="form-control"
|
|
|
|
rows="3"
|
|
|
|
placeholder="Note, can be anything to help you remember WHY you create this alias. This field is optional."></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
2020-02-18 05:54:35 +01:00
|
|
|
<div class="col p-1">
|
2020-02-05 11:36:06 +01:00
|
|
|
<button class="btn btn-primary mt-1">Create</button>
|
|
|
|
</div>
|
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 %}
|
|
|
|
|