blob: 0f77048feb39d0728c9be0a43e804391d6b28f16 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade" id="tab-config-fwdhosts" role="tabpanel" aria-labelledby="tab-config-fwdhosts">
2 <div class="card mb-4">
3 <div class="card-header d-flex fs-5">
4 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-config-fwdhosts" data-bs-toggle="collapse" aria-controls="ollapse-tab-config-fwdhosts">
5 {{ lang.admin.forwarding_hosts }}
6 </button>
7 <span class="d-none d-md-block">{{ lang.admin.forwarding_hosts }}</span>
8 </div>
9 <div id="collapse-tab-config-fwdhosts" class="card-body collapse" data-bs-parent="#admin-content">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 <p style="margin-bottom:40px">{{ lang.admin.forwarding_hosts_hint }}</p>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 <table id="forwardinghoststable" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010012 <div class="mass-actions-admin">
13 <div class="btn-group btn-group-sm">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010014 <button type="button" id="toggle_multi_select_all" data-id="fwdhosts" class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary">{{ lang.mailbox.toggle_all }}</button>
15 <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010016 <ul class="dropdown-menu top100">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010017 <li><a class="dropdown-item" data-action="edit_selected" data-id="fwdhosts" data-api-url='edit/fwdhost' data-api-attr='{"keep_spam":"0"}' href="#">Enable spam filter</a></li>
18 <li><a class="dropdown-item" data-action="edit_selected" data-id="fwdhosts" data-api-url='edit/fwdhost' data-api-attr='{"keep_spam":"1"}' href="#">Disable spam filter</a></li>
19 <li><hr class="dropdown-divider"></li>
20 <li><a class="dropdown-item" data-action="delete_selected" data-id="fwdhosts" data-api-url='delete/fwdhost' href="#">{{ lang.admin.remove }}</a></li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010021 </ul>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010022 </div>
23 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010024 <legend>{{ lang.admin.add_forwarding_host }}</legend><hr />
25 <p class="text-muted">{{ lang.admin.forwarding_hosts_add_hint }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010026 <form class="form" data-id="fwdhost" role="form" method="post">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010027 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010028 <label for="fwdhost_hostname">{{ lang.admin.host }}</label>
29 <input class="form-control" id="fwdhost_hostname" name="hostname" placeholder="example.org" required>
30 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010031 <div class="mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010032 <select data-width="200px" class="form-control" id="filter_spam" name="filter_spam" title="{{ lang.user.spamfilter }}" required>
33 <option value="1">{{ lang.admin.active }}</option>
34 <option value="0">{{ lang.admin.inactive }}</option>
35 </select>
36 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010037 <button class="btn btn-sm d-block d-sm-inline btn-success" data-action="add_item" data-id="fwdhost" data-api-url='add/fwdhost' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010038 </form>
39 </div>
40 </div>
41</div>