2021-09-22 20:47:10 +02:00
|
|
|
<!-- add settings rule modal -->
|
2022-08-22 16:01:57 +02:00
|
|
|
<div class="modal fade" id="addRsettingModal" tabindex="-1" role="dialog" aria-hidden="false">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title">{{ lang.admin.add_settings_rule }}</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="true" data-id="rsetting" role="form" method="post">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="desc">{{ lang.admin.rsetting_desc }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" id="adminRspamdSettingsDesc" name="desc" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="content">{{ lang.admin.rsetting_content }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<textarea class="form-control" id="adminRspamdSettingsContent" name="content" rows="10"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" value="1" name="active" checked> {{ lang.admin.active }}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="rsetting" data-api-url='add/rsetting' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<hr>
|
2022-03-19 23:21:00 +01:00
|
|
|
<p>{{ lang.admin.rspamd_com_settings | raw }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
<ul id="rspamd_presets"></ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- add settings rule modal -->
|
|
|
|
<!-- add domain admin modal -->
|
|
|
|
<div class="modal fade" id="addDomainAdminModal" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title">{{ lang.admin.add_domain_admin }}</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="true" data-id="add_domain_admin" role="form" method="post" autocomplete="off">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="username">{{ lang.admin.username }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="username" onkeyup="this.value = this.value.toLowerCase();" required>
|
|
|
|
↳ <kbd>a-z - _ .</kbd>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="name">{{ lang.admin.admin_domains }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<select title="{{ lang.admin.search_domain_da }}" class="full-width-select" name="domains" size="5" multiple>
|
|
|
|
{% for domain in domains %}
|
|
|
|
<option>{{ domain }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="password">{{ lang.admin.password }} (<a href="#" class="generate_password">{{ lang.admin.generate }}</a>)</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="password" class="form-control" data-pwgen-field="true" data-hibp="true" name="password" placeholder="" autocomplete="new-password" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="password2">{{ lang.admin.password_repeat }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="password" class="form-control" data-pwgen-field="true" name="password2" placeholder="" autocomplete="new-password" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" value="1" name="active" checked> {{ lang.admin.active }}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="add_domain_admin" data-api-url='add/domain-admin' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- add domain admin modal -->
|
|
|
|
<!-- change fido2 fn -->
|
|
|
|
<div class="modal fade" id="fido2ChangeFn" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title">{{ lang.fido2.set_fn }}</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted" style="word-break:break-all" id="fido2_subject_desc" data-fido2-subject=""></p>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="false" data-id="fido2ChangeFn" role="form" method="post" autocomplete="off">
|
|
|
|
<input type="hidden" class="form-control" name="fido2_cid" id="fido2_cid">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label class="control-label col-sm-4" for="fido2_fn">{{ lang.fido2.fn }}:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input type="text" class="form-control" name="fido2_fn">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-4 col-sm-8">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="fido2ChangeFn" data-item="null" data-api-url='edit/fido2-fn' data-api-attr='{}' href="#">{{ lang.admin.save }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- add domain admin modal -->
|
|
|
|
<!-- add oauth2 client modal -->
|
|
|
|
<div class="modal fade" id="addOAuth2ClientModal" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title">OAuth2</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="true" data-id="add_oauth2_client" role="form" method="post">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="redirect_uri">{{ lang.admin.oauth2_redirect_uri }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="redirect_uri" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="add_oauth2_client" data-api-url='add/oauth2-client' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- add domain admin modal -->
|
|
|
|
<!-- add admin modal -->
|
|
|
|
<div class="modal fade" id="addAdminModal" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title">{{ lang.admin.add_admin }}</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="true" data-id="add_admin" role="form" method="post" autocomplete="off">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="username">{{ lang.admin.username }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="username" onkeyup="this.value = this.value.toLowerCase();" required>
|
|
|
|
↳ <kbd>a-z - _ .</kbd>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="password">{{ lang.admin.password }} (<a href="#" class="generate_password">{{ lang.admin.generate }}</a>):</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="password" class="form-control" data-pwgen-field="true" data-hibp="true" name="password" placeholder="" autocomplete="new-password" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="password2">{{ lang.admin.password_repeat }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="password" class="form-control" data-pwgen-field="true" name="password2" placeholder="" autocomplete="new-password" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="checkbox">
|
|
|
|
<label><input type="checkbox" value="1" name="active" checked> {{ lang.admin.active }}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="add_admin" data-api-url='add/admin' data-api-attr='{}' href="#"><i class="bi bi-plus-lg"></i> {{ lang.admin.add }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- add admin modal -->
|
|
|
|
<!-- test transport modal -->
|
|
|
|
<div class="modal fade" id="testTransportModal" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title"><i class="bi bi-info-circle-fill"></i> Transport</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-cached-form="true" id="test_transport_form" role="form" method="post">
|
|
|
|
<input type="hidden" class="form-control" name="transport_id" id="transport_id">
|
|
|
|
<input type="hidden" class="form-control" name="transport_type" id="transport_type">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="mail_from">{{ lang.admin.relay_from }}</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="mail_from" placeholder="relay@example.org">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-2 text-sm-end" for="mail_rcpt">{{ lang.admin.relay_rcpt }}</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-10">
|
|
|
|
<input type="text" class="form-control" name="mail_rcpt" placeholder="null@hosted.mailcow.de" value="null@hosted.mailcow.de">
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted">{{ lang.admin.transport_test_rcpt_info|raw }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-2 col-sm-10">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-xs-lg d-block d-sm-inline btn-secondary" id="test_transport" href="#">{{ lang.admin.relay_run }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<div id="test_transport_result" style="font-size:10pt">-</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- test transport modal -->
|
|
|
|
<!-- show queue item modal -->
|
|
|
|
<div class="modal fade" id="showQueuedMsg" tabindex="-1" role="dialog" aria-hidden="true">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="modal-dialog modal-xl">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title"><i class="bi bi-card-checklist" style="font-size:18px"></i> ID <span id="queue_id"></span></h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<textarea class="form-control" id="queue_msg_content" name="content" rows="40"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- show queue item modal -->
|
|
|
|
<!-- priv key modal -->
|
|
|
|
<div class="modal fade" id="showDKIMprivKey" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title"><i class="bi bi-key-fill"></i> Private key</h3>
|
2022-03-31 12:57:33 +02:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<pre id="priv_key_pre"></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- priv key modal -->
|