2019-12-30 17:52:08 +01:00
|
|
|
{% extends 'dashboard/domain_detail/base.html' %}
|
|
|
|
|
|
|
|
{% set domain_detail_page = "info" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ custom_domain.domain }} Info
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block domain_detail_content %}
|
|
|
|
<h1 class="h3"> {{ custom_domain.domain }}
|
|
|
|
{% if custom_domain.verified %}
|
|
|
|
<span class="cursor" data-toggle="tooltip" data-original-title="DNS Setup OK">✅</span>
|
|
|
|
{% else %}
|
2020-01-07 21:53:00 +01:00
|
|
|
<span class="cursor" data-toggle="tooltip" data-original-title="DNS Setup Needed">
|
|
|
|
<a href="{{ url_for('dashboard.domain_detail_dns', custom_domain_id=custom_domain.id) }}"
|
|
|
|
class="text-decoration-none">🚫
|
|
|
|
</a>
|
|
|
|
</span>
|
2019-12-30 17:52:08 +01:00
|
|
|
{% endif %}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="small-text">Created {{ custom_domain.created_at | dt }}</div>
|
|
|
|
|
|
|
|
{{ nb_alias }} aliases
|
|
|
|
|
2019-12-30 18:20:49 +01:00
|
|
|
<hr>
|
|
|
|
<div>Catch All</div>
|
|
|
|
<div class="small-text">
|
|
|
|
This feature allows you to create aliases <b>on the fly</b>.
|
|
|
|
Simply use <em>anything@{{ custom_domain.domain }}</em>
|
|
|
|
next time you need an email address. <br>
|
2020-08-01 12:41:48 +02:00
|
|
|
The alias will be created the first time it receives an email
|
|
|
|
and automatically belong to <b>{{ custom_domain.domain }}</b> mailboxes (
|
|
|
|
{% for mailbox in custom_domain.mailboxes %}
|
|
|
|
<b>{{ mailbox.email }}</b>
|
|
|
|
{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %})
|
2019-12-30 18:20:49 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="form-name" value="switch-catch-all">
|
|
|
|
<label class="custom-switch cursor mt-2 pl-0"
|
|
|
|
data-toggle="tooltip"
|
|
|
|
{% if custom_domain.catch_all %}
|
|
|
|
title="Disable catch-all"
|
|
|
|
{% else %}
|
|
|
|
title="Enable catch-all"
|
|
|
|
{% endif %}
|
|
|
|
>
|
|
|
|
<input type="checkbox" class="custom-switch-input"
|
|
|
|
{{ "checked" if custom_domain.catch_all else "" }}>
|
|
|
|
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2020-05-03 16:05:34 +02:00
|
|
|
<hr>
|
2020-10-09 22:54:13 +02:00
|
|
|
<div>Default Alias Name</div>
|
2020-05-03 16:05:34 +02:00
|
|
|
<div class="small-text">
|
|
|
|
This name will be used as the default alias name when you send
|
|
|
|
or reply from an alias, unless overwritten by the alias specific name.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="form-name" value="set-name">
|
|
|
|
<div class="form-group">
|
|
|
|
<input class="form-control"
|
|
|
|
value="{{ custom_domain.name or "" }}"
|
|
|
|
name="alias-name"
|
|
|
|
placeholder="Alias name">
|
|
|
|
</div>
|
2020-08-01 12:41:48 +02:00
|
|
|
<button class="btn btn-primary">Save</button>
|
2020-05-03 16:05:34 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2020-10-09 22:54:13 +02:00
|
|
|
<hr>
|
|
|
|
<div>Random Prefix Generation</div>
|
|
|
|
<div class="small-text">
|
|
|
|
A random prefix can be generated for this domain for usage in the New Alias
|
|
|
|
feature.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="form-name" value="switch-random-prefix-generation">
|
|
|
|
<label class="custom-switch cursor mt-2 pl-0"
|
|
|
|
data-toggle="tooltip"
|
|
|
|
{% if custom_domain.random_prefix_generation %}
|
|
|
|
title="Disable random prefix generation"
|
|
|
|
{% else %}
|
|
|
|
title="Enable random prefix generation"
|
|
|
|
{% endif %}
|
|
|
|
>
|
|
|
|
<input type="checkbox" class="custom-switch-input"
|
|
|
|
{{ "checked" if custom_domain.random_prefix_generation else "" }}>
|
|
|
|
|
|
|
|
<span class="custom-switch-indicator"></span>
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2019-12-30 18:51:55 +01:00
|
|
|
<hr>
|
|
|
|
<h3 class="mb-0">Delete Domain</h3>
|
|
|
|
<div class="small-text mb-3">Please note that this operation is irreversible.
|
2020-04-30 22:37:39 +02:00
|
|
|
All aliases associated with this domain will be also deleted.
|
2019-12-30 18:51:55 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
<input type="hidden" name="form-name" value="delete">
|
|
|
|
<span class="delete-custom-domain btn btn-outline-danger">Delete domain</span>
|
|
|
|
</form>
|
|
|
|
|
2019-12-30 17:52:08 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2019-12-30 18:20:49 +01:00
|
|
|
{% block script %}
|
|
|
|
<script>
|
|
|
|
$(".custom-switch-input").change(function (e) {
|
|
|
|
$(this).closest("form").submit();
|
2019-12-30 18:51:55 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
$(".delete-custom-domain").on("click", function (e) {
|
2020-04-30 22:37:39 +02:00
|
|
|
let that = $(this);
|
|
|
|
|
|
|
|
bootbox.confirm({
|
2020-11-12 17:41:47 +01:00
|
|
|
message: "All aliases associated with <b>{{ custom_domain.domain }}</b> will be also deleted. <br>" +
|
|
|
|
"This operation is not reversible, please confirm.",
|
2020-04-30 22:37:39 +02:00
|
|
|
buttons: {
|
|
|
|
confirm: {
|
|
|
|
label: 'Yes, delete it',
|
|
|
|
className: 'btn-danger'
|
|
|
|
},
|
|
|
|
cancel: {
|
|
|
|
label: 'Cancel',
|
|
|
|
className: 'btn-outline-primary'
|
|
|
|
}
|
2019-12-30 18:51:55 +01:00
|
|
|
},
|
2020-04-30 22:37:39 +02:00
|
|
|
callback: function (result) {
|
|
|
|
if (result) {
|
|
|
|
that.closest("form").submit();
|
|
|
|
}
|
2019-12-30 18:51:55 +01:00
|
|
|
}
|
2020-04-30 22:37:39 +02:00
|
|
|
})
|
2019-12-30 18:51:55 +01:00
|
|
|
});
|
2019-12-30 18:20:49 +01:00
|
|
|
</script>
|
2020-10-09 22:54:13 +02:00
|
|
|
{% endblock %}
|