Remove duplicate notifications and fix disabled switch
This commit is contained in:
parent
3f02c61463
commit
e8f1791444
|
@ -54,7 +54,8 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div>
|
<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' %}"
|
<form class="skipEmptyFields" method="POST" hx-post="{% url 'search' %}"
|
||||||
hx-trigger="change"
|
hx-trigger="change"
|
||||||
hx-target="#results"
|
hx-target="#results"
|
||||||
|
@ -139,11 +140,11 @@
|
||||||
<input
|
<input
|
||||||
id="full_query"
|
id="full_query"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="switch"
|
class="switch is-rounded"
|
||||||
{% if params.query_full is not None %}checked="checked"{% else %}none{% endif %}
|
{% 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">
|
data-script="on click toggle .is-hidden on #query_full">
|
||||||
<label
|
<label
|
||||||
class="{% if not perms.core.query_search %}is-disabled{% endif %}"
|
|
||||||
for="full_query">Full query </label>
|
for="full_query">Full query </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue