2021-09-22 20:47:10 +02:00
|
|
|
{% extends 'edit.twig' %}
|
|
|
|
|
|
|
|
{% block inner_content %}
|
|
|
|
{% if result %}
|
2023-09-03 12:33:58 +02:00
|
|
|
<h4 class="mb-4">{{ lang.edit.edit_alias_domain }}</h4>
|
2021-09-22 20:47:10 +02:00
|
|
|
<form class="form-horizontal" data-id="editaliasdomain" role="form" method="post">
|
|
|
|
<input type="hidden" value="0" name="active">
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label class="control-label col-sm-2" for="target_domain">{{ lang.edit.target_domain }}</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<select class="full-width-select" data-live-search="true" id="addSelectDomain" name="target_domain" required>
|
|
|
|
{% for domain in domains %}
|
|
|
|
<option{% if result.target_domain == domain %} selected{% endif %}>{{ domain }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2023-09-02 10:17:00 +02:00
|
|
|
<div class="form-check">
|
|
|
|
<label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="editaliasdomain" data-item="{{ alias_domain }}" data-api-url='edit/alias-domain' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<form data-id="domratelimit" class="form-inline well" method="post">
|
2022-06-28 07:21:26 +02:00
|
|
|
<label class="control-label mb-2">{{ lang.acl.ratelimit }}</label>
|
2023-09-03 12:31:59 +02:00
|
|
|
<div class="input-group mb-4">
|
|
|
|
<input name="rl_value" type="number" value="{{ rl.value }}" autocomplete="off" class="form-control" placeholder="{{ lang.ratelimit.disabled }}">
|
2023-09-03 12:33:58 +02:00
|
|
|
<select name="rl_frame" class="form-control">
|
2022-06-28 07:21:26 +02:00
|
|
|
{% include 'mailbox/rl-frame.twig' %}
|
2023-09-03 12:33:58 +02:00
|
|
|
</select>
|
2023-09-03 12:31:59 +02:00
|
|
|
</div>
|
2022-06-28 07:21:26 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-secondary" data-action="edit_selected" data-id="domratelimit" data-item="{{ alias_domain }}" data-api-url='edit/rl-domain' data-api-attr='{}' href="#">{{ lang.admin.save }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</form>
|
|
|
|
{% if dkim %}
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-12 col-sm-2">
|
2023-09-03 12:33:29 +02:00
|
|
|
<p>{{ lang.add.domain }}: <strong>{{ result.alias_domain }}</strong> ({{ dkim.dkim_selector }}._domainkey)</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-12 col-sm-10">
|
2022-06-28 07:21:26 +02:00
|
|
|
<pre class="p-2">{{ dkim.dkim_txt }}</pre>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|