[BS5] minor fixes

This commit is contained in:
FreddleSpl0it 2022-07-08 11:32:46 +02:00
parent e5cb2dd00e
commit b149da28c8
6 changed files with 16 additions and 12 deletions

View File

@ -7,10 +7,15 @@
<span class="d-none d-md-block">{{ lang.admin.dkim_keys }}</span> <span class="d-none d-md-block">{{ lang.admin.dkim_keys }}</span>
</div> </div>
<div id="collapse-tab-config-dkim" class="card-body collapse" data-bs-parent="#admin-content"> <div id="collapse-tab-config-dkim" class="card-body collapse" data-bs-parent="#admin-content">
<div class="btn-group" data-bs-toggle="button" style="margin-bottom: 20px;"> <div class="btn-group my-4" role="group">
<a class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary active" href="#" data-bs-toggle="collapse" data-bs-target=".dkim_key_valid">{{ lang.admin.dkim_key_valid }}</a> <input type="checkbox" id="check-dkim_key_valid" class="btn-check" autocomplete="off" data-bs-toggle="collapse" data-bs-target=".dkim_key_valid" checked>
<a class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary active" href="#" data-bs-toggle="collapse" data-bs-target=".dkim_key_unused">{{ lang.admin.dkim_key_unused }}</a> <label class="btn btn-outline-secondary btn-check-label" for="check-dkim_key_valid">{{ lang.admin.dkim_key_valid }}</label>
<a class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary active" href="#" data-bs-toggle="collapse" data-bs-target=".dkim_key_missing">{{ lang.admin.dkim_key_missing }}</a>
<input type="checkbox" id="check-dkim_key_unused" class="btn-check" autocomplete="off" data-bs-toggle="collapse" data-bs-target=".dkim_key_unused" checked>
<label class="btn btn-outline-secondary btn-check-label" for="check-dkim_key_unused">{{ lang.admin.dkim_key_unused }}</label>
<input type="checkbox" id="check-dkim_key_missing" class="btn-check" autocomplete="off" data-bs-toggle="collapse" data-bs-target=".dkim_key_missing" checked>
<label class="btn btn-outline-secondary btn-check-label" for="check-dkim_key_missing">{{ lang.admin.dkim_key_missing }}</label>
</div> </div>
{% for domain, domain_data in dkim_domains %} {% for domain, domain_data in dkim_domains %}
{% if domain_data.dkim %} {% if domain_data.dkim %}

View File

@ -9,7 +9,7 @@
<div id="collapse-tab-config-rspamd" class="card-body collapse" data-bs-parent="#admin-content"> <div id="collapse-tab-config-rspamd" class="card-body collapse" data-bs-parent="#admin-content">
<div class="row"> <div class="row">
<div class="col-12 d-flex d-sm-none mb-4"> <div class="col-12 d-flex d-sm-none mb-4">
<img class="img-responsive mx-auto" src="/img/rspamd_logo.png" alt="Rspamd UI"> <img id="rspamd_logo_sm" class="img-responsive mx-auto" src="/img/rspamd_logo_dark.png" alt="Rspamd UI">
</div> </div>
<div class="col-sm-9 col-12"> <div class="col-sm-9 col-12">
<form class="form-horizontal" autocapitalize="none" data-id="admin" autocorrect="off" role="form" method="post"> <form class="form-horizontal" autocapitalize="none" data-id="admin" autocorrect="off" role="form" method="post">
@ -40,7 +40,7 @@
</form> </form>
</div> </div>
<div class="col-sm-3 d-none d-sm-block"> <div class="col-sm-3 d-none d-sm-block">
<img class="img-responsive" src="/img/rspamd_logo.png" alt="Rspamd UI"> <img id="rspamd_logo" class="img-responsive" src="/img/rspamd_logo_dark.png" alt="Rspamd UI">
</div> </div>
</div> </div>
</div> </div>

View File

@ -39,7 +39,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="offset-sm-3 col-sm-9"> <div class="offset-sm-3 col-sm-9">
<div class="btn-group"> <div class="btn-group mt-2">
<button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_rspamd_regex" data-regex-map="{{ rspamd_regex_map.map }}" href="#">{{ lang.add.validate }}</button> <button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_rspamd_regex" data-regex-map="{{ rspamd_regex_map.map }}" href="#">{{ lang.add.validate }}</button>
<button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-success submit_rspamd_regex" data-action="edit_selected" data-id="{{ rspamd_regex_map.map }}" data-item="{{ rspamd_regex_map.map }}" data-api-url='edit/rspamd-map' data-api-attr='{}' href="#" disabled>{{ lang.edit.save }}</button> <button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-success submit_rspamd_regex" data-action="edit_selected" data-id="{{ rspamd_regex_map.map }}" data-item="{{ rspamd_regex_map.map }}" data-api-url='edit/rspamd-map' data-api-attr='{}' href="#" disabled>{{ lang.edit.save }}</button>
</div> </div>

View File

@ -7,9 +7,9 @@
<span class="d-none d-md-block">{{ lang.admin.relayhosts }}</span> <span class="d-none d-md-block">{{ lang.admin.relayhosts }}</span>
</div> </div>
<div id="collapse-tab-routing" class="card-body collapse" data-bs-parent="#admin-content"> <div id="collapse-tab-routing" class="card-body collapse" data-bs-parent="#admin-content">
<p style="margin-bottom:40px">{{ lang.admin.relayhosts_hint|raw }}</p> <p class="mb-4">{{ lang.admin.relayhosts_hint|raw }}</p>
<table id="relayhoststable" class="table table-striped dt-responsive w-100"></table> <table id="relayhoststable" class="table table-striped dt-responsive w-100"></table>
<div class="mass-actions-admin"> <div class="mass-actions-admin mb-4">
<div class="btn-group btn-group-sm"> <div class="btn-group btn-group-sm">
<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> <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> <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>

View File

@ -41,7 +41,7 @@
<textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code script_data" rows="10" name="script_data" required>{{ global_filters.prefilter }}</textarea> <textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code script_data" rows="10" name="script_data" required>{{ global_filters.prefilter }}</textarea>
</div> </div>
</div> </div>
<div class="row"> <div class="row mt-2">
<div class="col-sm-10 add_filter_btns"> <div class="col-sm-10 add_filter_btns">
<div class="btn-group"> <div class="btn-group">
<button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_sieve" href="#">{{ lang.add.validate }}</button> <button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_sieve" href="#">{{ lang.add.validate }}</button>
@ -59,7 +59,7 @@
<textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code script_data" rows="10" name="script_data" required>{{ global_filters.postfilter }}</textarea> <textarea autocorrect="off" spellcheck="false" autocapitalize="none" class="form-control textarea-code script_data" rows="10" name="script_data" required>{{ global_filters.postfilter }}</textarea>
</div> </div>
</div> </div>
<div class="row"> <div class="row mt-2">
<div class="col-sm-10 add_filter_btns"> <div class="col-sm-10 add_filter_btns">
<div class="btn-group"> <div class="btn-group">
<button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_sieve" href="#">{{ lang.add.validate }}</button> <button class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary validate_sieve" href="#">{{ lang.add.validate }}</button>

View File

@ -670,7 +670,6 @@
<label class="control-label col-sm-2 text-sm-end" for="local_dest">{{ lang.mailbox.bcc_local_dest }}</label> <label class="control-label col-sm-2 text-sm-end" for="local_dest">{{ lang.mailbox.bcc_local_dest }}</label>
<div class="col-sm-10"> <div class="col-sm-10">
<select id="bcc-local-dest" data-live-search="true" data-size="20" name="local_dest" required> <select id="bcc-local-dest" data-live-search="true" data-size="20" name="local_dest" required>
<option selected>{{ lang.footer.loading }}</option>
</select> </select>
</div> </div>
</div> </div>