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

77 lines
2.3 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 %}
<div class="col-md-6 offset-md-3">
2019-12-02 01:34:54 +01:00
<h1 class="h3 mb-5">Custom Alias</h1>
2019-07-06 23:25:52 +02:00
{% if error %}
<div class="text-danger text-center mb-4">{{ error }}</div>
{% endif %}
2019-12-02 01:34:54 +01:00
<form method="post">
<input type="hidden" name="form-name" value="non-custom-domain-name">
2019-07-06 23:25:52 +02:00
<div class="form-group">
2019-12-06 10:28:00 +01:00
<label class="form-label font-weight-bold">With SimpleLogin domain</label>
2019-07-06 23:25:52 +02:00
<small class="text-muted">
2019-12-06 10:28:00 +01:00
You can use letter, number or dash. Alias prefix cannot be empty.
2019-07-06 23:25:52 +02:00
</small>
2019-12-02 01:34:54 +01:00
2019-07-06 23:25:52 +02:00
<div class="row mt-4">
<div class="col">
2019-12-06 10:28:00 +01:00
<input name="email-prefix" class="form-control" pattern="[0-9|A-Z|a-z|-]{1,}"
title="Only letter, number or dash can be used."
placeholder="alias prefix"
autofocus required>
2019-07-06 23:25:52 +02:00
</div>
<div class="col align-self-center">
2019-07-22 21:12:22 +02:00
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
<h4>
.{{ email_suffix }}@{{ EMAIL_DOMAIN }}
</h4>
2019-07-06 23:25:52 +02:00
</div>
2019-12-06 10:28:00 +01:00
<div class="col">
<button class="btn btn-primary btn-sm">Create</button>
</div>
2019-07-06 23:25:52 +02:00
</div>
</div>
</form>
2019-12-02 01:34:54 +01:00
{% if custom_domains %}
<hr>
<p class="font-weight-bold">OR with your custom domains</p>
{% for custom_domain in custom_domains %}
<form method="post" class="mb-6">
<input type="hidden" name="form-name" value="custom-domain-name">
<input type="hidden" name="custom-domain-id" value="{{ custom_domain.id }}">
<div class="row mt-4">
<div class="col">
<input name="email" class="form-control">
</div>
<div class="col align-self-center">
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
<h4>
@{{ custom_domain.domain }}
</h4>
</div>
<div class="col">
<button class="submit btn btn-sm btn-success">Create</button>
</div>
</div>
</form>
{% endfor %}
{% endif %}
2019-07-06 23:25:52 +02:00
</div>
{% endblock %}