Remove duplicate notifications and fix disabled switch

This commit is contained in:
Mark Veidemanis 2022-08-26 17:22:57 +01:00
parent 3f02c61463
commit e8f1791444
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,8 @@
}
</script>
<div>
{% include 'partials/notify.html' %}
{# Not sure why this was here, but it duplicates errors! #}
{# include 'partials/notify.html' #}
<form class="skipEmptyFields" method="POST" hx-post="{% url 'search' %}"
hx-trigger="change"
hx-target="#results"
@ -139,11 +140,11 @@
<input
id="full_query"
type="checkbox"
class="switch"
class="switch is-rounded"
{% if params.query_full is not None %}checked="checked"{% else %}none{% endif %}
{% if not perms.core.query_search %}disabled{% endif %}
data-script="on click toggle .is-hidden on #query_full">
<label
class="{% if not perms.core.query_search %}is-disabled{% endif %}"
for="full_query">Full query </label>
</div>
</div>