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
1c3ea3ec
Commit
1c3ea3ec
authored
5 months ago
by
permcu
Browse files
Options
Downloads
Patches
Plain Diff
Properly provide group wrapped in list in template
parent
e288bad8
No related branches found
No related tags found
1 merge request
!422
Resolve "Add export functionality to course book"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/tasks.py
+3
-0
3 additions, 0 deletions
aleksis/apps/alsijil/tasks.py
aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html
+1
-1
1 addition, 1 deletion
...s/alsijil/templates/alsijil/print/register_for_group.html
with
4 additions
and
1 deletion
aleksis/apps/alsijil/tasks.py
+
3
−
0
View file @
1c3ea3ec
...
@@ -125,6 +125,9 @@ def generate_full_register_printout(
...
@@ -125,6 +125,9 @@ def generate_full_register_printout(
),
),
)
)
if
include_teachers_and_subjects_table
:
group
.
as_list
=
[
group
]
if
include_coursebook
:
if
include_coursebook
:
group
.
documentations_by_day
=
{}
group
.
documentations_by_day
=
{}
documentations
=
documentations
.
order_by
(
"
datetime_start
"
).
prefetch_related
(
documentations
=
documentations
.
order_by
(
"
datetime_start
"
).
prefetch_related
(
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html
+
1
−
1
View file @
1c3ea3ec
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
{% if include_teachers_and_subjects_table %}
{% if include_teachers_and_subjects_table %}
{% if group.courses %}
{% if group.courses %}
<h4>
{% trans 'Teachers and lessons in group' %} {{ group.name }}
</h4>
<h4>
{% trans 'Teachers and lessons in group' %} {{ group.name }}
</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=
[
group
]
only %}
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group
.as_list
only %}
<div
class=
"page-break"
>
</div>
<div
class=
"page-break"
>
</div>
{% endif %}
{% endif %}
{% if group.child_groups %}
{% if group.child_groups %}
...
...
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