Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Paweljong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Projekt Hack-n-Fun
AlekSIS-App-Paweljong
Commits
45137fc7
Commit
45137fc7
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Use consistent page and browser title
parent
9ff6a370
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Resolve "Wizard should have consistent page and browser title"
Pipeline
#56310
passed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/apps/paweljong/templates/paweljong/event/register_wizard.html
+2
-2
2 additions, 2 deletions
.../paweljong/templates/paweljong/event/register_wizard.html
aleksis/apps/paweljong/views.py
+0
-14
0 additions, 14 deletions
aleksis/apps/paweljong/views.py
with
3 additions
and
16 deletions
CHANGELOG.rst
+
1
−
0
View file @
45137fc7
...
...
@@ -20,6 +20,7 @@ Changed
~~~~~~~
* Beautify event information card
* Use consistent page and browser title
Fixed
~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/paweljong/templates/paweljong/event/register_wizard.html
+
2
−
2
View file @
45137fc7
{% extends "core/base.html" %}
{% load material_form i18n %}
{% block browser_title %}{
{ browser_titl
e }}{% endblock %}
{% block page_title %}{
{ page_titl
e }}{% endblock %}
{% block browser_title %}{
% trans "Registration" %}: {{ event.display_nam
e }}{% endblock %}
{% block page_title %}{
% trans "Registration" %}: {{ event.display_nam
e }}{% endblock %}
{% block content %}
<div
class=
"row"
>
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/paweljong/views.py
+
0
−
14
View file @
45137fc7
...
...
@@ -296,8 +296,6 @@ class RegisterEventWizardView(SessionWizardView):
context
[
"
event
"
]
=
Event
.
objects
.
get
(
slug
=
self
.
kwargs
[
"
slug
"
])
if
self
.
steps
.
current
==
"
email
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Create e-mail address
"
)
context
[
"
info_text
"
]
=
_
(
"
All participants need a personal e-mail address, which they check and read
"
...
...
@@ -307,16 +305,12 @@ class RegisterEventWizardView(SessionWizardView):
"
<a href=
'
https://leopard.institute/pages/services.html
'
>https://leopard.institute/pages/services.html</a>.
"
# noqa
)
elif
self
.
steps
.
current
==
"
register
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Event registration
"
)
context
[
"
info_text
"
]
=
_
(
"
First, please enter some basic information about yourself, and check
"
"
whether all information is correct.
"
)
elif
self
.
steps
.
current
==
"
contact_details
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Contact information
"
)
context
[
"
info_text
"
]
=
_
(
"
Tell us how we can contact you. You will receive information about
"
...
...
@@ -326,8 +320,6 @@ class RegisterEventWizardView(SessionWizardView):
"
and you will enter their e-mail address on the next page.
"
)
elif
self
.
steps
.
current
==
"
guardians
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Legal guardians / parents
"
)
context
[
"
info_text
"
]
=
_
(
"
Tell us how we can reach your parents or other legal guardians.
"
...
...
@@ -336,16 +328,12 @@ class RegisterEventWizardView(SessionWizardView):
"
later as a comment.
"
)
elif
self
.
steps
.
current
==
"
additional
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Additional registration information
"
)
context
[
"
info_text
"
]
=
_
(
"
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.
"
)
elif
self
.
steps
.
current
==
"
financial
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Payment
"
)
context
[
"
info_text
"
]
=
_
(
"
By default, we will send you an invoice, which you or your parents
"
...
...
@@ -353,8 +341,6 @@ class RegisterEventWizardView(SessionWizardView):
"
please make sure to enter exactly what your parents tell you.
"
)
elif
self
.
steps
.
current
==
"
consent
"
:
context
[
"
page_title
"
]
=
""
context
[
"
browser_title
"
]
=
""
context
[
"
info_title
"
]
=
_
(
"
Consent
"
)
context
[
"
info_text
"
]
=
_
(
"
Lastly, please read the terms and conditions carefully, together
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment