blob: 07d97955762c1d440432d3fdf17adba13ed64feb [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001<div class="tab-pane fade" id="tab-routing" role="tabpanel" aria-labelledby="tab-routing">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01002 <div class="card mb-4">
3 <div class="card-header d-flex fs-5">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01004 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-routing" data-bs-toggle="collapse" aria-controls="collapse-tab-routing">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01005 {{ lang.admin.relayhosts }}
6 </button>
7 <span class="d-none d-md-block">{{ lang.admin.relayhosts }}</span>
8 </div>
9 <div id="collapse-tab-routing" class="card-body collapse" data-bs-parent="#admin-content">
10 <p class="mb-4">{{ lang.admin.relayhosts_hint|raw }}</p>
11 <table id="relayhoststable" class="table table-striped dt-responsive w-100"></table>
12 <div class="mass-actions-admin mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010013 <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="rlyhosts" 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="rlyhosts" data-api-url='edit/relayhost' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li>
18 <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>
19 <li><hr class="dropdown-divider"></li>
20 <li><a class="dropdown-item" data-action="delete_selected" data-id="rlyhosts" data-api-url='delete/relayhost' 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_relayhost }}</legend><hr />
25 <p class="text-muted">{{ lang.admin.add_relayhost_hint|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010026 <div class="row">
27 <div class="col-md-8">
28 <form class="form" data-id="rlyhost" role="form" method="post">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010029 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010030 <label for="rlyhost_hostname">{{ lang.admin.host }}</label>
31 <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>
32 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010033 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010034 <label for="rlyhost_username">{{ lang.admin.username }}</label>
35 <input class="form-control" id="rlyhost_username" name="username">
36 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010037 <div class="mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010038 <label for="rlyhost_password">{{ lang.admin.password }}</label>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010039 <input class="form-control" id="rlyhost_password" name="password" type="password">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010040 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010041 <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>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010042 </form>
43 </div>
44 </div>
45 </div>
46 </div>
47
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010048 <div class="card mb-4">
49 <div class="card-header d-flex">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010050 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-maps" data-bs-toggle="collapse" aria-controls="collapse-tab-maps">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010051 {{ lang.admin.transport_maps }}
52 </button>
53 <span class="d-none d-md-block">{{ lang.admin.transport_maps }}</span>
54 </div>
55 <div id="collapse-tab-maps" class="card-body collapse" data-bs-parent="#admin-content">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010056 <p style="margin-bottom:40px">{{ lang.admin.transports_hint|raw }}</p>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010057 <table id="transportstable" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010058 <div class="mass-actions-admin mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010059 <div class="btn-group btn-group-sm">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010060 <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>
61 <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 +010062 <ul class="dropdown-menu top100">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010063 <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>
64 <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>
65 <li><hr class="dropdown-divider"></li>
66 <li><a class="dropdown-item" data-action="delete_selected" data-id="transports" data-api-url='delete/transport' href="#">{{ lang.admin.remove }}</a></li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010067 </ul>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010068 </div>
69 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010070 <legend>{{ lang.admin.add_transport }}</legend><hr />
71 <p class="text-muted">{{ lang.admin.add_transports_hint|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010072 <div class="row">
73 <div class="col-md-8">
74 <form class="form" data-id="transport" role="form" method="post">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010075 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010076 <label for="transport_destination">{{ lang.admin.destination }}</label>
77 <input class="form-control" id="transport_destination" name="destination" placeholder='{{ lang.admin.transport_dest_format }}' required>
78 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010079 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010080 <label for="transport_nexthop">{{ lang.admin.nexthop }}</label>
81 <input class="form-control" id="transport_nexthop" name="nexthop" placeholder='host:25, host, [host]:25, [0.0.0.0]:25' required>
82 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010083 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010084 <label for="transport_username">{{ lang.admin.username }}</label>
85 <input class="form-control" id="transport_username" name="username">
86 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010087 <div class="mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010088 <label for="transport_password">{{ lang.admin.password }}</label>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010089 <input class="form-control" id="transport_password" name="password" type="password">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010090 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010091 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010092 <label>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010093 <input type="checkbox" class="form-check-input" name="is_mx_based" value="1"> {{ lang.admin.lookup_mx|raw }}
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010094 </label>
95 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010096 <div class="mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010097 <label>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010098 <input type="checkbox" class="form-check-input" name="active" value="1"> {{ lang.admin.active }}
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010099 </label>
100 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100101 <p class="text-muted">{{ lang.admin.credentials_transport_warning|raw }}</p>
102 <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>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100103 </form>
104 </div>
105 </div>
106 </div>
107 </div>
108</div>