diff --git a/src/argus/htmx/auth/views.py b/src/argus/htmx/auth/views.py index 09a62baa0..f3769b93e 100644 --- a/src/argus/htmx/auth/views.py +++ b/src/argus/htmx/auth/views.py @@ -50,4 +50,5 @@ def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) backends = get_htmx_authentication_backend_name_and_type() context["backends"] = backends + context["page_title"] = "Log in" return context diff --git a/src/argus/htmx/destination/views.py b/src/argus/htmx/destination/views.py index 6cd52bff1..b66300f6a 100644 --- a/src/argus/htmx/destination/views.py +++ b/src/argus/htmx/destination/views.py @@ -86,6 +86,7 @@ def _render_destination_list( "create_form": create_form, "grouped_forms": grouped_forms, "errors": errors, + "page_title": "Destinations", } return render(request, template, context=context) diff --git a/src/argus/htmx/notificationprofile/views.py b/src/argus/htmx/notificationprofile/views.py index fe755c7cf..6662458d0 100644 --- a/src/argus/htmx/notificationprofile/views.py +++ b/src/argus/htmx/notificationprofile/views.py @@ -54,6 +54,11 @@ def get_template_names(self): def get_success_url(self): return reverse("htmx:notificationprofile-list") + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context["page_title"] = "Profiles" + return context + class ChangeMixin: "Common functionality for create and update views" diff --git a/src/argus/htmx/timeslot/views.py b/src/argus/htmx/timeslot/views.py index c391b9d3f..ef4114b05 100644 --- a/src/argus/htmx/timeslot/views.py +++ b/src/argus/htmx/timeslot/views.py @@ -42,6 +42,11 @@ def get_template_names(self): def get_success_url(self): return reverse("htmx:timeslot-list") + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context["page_title"] = "Timeslots" + return context + class FormsetMixin: def post(self, request, *args, **kwargs):