git subrepo commit (merge) mailcow/src/mailcow-dockerized

subrepo: subdir:   "mailcow/src/mailcow-dockerized"
  merged:   "32243e56"
upstream: origin:   "https://github.com/mailcow/mailcow-dockerized.git"
  branch:   "master"
  commit:   "e2b4b6f6"
git-subrepo: version:  "0.4.3"
  origin:   "???"
  commit:   "???"
Change-Id: I51e2016ef5ab88a8b0bdc08551b18f48ceef0aa5
diff --git a/mailcow/src/mailcow-dockerized/data/web/templates/admin/tab-globalfilter-regex.twig b/mailcow/src/mailcow-dockerized/data/web/templates/admin/tab-globalfilter-regex.twig
new file mode 100644
index 0000000..dfd5235
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/templates/admin/tab-globalfilter-regex.twig
@@ -0,0 +1,48 @@
+<div role="tabpanel" class="tab-pane" id="tab-globalfilter-regex">
+  <div class="panel panel-default">
+    <div class="panel-heading">
+      {{ lang.admin.rspamd_global_filters }}
+    </div>
+    <div class="panel-body">
+      <p>{{ lang.admin.rspamd_global_filters_info }}</p>
+      <div id="confirm_show_rspamd_global_filters"{% if show_rspamd_global_filters %} class="hidden"{% endif %}>
+        <div class="form-group">
+          <div class="col-sm-offset-2 col-sm-10">
+            <label>
+              <input type="checkbox" id="show_rspamd_global_filters"> {{ lang.admin.rspamd_global_filters_agree }}
+            </label>
+          </div>
+        </div>
+      </div>
+      <div id="rspamd_global_filters"{% if show_rspamd_global_filters != true %} class="hidden"{% endif %}>
+        <hr>
+        <span class="anchor" id="regexmaps"></span>
+        <h4>{{ lang.admin.regex_maps }}</h4>
+        <p>{{ lang.admin.rspamd_global_filters_regex|raw }}</p>
+        <ul>
+          {% for rspamd_regex_desc, rspamd_regex_map in rspamd_regex_maps %}
+            <li><a href="#{{ rspamd_regex_map.map }}">{{ rspamd_regex_desc }}</a> (<small>{{ rspamd_regex_map.map }}</small>)</li>
+          {% endfor %}
+        </ul>
+        {% for rspamd_regex_desc, rspamd_regex_map in rspamd_regex_maps %}
+        <hr>
+        <span class="anchor" id="{{ rspamd_regex_map.map }}"></span>
+        <form class="form-horizontal" data-cached-form="false" data-id="{{ rspamd_regex_map.map }}" role="form" method="post">
+          <div class="form-group">
+            <label class="control-label col-sm-3" for="{{ rspamd_regex_map.map }}">{{ rspamd_regex_desc }}<br><small>{{ rspamd_regex_map.map }}</small></label>
+            <div class="col-sm-9">
+              <textarea id="{{ rspamd_regex_map.map }}" spellcheck="false" autocorrect="off" autocapitalize="none" class="form-control textarea-code" rows="10" name="rspamd_map_data" required>{{ rspamd_regex_map.data }}</textarea>
+            </div>
+          </div>
+          <div class="form-group">
+            <div class="col-sm-offset-3 col-sm-9">
+              <button class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default validate_rspamd_regex" data-regex-map="{{ rspamd_regex_map.map }}" href="#">{{ lang.add.validate }}</button>
+              <button class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-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>
+        </form>
+        {% endfor %}
+      </div>
+    </div>
+  </div>
+</div>