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

Embrace embrace.

parent e728f2ea
No related branches found
No related tags found
No related merge requests found
...@@ -4,5 +4,4 @@ register = template.Library() ...@@ -4,5 +4,4 @@ register = template.Library()
@register.filter @register.filter
def embrace(value): def embrace(value):
# FIXME find a better solution
return '{%s}' % value return '{%s}' % value
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
\keineseitenzahlenbeginn \keineseitenzahlenbeginn
\begin{document} \begin{document}
\teckidshead{ {{ group.display_name }} \dash {% blocktrans %}Anwesenheitsliste{% endblocktrans %} } \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|} \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 \hline\rowfont\bfseries Nachname & Vorname & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & \\[1cm]\hline
\endhead \endhead
{% for person in persons|dictsort:"sn" %} {% for person in persons|dictsort:"sn" %}
\nohyphens{ {{ person.sn }} } & \nohyphens{ {{ person.given_name }} } & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & \\\hline \nohyphens{{ person.sn|embrace }} & \nohyphens{{ person.given_name|embrace }} & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & \\\hline
{% endfor %} {% endfor %}
\end{longtabu} \end{longtabu}
\end{document} \end{document}
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
\keineseitenzahlenbeginn \keineseitenzahlenbeginn
\begin{document} \begin{document}
\teckidshead{ {{ group.display_name }} \dash {% blocktrans %}Teilnehmerliste{% endblocktrans %} } \teckidshead{ {{ group.display_name }} \dash {% blocktrans %}Teilnehmerliste{% endblocktrans %}}
\begin{longtabu} to \linewidth {|@{}c@{}|l|l|l|l|l|l|} \begin{longtabu} to \linewidth {|@{}c@{}|l|l|l|l|l|l|}
\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 }} }, \nohyphens{ {{ person.l}} } & \nohyphens{ {{ 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|embrace }} & \nohyphens{{ person.given_name|embrace }} & \nohyphens{{ person.date_of_birth|embrace }} & \texttt{{ person.uid|embrace }} & \nohyphens{{ person.o|embrace }}, \nohyphens{{ person.l|embrace }} & \nohyphens{{ person.ou|embrace }} \\\hline
{% endfor %} {% endfor %}
\end{longtabu} \end{longtabu}
\end{document} \end{document}
......
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