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

Prepare view. Advances BiscuIT-ng#89.

parent a3533ebc
No related branches found
No related tags found
1 merge request!10Prepare template. Advances BiscuIT-ng#89.
...@@ -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
......
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