diff --git a/ticdesk_org/templates/ticdesk_org/list_attendance.tex b/ticdesk_org/templates/ticdesk_org/list_attendance.tex new file mode 100644 index 0000000000000000000000000000000000000000..34c609db18d44db93552248e380961e39b8bfd27 --- /dev/null +++ b/ticdesk_org/templates/ticdesk_org/list_attendance.tex @@ -0,0 +1,23 @@ +{% load i18n latex_helpers %} +{% autoescape off %} +\documentclass{teckidsproto} + +\usepackage{tabu} +\usepackage{longtable} +\geometry{landscape} + +\usepackage[export]{adjustbox} + +\keineseitenzahlenbeginn +\begin{document} + \teckidshead{ {{ group.display_name }} \dash {% blocktrans %}Anwesenheitsliste{% endblocktrans %} } + + \begin{longtabu} to \linewidth {|l|l|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|X|} +\hline\rowfont\bfseries Nachname & Vorname & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & \\[1cm]\hline +\endhead +{% for person in persons|dictsort:"sn" %} +\nohyphens{ {{ person.sn }} } & \nohyphens{ {{ person.given_name }} } & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & \\\hline +{% endfor %} + \end{longtabu} +\end{document} +{% endautoescape %} diff --git a/ticdesk_org/templates/ticdesk_org/list_participants.tex b/ticdesk_org/templates/ticdesk_org/list_participants.tex index f8654be6d348c68bd6c98dd01067d4056fa61343..e35709d1f2dd0b6e2d59939ccb429937c7dcac1a 100644 --- a/ticdesk_org/templates/ticdesk_org/list_participants.tex +++ b/ticdesk_org/templates/ticdesk_org/list_participants.tex @@ -16,7 +16,7 @@ \hline\rowfont\bfseries Foto & Nachname & Vorname & Geburts\-datum & Benutzer & Schule & Klasse \\\hline \endhead {% for person in persons|dictsort:"sn" %} -\parbox[c][3cm]{2.25cm}{\includegraphics[width=2.24cm,height=2.99cm,keepaspectratio=true,valign=c]{{ person.jpeg_photo__rel|embrace }}} & \nohyphens{ {{ person.sn }} } & \nohyphens{ {{ person.given_name }} } & \nohyphens{ {{ person.date_of_birth }} } & \texttt{ {{ person.uid }} } & \nohyphens{ {{ person.o }}, {{ person.l}} & {{ person.ou }} } \\\hline +\parbox[c][3cm]{2.25cm}{\includegraphics[width=2.24cm,height=2.99cm,keepaspectratio=true,valign=c]{{ person.jpeg_photo__rel|embrace }}} & \nohyphens{ {{ person.sn }} } & \nohyphens{ {{ person.given_name }} } & \nohyphens{ {{ person.date_of_birth }} } & \texttt{ {{ person.uid }} } & \nohyphens{ {{ person.o }} }, \nohyphens{ {{ person.l}} } & \nohyphens{ {{ person.ou }} } \\\hline {% endfor %} \end{longtabu} \end{document} diff --git a/ticdesk_org/templates/ticdesk_org/persons.html b/ticdesk_org/templates/ticdesk_org/persons.html index 1dcd8c77473fc11222039dd959291c0013ff4e3e..86547413d8c09bc6d54b334d36d0be78c63e9b46 100644 --- a/ticdesk_org/templates/ticdesk_org/persons.html +++ b/ticdesk_org/templates/ticdesk_org/persons.html @@ -20,6 +20,8 @@ · PDF ( <a href="{% url 'persons_by_group' group.cn %}?format=pdf&template=list_participants">{% blocktrans %}Teilnehmerliste{% endblocktrans %}</a> + · + <a href="{% url 'persons_by_group' group.cn %}?format=pdf&template=list_attendance">{% blocktrans %}Anwesenheitsliste{% endblocktrans %}</a> ) </p>