2022-03-30 12:54:38 +02:00
|
|
|
<div role="tabpanel" class="tab-pane fade" id="tab-routing" role="tabpanel" aria-labelledby="tab-routing">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="card mb-4">
|
2022-03-31 11:37:14 +02:00
|
|
|
<div class="card-header">{{ lang.admin.relayhosts }}</div>
|
|
|
|
<div class="card-body">
|
2021-09-22 20:47:10 +02:00
|
|
|
<p style="margin-bottom:40px">{{ lang.admin.relayhosts_hint|raw }}</p>
|
2022-05-19 15:06:18 +02:00
|
|
|
<table class="table table-striped table-condensed" id="relayhoststable"></table>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="mass-actions-admin">
|
|
|
|
<div class="btn-group btn-group-sm">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button type="button" id="toggle_multi_select_all" data-id="rlyhosts" class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary">{{ lang.mailbox.toggle_all }}</button>
|
|
|
|
<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>
|
2021-09-22 20:47:10 +02:00
|
|
|
<ul class="dropdown-menu top100">
|
2022-03-31 10:09:25 +02:00
|
|
|
<li><a class="dropdown-item" data-action="edit_selected" data-id="rlyhosts" data-api-url='edit/relayhost' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
|
|
|
|
<li><a class="dropdown-item" data-action="edit_selected" data-id="rlyhosts" data-api-url='edit/relayhost' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" data-action="delete_selected" data-id="rlyhosts" data-api-url='delete/relayhost' href="#">{{ lang.admin.remove }}</a></li>
|
2021-09-22 20:47:10 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-31 12:57:33 +02:00
|
|
|
<legend>{{ lang.admin.add_relayhost }}</legend><hr />
|
|
|
|
<p class="text-muted">{{ lang.admin.add_relayhost_hint|raw }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<form class="form" data-id="rlyhost" role="form" method="post">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="rlyhost_hostname">{{ lang.admin.host }}</label>
|
|
|
|
<input class="form-control" id="rlyhost_hostname" name="hostname" placeholder='[0.0.0.0], [0.0.0.0]:25, host:25, host, [host]:25' required>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="rlyhost_username">{{ lang.admin.username }}</label>
|
|
|
|
<input class="form-control" id="rlyhost_username" name="username">
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="rlyhost_password">{{ lang.admin.password }}</label>
|
|
|
|
<input class="form-control" id="rlyhost_password" name="password">
|
|
|
|
</div>
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-sm d-block d-sm-inline btn-success" data-action="add_item" data-id="rlyhost" data-api-url='add/relayhost' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="card mb-4">
|
2022-03-31 11:37:14 +02:00
|
|
|
<div class="card-header">{{ lang.admin.transport_maps }}</div>
|
|
|
|
<div class="card-body">
|
2021-09-22 20:47:10 +02:00
|
|
|
<p style="margin-bottom:40px">{{ lang.admin.transports_hint|raw }}</p>
|
2022-05-19 15:06:18 +02:00
|
|
|
<table class="table table-striped table-condensed" id="transportstable"></table>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="mass-actions-admin">
|
|
|
|
<div class="btn-group btn-group-sm">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button type="button" id="toggle_multi_select_all" data-id="transports" class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary">{{ lang.mailbox.toggle_all }}</button>
|
|
|
|
<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>
|
2021-09-22 20:47:10 +02:00
|
|
|
<ul class="dropdown-menu top100">
|
2022-03-31 10:09:25 +02:00
|
|
|
<li><a class="dropdown-item" data-action="edit_selected" data-id="transports" data-api-url='edit/transport' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
|
|
|
|
<li><a class="dropdown-item" data-action="edit_selected" data-id="transports" data-api-url='edit/transport' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li>
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
<li><a class="dropdown-item" data-action="delete_selected" data-id="transports" data-api-url='delete/transport' href="#">{{ lang.admin.remove }}</a></li>
|
2021-09-22 20:47:10 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-31 12:57:33 +02:00
|
|
|
<legend>{{ lang.admin.add_transport }}</legend><hr />
|
|
|
|
<p class="text-muted">{{ lang.admin.add_transports_hint|raw }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<form class="form" data-id="transport" role="form" method="post">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="transport_destination">{{ lang.admin.destination }}</label>
|
|
|
|
<input class="form-control" id="transport_destination" name="destination" placeholder='{{ lang.admin.transport_dest_format }}' required>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="transport_nexthop">{{ lang.admin.nexthop }}</label>
|
|
|
|
<input class="form-control" id="transport_nexthop" name="nexthop" placeholder='host:25, host, [host]:25, [0.0.0.0]:25' required>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="transport_username">{{ lang.admin.username }}</label>
|
|
|
|
<input class="form-control" id="transport_username" name="username">
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label for="transport_password">{{ lang.admin.password }}</label>
|
|
|
|
<input class="form-control" id="transport_password" name="password">
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="is_mx_based" value="1"> {{ lang.admin.lookup_mx|raw }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="active" value="1"> {{ lang.admin.active }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted">{{ lang.admin.credentials_transport_warning|raw }}</p>
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-sm d-block d-sm-inline btn-success" data-action="add_item" data-id="transport" data-api-url='add/transport' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|