-
+
+
-
{% endblock main %}
diff --git a/gawa/start/templates/start/nav.html b/gawa/start/templates/start/nav.html
new file mode 100644
index 0000000..338826c
--- /dev/null
+++ b/gawa/start/templates/start/nav.html
@@ -0,0 +1,80 @@
+{% load i18n %}
+{% load helper_tags %}
+
diff --git a/gawa/start/views.py b/gawa/start/views.py
index 216ceed..ad71798 100644
--- a/gawa/start/views.py
+++ b/gawa/start/views.py
@@ -27,6 +27,7 @@ class SearchableView(View, ABC):
date: None = None
keywords: list[str]
+
class Index(TemplateView, SearchableView):
"""
The index page of the gawa app.
@@ -37,11 +38,6 @@ class Index(TemplateView, SearchableView):
template_name: str = "start/index.html"
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- context["MainSearchForm"] = MainSearchForm()
- return context
-
class Professional(TemplateView, SearchableView):
"""
Professional informations that might interest a professional employer
@@ -49,11 +45,6 @@ class Professional(TemplateView, SearchableView):
# TODO
template_name: str = "start/legalinfo.html"
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- context["MainSearchForm"] = MainSearchForm()
- return context
-
class LegalInfo(TemplateView, SearchableView):
"""
Legal info that the german authorities want.
@@ -61,11 +52,6 @@ class LegalInfo(TemplateView, SearchableView):
# TODO
template_name: str = "start/legalinfo.html"
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- context["MainSearchForm"] = MainSearchForm()
- return context
-
class ActivateLanguage(View):
"""
Set the language to whatever
@@ -89,11 +75,6 @@ class MainSearch(ListView):
object_list = [] # this is only declaration, the view breaks without it.
template_name: str = "start/search.html"
- def get_context_data(self, **kwargs):
- context = super().get_context_data(**kwargs)
- context["MainSearchForm"] = MainSearchForm()
- return context
-
def get(self, request, *args, **kwargs):
form = MainSearchForm(request.GET)
if not form.is_valid():
{% translate "Wer bin ich?" %} {% translate "Professionell" %} @@ -38,7 +37,7 @@
+
-