blob: 8caeec8a786d902fa9501fdd59e4188b48d313c3 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade" id="tab-routing" role="tabpanel" aria-labelledby="tab-routing">
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-routing" data-bs-toggle="collapse" aria-controls="ollapse-tab-routing">
5 {{ 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>
39 <input class="form-control" id="rlyhost_password" name="password">
40 </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">
50 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-maps" data-bs-toggle="collapse" aria-controls="ollapse-tab-maps">
51 {{ 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 Benkard12a57352021-12-28 18:02:04 +010058 <div class="mass-actions-admin">
59 <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>
89 <input class="form-control" id="transport_password" name="password">
90 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010091 <div class="mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010092 <label>
93 <input type="checkbox" name="is_mx_based" value="1"> {{ lang.admin.lookup_mx|raw }}
94 </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>
98 <input type="checkbox" name="active" value="1"> {{ lang.admin.active }}
99 </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>