blob: 2580b5f3633858070d5bdc0d34c446ddf751c1c4 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'edit.twig' %}
2
3{% block inner_content %}
4{% if result %}
5<h4>{{ lang.edit.edit_alias_domain }}</h4>
6<form class="form-horizontal" data-id="editaliasdomain" role="form" method="post">
7 <input type="hidden" value="0" name="active">
8 <div class="form-group">
9 <label class="control-label col-sm-2" for="target_domain">{{ lang.edit.target_domain }}</label>
10 <div class="col-sm-10">
11 <select class="full-width-select" data-live-search="true" id="addSelectDomain" name="target_domain" required>
12 {% for domain in domains %}
13 <option{% if result.target_domain == domain %} selected{% endif %}>{{ domain }}</option>
14 {% endfor %}
15 </select>
16 </div>
17 </div>
18 <div class="form-group">
19 <div class="col-sm-offset-2 col-sm-10">
20 <div class="checkbox">
21 <label><input type="checkbox" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
22 </div>
23 </div>
24 </div>
25 <div class="form-group">
26 <div class="col-sm-offset-2 col-sm-10">
27 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-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>
28 </div>
29 </div>
30</form>
31<hr>
32<form data-id="domratelimit" class="form-inline well" method="post">
33 <div class="form-group">
34 <label class="control-label">{{ lang.acl.ratelimit }}</label>
35 <input name="rl_value" type="number" value="{{ rl.value }}" autocomplete="off" class="form-control" placeholder="{{ lang.ratelimit.disabled }}">
36 </div>
37 <div class="form-group">
38 <select name="rl_frame" class="form-control">
39 {% include 'mailbox/rl-frame.twig' %}
40 </select>
41 </div>
42 <div class="form-group">
43 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" 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>
44 </div>
45</form>
46{% if dkim %}
47<hr>
48<div class="row">
49 <div class="col-xs-12 col-sm-2">
50 <p>Domain: <strong>{{ result.alias_domain }}</strong> ({{ dkim.dkim_selector }}._domainkey)</p>
51 </div>
52 <div class="col-xs-12 col-sm-10">
53 <pre>{{ dkim.dkim_txt }}</pre>
54 </div>
55</div>
56{% endif %}
57{% else %}
58 {{ parent() }}
59{% endif %}
60{% endblock %}