2022-06-29 11:28:26 +02:00
|
|
|
{% extends "default.html" %}
|
2019-12-02 01:13:39 +01:00
|
|
|
|
2022-06-29 11:28:26 +02:00
|
|
|
{% set active_page = "custom_domain" %}
|
|
|
|
{% block title %}Custom Domains{% endblock %}
|
|
|
|
{% block head %}{% endblock %}
|
2019-12-02 01:13:39 +01:00
|
|
|
{% block default_content %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2019-12-02 01:13:39 +01:00
|
|
|
<div class="row">
|
2020-04-05 19:59:48 +02:00
|
|
|
<div class="col">
|
2022-06-29 11:28:26 +02:00
|
|
|
<h1 class="h3">
|
|
|
|
Custom Domains
|
|
|
|
<a class="ml-3 text-info"
|
|
|
|
style="font-size: 12px"
|
|
|
|
data-toggle="collapse"
|
|
|
|
href="#howtouse"
|
|
|
|
role="button"
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-controls="collapseExample">
|
2021-04-06 18:10:32 +02:00
|
|
|
How to use <i class="fe fe-chevrons-down"></i>
|
|
|
|
</a>
|
2020-05-03 10:47:29 +02:00
|
|
|
</h1>
|
2020-01-16 22:21:19 +01:00
|
|
|
{% if not current_user.is_premium() %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2020-01-16 22:21:19 +01:00
|
|
|
<div class="alert alert-danger" role="alert">
|
2020-08-01 12:31:02 +02:00
|
|
|
This feature is only available on Premium plan.
|
2023-02-27 13:15:25 +01:00
|
|
|
<a href="{{ URL }}/dashboard/pricing"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer">
|
2020-08-01 12:31:02 +02:00
|
|
|
Upgrade<i class="fe fe-external-link"></i>
|
|
|
|
</a>
|
2020-01-16 22:21:19 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-06-29 11:28:26 +02:00
|
|
|
<div class="alert alert-primary collapse {% if not custom_domains %} show{% endif %}"
|
|
|
|
id="howtouse"
|
|
|
|
role="alert">
|
|
|
|
By adding your domain, you can create aliases like <b>hi@my-domain.com</b>
|
|
|
|
<br />
|
2021-04-06 18:10:32 +02:00
|
|
|
You can also enable <b>catch-all</b> to create aliases on-the-fly:
|
|
|
|
simply use <b>anything@my-domain.com</b> and it'll be created when
|
|
|
|
it receives an email.
|
|
|
|
</div>
|
2020-05-03 10:48:21 +02:00
|
|
|
<div class="row">
|
|
|
|
{% for custom_domain in custom_domains %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
2020-05-03 10:48:21 +02:00
|
|
|
<div class="col-12 col-lg-6">
|
|
|
|
<div class="card" style="">
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">
|
|
|
|
<a href="{{ url_for('dashboard.domain_detail', custom_domain_id=custom_domain.id) }}">{{ custom_domain.domain }}</a>
|
2021-08-17 19:05:12 +02:00
|
|
|
{% if custom_domain.ownership_verified and not custom_domain.verified %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
|
|
|
<a href="{{ url_for('dashboard.domain_detail_dns', custom_domain_id=custom_domain.id, _anchor='dns-setup') }}"
|
|
|
|
class="btn btn-info btn-sm">
|
2021-08-17 19:05:12 +02:00
|
|
|
Ownership verified. Setup the DNS
|
|
|
|
</a>
|
|
|
|
{% elif custom_domain.ownership_verified and custom_domain.verified %}
|
|
|
|
<span class="badge badge-success">Domain ready</span>
|
|
|
|
<!-- custom_domain.ownership_verified is False -->
|
2020-05-03 10:48:21 +02:00
|
|
|
{% else %}
|
2022-06-29 11:28:26 +02:00
|
|
|
<a href="{{ url_for('dashboard.domain_detail_dns', custom_domain_id=custom_domain.id, _anchor='ownership-form') }}"
|
|
|
|
class="btn btn-warning btn-sm"
|
|
|
|
role="button">
|
2021-08-17 19:05:12 +02:00
|
|
|
Verify domain ownership
|
|
|
|
</a>
|
2020-05-03 10:48:21 +02:00
|
|
|
{% endif %}
|
|
|
|
</h5>
|
2020-08-01 12:31:02 +02:00
|
|
|
<h6 class="card-subtitle mb-4 text-muted">
|
2022-06-29 11:28:26 +02:00
|
|
|
Created {{ custom_domain.created_at | dt }}
|
|
|
|
<br />
|
2020-05-03 10:48:21 +02:00
|
|
|
<span class="font-weight-bold">{{ custom_domain.nb_alias() }}</span> aliases.
|
2022-06-29 11:28:26 +02:00
|
|
|
<br />
|
2020-05-03 10:48:21 +02:00
|
|
|
</h6>
|
2022-06-29 11:28:26 +02:00
|
|
|
<a href="{{ url_for('dashboard.domain_detail', custom_domain_id=custom_domain.id) }}"
|
|
|
|
class="mt-3">Details ➡</a>
|
2020-05-03 10:48:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-02 01:13:39 +01:00
|
|
|
</div>
|
2020-05-03 10:48:21 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-08-01 12:31:02 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<form method="post" class="mt-2">
|
|
|
|
{{ new_custom_domain_form.csrf_token }}
|
|
|
|
<input type="hidden" name="form-name" value="create">
|
|
|
|
<h2 class="h4">New Domain</h2>
|
|
|
|
{{ new_custom_domain_form.domain(class="form-control", placeholder="my-domain.com", maxlength=128) }}
|
|
|
|
{{ render_field_errors(new_custom_domain_form.domain) }}
|
|
|
|
<div class="small-text">
|
2021-09-17 11:54:37 +02:00
|
|
|
Please use full path domain, for example <b>my-domain.com</b>
|
|
|
|
or <b>my-subdomain.my-domain.com</b> if you are using a subdomain.
|
2020-08-01 12:31:02 +02:00
|
|
|
</div>
|
2021-05-25 17:59:28 +02:00
|
|
|
<button class="btn btn-primary mt-2">Create</button>
|
2020-08-01 12:31:02 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-02 01:13:39 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2022-06-29 11:28:26 +02:00
|
|
|
{% block script %}<script>$('.mailbox-select').multipleSelect();</script>{% endblock %}
|