app-MAIL-temp/app/dashboard/templates/dashboard/custom_alias.html

92 lines
2.8 KiB
HTML
Raw Normal View History

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">
<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.
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>
</div>
2019-07-06 23:25:52 +02:00
{% endif %}
2019-12-02 01:34:54 +01:00
<form method="post">
<div class="row mb-2">
<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"
pattern="[0-9a-z-_]{1,}"
title="Only lowercase letter, number, dash (-), underscore (_) can be used in alias prefix."
placeholder="email alias, for example newsletter-123_xyz"
autofocus required>
<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
<div class="col-sm-6 p-1">
<select class="form-control" name="suffix">
{% for suffix in suffixes %}
<option value="{{ suffix[2] }}">
{% 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
<div class="row mb-2">
<div class="col p-1">
<select class="form-control" name="mailbox">
{% for mailbox in mailboxes %}
<option value="{{ mailbox }}">
{{ mailbox }}
</option>
{% endfor %}
</select>
<div class="small-text">
The mailbox that owns this alias.
</div>
</div>
</div>
<div class="row mb-2">
<div class="col p-1">
<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">
<div class="col p-1">
<button class="btn btn-primary mt-1">Create</button>
</div>
2019-12-22 16:41:37 +01:00
</div>
</form>
2019-07-06 23:25:52 +02:00
</div>
{% endblock %}