diff --git a/obl_microsites/settings.py b/obl_microsites/settings.py index cc5b8768f..52471b474 100644 --- a/obl_microsites/settings.py +++ b/obl_microsites/settings.py @@ -32,3 +32,6 @@ "website": "https://www.matzikamamunicipality.co.za/", }, } + +# rely on open-by-laws to manage search indexing +ELASTICSEARCH_DSL_AUTOSYNC = False diff --git a/obl_microsites/templates/peachjam/_header.html b/obl_microsites/templates/peachjam/_header.html index 598f6d619..44342ce25 100644 --- a/obl_microsites/templates/peachjam/_header.html +++ b/obl_microsites/templates/peachjam/_header.html @@ -23,3 +23,7 @@ href="{% url 'municipal_by_laws' code=MICROSITE.locality.code %}">{{ MICROSITE.locality.name }} By-laws {% endblock %} +{% block search-form %} + {{ block.super }} + +{% endblock %} diff --git a/peachjam/templates/peachjam/_header.html b/peachjam/templates/peachjam/_header.html index 1d6adb38d..bf7fdd237 100644 --- a/peachjam/templates/peachjam/_header.html +++ b/peachjam/templates/peachjam/_header.html @@ -26,17 +26,19 @@ {% if request.path == '/' %} {% else %}
-
- - -
+ {% block search-form %} +
+ + +
+ {% endblock %}
{% endif %} {% if user.is_authenticated %}