Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | <div role="tabpanel" class="tab-pane" id="tab-routing"> |
| 2 | <div class="panel panel-default"> |
| 3 | <div class="panel-heading">{{ lang.admin.relayhosts }}</div> |
| 4 | <div class="panel-body"> |
| 5 | <p style="margin-bottom:40px">{{ lang.admin.relayhosts_hint|raw }}</p> |
| 6 | <div class="table-responsive"> |
| 7 | <table class="table table-striped table-condensed" id="relayhoststable"></table> |
| 8 | </div> |
| 9 | <div class="mass-actions-admin"> |
| 10 | <div class="btn-group btn-group-sm"> |
| 11 | <button type="button" id="toggle_multi_select_all" data-id="rlyhosts" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default">{{ lang.mailbox.toggle_all }}</button> |
| 12 | <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default dropdown-toggle" data-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }} <span class="caret"></span></a> |
| 13 | <ul class="dropdown-menu top100"> |
| 14 | <li><a data-action="edit_selected" data-id="rlyhosts" data-api-url='edit/relayhost' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li> |
| 15 | <li><a data-action="edit_selected" data-id="rlyhosts" data-api-url='edit/relayhost' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li> |
| 16 | <li role="separator" class="divider"></li> |
| 17 | <li><a data-action="delete_selected" data-id="rlyhosts" data-api-url='delete/relayhost' href="#">{{ lang.admin.remove }}</a></li> |
| 18 | </ul> |
| 19 | <div class="clearfix visible-xs"></div> |
| 20 | </div> |
| 21 | </div> |
| 22 | <legend>{{ lang.admin.add_relayhost }}</legend> |
| 23 | <p class="help-block">{{ lang.admin.add_relayhost_hint|raw }}</p> |
| 24 | <div class="row"> |
| 25 | <div class="col-md-8"> |
| 26 | <form class="form" data-id="rlyhost" role="form" method="post"> |
| 27 | <div class="form-group"> |
| 28 | <label for="rlyhost_hostname">{{ lang.admin.host }}</label> |
| 29 | <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> |
| 30 | </div> |
| 31 | <div class="form-group"> |
| 32 | <label for="rlyhost_username">{{ lang.admin.username }}</label> |
| 33 | <input class="form-control" id="rlyhost_username" name="username"> |
| 34 | </div> |
| 35 | <div class="form-group"> |
| 36 | <label for="rlyhost_password">{{ lang.admin.password }}</label> |
| 37 | <input class="form-control" id="rlyhost_password" name="password"> |
| 38 | </div> |
| 39 | <button class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-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> |
| 40 | </form> |
| 41 | </div> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |
| 45 | |
| 46 | <div class="panel panel-default"> |
| 47 | <div class="panel-heading">{{ lang.admin.transport_maps }}</div> |
| 48 | <div class="panel-body"> |
| 49 | <p style="margin-bottom:40px">{{ lang.admin.transports_hint|raw }}</p> |
| 50 | <div class="table-responsive"> |
| 51 | <table class="table table-striped table-condensed" id="transportstable"></table> |
| 52 | </div> |
| 53 | <div class="mass-actions-admin"> |
| 54 | <div class="btn-group btn-group-sm"> |
| 55 | <button type="button" id="toggle_multi_select_all" data-id="transports" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default">{{ lang.mailbox.toggle_all }}</button> |
| 56 | <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default dropdown-toggle" data-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }} <span class="caret"></span></a> |
| 57 | <ul class="dropdown-menu top100"> |
| 58 | <li><a data-action="edit_selected" data-id="transports" data-api-url='edit/transport' data-api-attr='{"active":"1"}' href="#">{{ lang.mailbox.activate }}</a></li> |
| 59 | <li><a data-action="edit_selected" data-id="transports" data-api-url='edit/transport' data-api-attr='{"active":"0"}' href="#">{{ lang.mailbox.deactivate }}</a></li> |
| 60 | <li role="separator" class="divider"></li> |
| 61 | <li><a data-action="delete_selected" data-id="transports" data-api-url='delete/transport' href="#">{{ lang.admin.remove }}</a></li> |
| 62 | </ul> |
| 63 | <div class="clearfix visible-xs"></div> |
| 64 | </div> |
| 65 | </div> |
| 66 | <legend>{{ lang.admin.add_transport }}</legend> |
| 67 | <p class="help-block">{{ lang.admin.add_transports_hint|raw }}</p> |
| 68 | <div class="row"> |
| 69 | <div class="col-md-8"> |
| 70 | <form class="form" data-id="transport" role="form" method="post"> |
| 71 | <div class="form-group"> |
| 72 | <label for="transport_destination">{{ lang.admin.destination }}</label> |
| 73 | <input class="form-control" id="transport_destination" name="destination" placeholder='{{ lang.admin.transport_dest_format }}' required> |
| 74 | </div> |
| 75 | <div class="form-group"> |
| 76 | <label for="transport_nexthop">{{ lang.admin.nexthop }}</label> |
| 77 | <input class="form-control" id="transport_nexthop" name="nexthop" placeholder='host:25, host, [host]:25, [0.0.0.0]:25' required> |
| 78 | </div> |
| 79 | <div class="form-group"> |
| 80 | <label for="transport_username">{{ lang.admin.username }}</label> |
| 81 | <input class="form-control" id="transport_username" name="username"> |
| 82 | </div> |
| 83 | <div class="form-group"> |
| 84 | <label for="transport_password">{{ lang.admin.password }}</label> |
| 85 | <input class="form-control" id="transport_password" name="password"> |
| 86 | </div> |
| 87 | <div class="form-group"> |
| 88 | <label> |
| 89 | <input type="checkbox" name="is_mx_based" value="1"> {{ lang.admin.lookup_mx|raw }} |
| 90 | </label> |
| 91 | </div> |
| 92 | <div class="form-group"> |
| 93 | <label> |
| 94 | <input type="checkbox" name="active" value="1"> {{ lang.admin.active }} |
| 95 | </label> |
| 96 | </div> |
| 97 | <p class="help-block">{{ lang.admin.credentials_transport_warning|raw }}</p> |
| 98 | <button class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-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> |
| 99 | </form> |
| 100 | </div> |
| 101 | </div> |
| 102 | </div> |
| 103 | </div> |
| 104 | </div> |