Skip to content
Snippets Groups Projects
Commit 49587a2a authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Some design improvements:

- Arrange print icon right
- Add line break for header information in LaTeX
- Show one-hour absences with only one number (e.g. 1.) instead of two (e. g. 1.-1.)
- Add dots to lesson numbers in absences
parent 9f891651
No related branches found
No related tags found
No related merge requests found
......@@ -281,9 +281,12 @@ def get_header_information(subs, date):
if absence.is_whole_day:
# Teacher is missing the whole day
elements.append("{}".format(absence.teacher.shortcode))
elif absence.from_lesson == absence.to_lesson:
elements.append("{} ({}.)".format(absence.teacher.shortcode, absence.from_lesson))
else:
# Teacher is only missing a part of day
elements.append("{} ({}-{})".format(absence.teacher.shortcode, absence.from_lesson, absence.to_lesson))
elements.append(
"{} ({}.-{}.)".format(absence.teacher.shortcode, absence.from_lesson, absence.to_lesson))
joined = ", ".join(elements)
info.rows.append(("Abwesende Lehrkräfte", joined))
......
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