diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py index 69147e03..c3c9594f 100644 --- a/RIGS/rigboard.py +++ b/RIGS/rigboard.py @@ -310,8 +310,10 @@ class EventAuthorise(generic.UpdateView): def get_context_data(self, **kwargs): context = super(EventAuthorise, self).get_context_data(**kwargs) context['event'] = self.event - context['tos_url'] = settings.TERMS_OF_HIRE_URL + context['page_title'] = "{}: {}".format(self.event.display_id, self.event.name) + if self.event.dry_hire: + context['page_title'] += ' Dry Hire' return context def get(self, request, *args, **kwargs): diff --git a/RIGS/templates/eventauthorisation.html b/RIGS/templates/eventauthorisation.html index 6375822d..896968ff 100644 --- a/RIGS/templates/eventauthorisation.html +++ b/RIGS/templates/eventauthorisation.html @@ -17,18 +17,7 @@ {% endblock %} -{% block title %} - {% if event.is_rig %}N{{ event.pk|stringformat:"05d" }}{% else %}{{ event.pk }}{% endif %} | {{ event.name }} -{% endblock %} - {% block content %} -