Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
a6f64864
Verified
Commit
a6f64864
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Prepare view. Advances BiscuIT-ng#89.
parent
a3533ebc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
Prepare template. Advances BiscuIT-ng#89.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biscuit/apps/alsijil/views.py
+5
-2
5 additions, 2 deletions
biscuit/apps/alsijil/views.py
with
5 additions
and
2 deletions
biscuit/apps/alsijil/views.py
+
5
−
2
View file @
a6f64864
...
@@ -147,9 +147,12 @@ def group_week(request: HttpRequest, week: Optional[int] = None) -> HttpResponse
...
@@ -147,9 +147,12 @@ def group_week(request: HttpRequest, week: Optional[int] = None) -> HttpResponse
# Add a form to filter the view
# Add a form to filter the view
select_form
=
SelectForm
(
request
.
GET
or
None
)
select_form
=
SelectForm
(
request
.
GET
or
None
)
context
[
'
current_head
'
]
=
_
(
'
Week (%s %s - %s)
'
)
%
(
wanted_week
,
week_start
,
week_end
)
context
[
'
week
'
]
=
wanted_week
context
[
'
week
'
]
=
wanted_week
context
[
'
week
_next
'
]
=
wanted_week
+
1
context
[
'
url
_next
'
]
=
'
%s?%s
'
%
(
redirect
(
'
group_week_by_week
'
,
week
=
wanted_week
+
1
),
request
.
GET
.
urlencode
())
context
[
'
week
_prev
'
]
=
wanted_week
-
1
context
[
'
url
_prev
'
]
=
'
%s?%s
'
%
(
redirect
(
'
group_week_by_week
'
,
week
=
wanted_week
-
1
),
request
.
GET
.
urlencode
())
context
[
'
group
'
]
=
group
context
[
'
group
'
]
=
group
context
[
'
lesson_periods
'
]
=
lesson_periods
context
[
'
lesson_periods
'
]
=
lesson_periods
context
[
'
persons
'
]
=
persons
context
[
'
persons
'
]
=
persons
...
...
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