Remove duplicate notifications and fix disabled switch
This commit is contained in:
parent
3f02c61463
commit
e8f1791444
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue