Skip to content

Commit

Permalink
Add page title to timeslots pages
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Jan 14, 2025
1 parent 6055f13 commit 6415cb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/argus/htmx/timeslot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6415cb1

Please sign in to comment.