Skip to content
Snippets Groups Projects
Verified Commit 2fe16959 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add attendance list.

parent 7101be98
No related branches found
No related tags found
No related merge requests found
{% 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 %}
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
\hline\rowfont\bfseries Foto & Nachname & Vorname & Geburts\-datum & Benutzer & Schule & Klasse \\\hline \hline\rowfont\bfseries Foto & Nachname & Vorname & Geburts\-datum & Benutzer & Schule & Klasse \\\hline
\endhead \endhead
{% for person in persons|dictsort:"sn" %} {% 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 %} {% endfor %}
\end{longtabu} \end{longtabu}
\end{document} \end{document}
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
· ·
PDF ( PDF (
<a href="{% url 'persons_by_group' group.cn %}?format=pdf&amp;template=list_participants">{% blocktrans %}Teilnehmerliste{% endblocktrans %}</a> <a href="{% url 'persons_by_group' group.cn %}?format=pdf&amp;template=list_participants">{% blocktrans %}Teilnehmerliste{% endblocktrans %}</a>
&middot;
<a href="{% url 'persons_by_group' group.cn %}?format=pdf&amp;template=list_attendance">{% blocktrans %}Anwesenheitsliste{% endblocktrans %}</a>
) )
</p> </p>
......
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