{% macro filter_settings(type) %}
<script>
    document.addEventListener('DOMContentLoaded', (event) => {
       /* setup filter settings buttons */
       const hideErrorScansElement = document.getElementById('showErrorScans_{{type}}');
        hideErrorScansElement.checked = true;
        hideErrorScansElement.addEventListener('change', function () {
            if (this.checked) {
                $('.pqcscan-error').show();
                $('.host_has_error').show();
            } else {
    