better UI for new alias page
This commit is contained in:
parent
6b3fe06efc
commit
441fc773ba
|
@ -17,22 +17,22 @@
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="hidden" name="form-name" value="non-custom-domain-name">
|
<input type="hidden" name="form-name" value="non-custom-domain-name">
|
||||||
|
|
||||||
<div class="container">
|
<div class="container p-0">
|
||||||
{% if custom_domains %}
|
{% if custom_domains %}
|
||||||
<div class="row">
|
<div class="row col">
|
||||||
<label class="form-label font-weight-bold">With SimpleLogin domain</label>
|
<label class="form-label font-weight-bold">With SimpleLogin domain</label>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6 pr-1 pl-0 mb-1" style="min-width: 5em">
|
<div class="col-sm-6 pr-1 mb-1" style="min-width: 5em">
|
||||||
<input name="email-prefix" class="form-control"
|
<input name="email-prefix" class="form-control"
|
||||||
pattern="[0-9|A-Z|a-z|-|_]{1,}"
|
pattern="[0-9|A-Z|a-z|-|_]{1,}"
|
||||||
title="Only letter, number, dash (-), underscore (_) can be used in alias prefix."
|
title="Only letter, number, dash (-), underscore (_) can be used in alias prefix."
|
||||||
placeholder="email alias"
|
placeholder="email alias"
|
||||||
autofocus required>
|
autofocus required>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 align-self-center p-0" style="height:1.5rem">
|
<div class="col-sm-6 align-self-center" style="height:1.5rem">
|
||||||
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
||||||
<h4>
|
<h4>
|
||||||
.{{ email_suffix }}@{{ EMAIL_DOMAIN }}
|
.{{ email_suffix }}@{{ EMAIL_DOMAIN }}
|
||||||
|
@ -40,13 +40,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row col">
|
||||||
<div class="small-text">
|
<div class="small-text">
|
||||||
You can use letter, number or dash. Alias cannot be empty.
|
You can use letter, number or dash. Alias cannot be empty.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row col">
|
||||||
<button class="btn btn-primary mt-1">Create</button>
|
<button class="btn btn-primary mt-1">Create</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -56,29 +56,31 @@
|
||||||
{% if custom_domains %}
|
{% if custom_domains %}
|
||||||
<hr>
|
<hr>
|
||||||
<p class="font-weight-bold">OR with your custom domains</p>
|
<p class="font-weight-bold">OR with your custom domains</p>
|
||||||
{% for custom_domain in custom_domains %}
|
<div class="container p-0">
|
||||||
<form method="post" class="mb-6">
|
{% for custom_domain in custom_domains %}
|
||||||
<input type="hidden" name="form-name" value="custom-domain-name">
|
<form method="post" class="mb-6">
|
||||||
<input type="hidden" name="custom-domain-id" value="{{ custom_domain.id }}">
|
<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="row mt-4">
|
||||||
<div class="col" style="min-width: 10em">
|
<div class="col" style="min-width: 10em">
|
||||||
<input name="email" class="form-control">
|
<input name="email" class="form-control">
|
||||||
</div>
|
<div>
|
||||||
<div class="col align-self-center d-flex">
|
<span style="font-weight: 600">
|
||||||
<input type="hidden" name="email-suffix" value="{{ email_suffix }}">
|
@{{ custom_domain.domain }}
|
||||||
<span style="font-weight: 600">
|
</span>
|
||||||
@{{ custom_domain.domain }}
|
</div>
|
||||||
</span>
|
</div>
|
||||||
<button class="ml-4 submit btn btn-sm btn-success">Create</button>
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
|
|
||||||
|
<div class="col">
|
||||||
|
<button class="submit btn btn-success">Create</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
{% endfor %}
|
</form>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue