Skip to content
Snippets Groups Projects
Commit 45137fc7 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Use consistent page and browser title

parent 9ff6a370
No related branches found
No related tags found
1 merge request!5Resolve "Wizard should have consistent page and browser title"
Pipeline #56310 passed
...@@ -20,6 +20,7 @@ Changed ...@@ -20,6 +20,7 @@ Changed
~~~~~~~ ~~~~~~~
* Beautify event information card * Beautify event information card
* Use consistent page and browser title
Fixed Fixed
~~~~~ ~~~~~
......
{% extends "core/base.html" %} {% extends "core/base.html" %}
{% load material_form i18n %} {% load material_form i18n %}
{% block browser_title %}{{ browser_title }}{% endblock %} {% block browser_title %}{% trans "Registration" %}: {{ event.display_name }}{% endblock %}
{% block page_title %}{{ page_title }}{% endblock %} {% block page_title %}{% trans "Registration" %}: {{ event.display_name }}{% endblock %}
{% block content %} {% block content %}
<div class="row"> <div class="row">
......
...@@ -296,8 +296,6 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -296,8 +296,6 @@ class RegisterEventWizardView(SessionWizardView):
context["event"] = Event.objects.get(slug=self.kwargs["slug"]) context["event"] = Event.objects.get(slug=self.kwargs["slug"])
if self.steps.current == "email": if self.steps.current == "email":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Create e-mail address") context["info_title"] = _("Create e-mail address")
context["info_text"] = _( context["info_text"] = _(
"All participants need a personal e-mail address, which they check and read " "All participants need a personal e-mail address, which they check and read "
...@@ -307,16 +305,12 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -307,16 +305,12 @@ class RegisterEventWizardView(SessionWizardView):
"<a href='https://leopard.institute/pages/services.html'>https://leopard.institute/pages/services.html</a>." # noqa "<a href='https://leopard.institute/pages/services.html'>https://leopard.institute/pages/services.html</a>." # noqa
) )
elif self.steps.current == "register": elif self.steps.current == "register":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Event registration") context["info_title"] = _("Event registration")
context["info_text"] = _( context["info_text"] = _(
"First, please enter some basic information about yourself, and check " "First, please enter some basic information about yourself, and check "
"whether all information is correct." "whether all information is correct."
) )
elif self.steps.current == "contact_details": elif self.steps.current == "contact_details":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Contact information") context["info_title"] = _("Contact information")
context["info_text"] = _( context["info_text"] = _(
"Tell us how we can contact you. You will receive information about " "Tell us how we can contact you. You will receive information about "
...@@ -326,8 +320,6 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -326,8 +320,6 @@ class RegisterEventWizardView(SessionWizardView):
"and you will enter their e-mail address on the next page." "and you will enter their e-mail address on the next page."
) )
elif self.steps.current == "guardians": elif self.steps.current == "guardians":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Legal guardians / parents") context["info_title"] = _("Legal guardians / parents")
context["info_text"] = _( context["info_text"] = _(
"Tell us how we can reach your parents or other legal guardians. " "Tell us how we can reach your parents or other legal guardians. "
...@@ -336,16 +328,12 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -336,16 +328,12 @@ class RegisterEventWizardView(SessionWizardView):
"later as a comment." "later as a comment."
) )
elif self.steps.current == "additional": elif self.steps.current == "additional":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Additional registration information") context["info_title"] = _("Additional registration information")
context["info_text"] = _( context["info_text"] = _(
"Please answer the following questions as precisely as you can, so " "Please answer the following questions as precisely as you can, so "
"we can make sure your event attendance will be organised as wel las possible." "we can make sure your event attendance will be organised as wel las possible."
) )
elif self.steps.current == "financial": elif self.steps.current == "financial":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Payment") context["info_title"] = _("Payment")
context["info_text"] = _( context["info_text"] = _(
"By default, we will send you an invoice, which you or your parents " "By default, we will send you an invoice, which you or your parents "
...@@ -353,8 +341,6 @@ class RegisterEventWizardView(SessionWizardView): ...@@ -353,8 +341,6 @@ class RegisterEventWizardView(SessionWizardView):
"please make sure to enter exactly what your parents tell you." "please make sure to enter exactly what your parents tell you."
) )
elif self.steps.current == "consent": elif self.steps.current == "consent":
context["page_title"] = ""
context["browser_title"] = ""
context["info_title"] = _("Consent") context["info_title"] = _("Consent")
context["info_text"] = _( context["info_text"] = _(
"Lastly, please read the terms and conditions carefully, together " "Lastly, please read the terms and conditions carefully, together "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment