Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% 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"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 8 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 18 | <div class="row mb-2"> |
| 19 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 25 | <div class="row mb-4"> |
| 26 | <div class="offset-sm-2 col-sm-10"> |
| 27 | <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> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 28 | </div> |
| 29 | </div> |
| 30 | </form> |
| 31 | <hr> |
| 32 | <form data-id="domratelimit" class="form-inline well" method="post"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 33 | <label class="control-label mb-2">{{ lang.acl.ratelimit }}</label> |
| 34 | <input name="rl_value" type="number" value="{{ rl.value }}" autocomplete="off" class="form-control mb-4" placeholder="{{ lang.ratelimit.disabled }}"> |
| 35 | <select name="rl_frame" class="form-control"> |
| 36 | {% include 'mailbox/rl-frame.twig' %} |
| 37 | </select> |
| 38 | <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> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 39 | </form> |
| 40 | {% if dkim %} |
| 41 | <hr> |
| 42 | <div class="row"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 43 | <div class="col-12 col-sm-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 44 | <p>Domain: <strong>{{ result.alias_domain }}</strong> ({{ dkim.dkim_selector }}._domainkey)</p> |
| 45 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 46 | <div class="col-12 col-sm-10"> |
| 47 | <pre class="p-2">{{ dkim.dkim_txt }}</pre> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 48 | </div> |
| 49 | </div> |
| 50 | {% endif %} |
| 51 | {% else %} |
| 52 | {{ parent() }} |
| 53 | {% endif %} |
| 54 | {% endblock %} |