{% load tex_extras %}

\documentclass[a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage{amssymb}
\usepackage{cmbright}
\usepackage{graphicx}
\usepackage{textpos}
\usepackage[colorlinks]{hyperref}
\usepackage{float}
\usepackage[margin=1cm]{geometry}

\renewcommand{\arraystretch}{1.5}

\newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}
\begin{document}

% HEADLINE
{\noindent\LARGE{Teilnehmer*innenübersicht}}\\[1mm]
\textit{Erstellt: {{ creation_date }} }\\

% DESCRIPTION
\begin{table}[H]
    \begin{tabular}{ll}
        \large Aktivität: & {{ memberlist.name|esc_all }} \\
        \large Gruppe: & {{ memberlist.groups_str|esc_all }} \\
        \large Ort / Stützpunkt: & {{ memberlist.place|esc_all }} \\
        \large ggf. Ziel: & {{ memberlist.destination|esc_all }} \\
        \large Zeitraum: & {{ memberlist.time_period_str|esc_all }} \\
    \end{tabular}
\end{table}

\begin{table}[H]
	\begin{tabularx}{\textwidth}{@{} l l Y @{}}
    \toprule
	\textbf{Name} & \textbf{Fähigkeiten (max. 100)} & \textbf{Kommentare} \\
    \midrule
    {% for p in people %}
        {{ p.name|esc_all }} & {{ p.qualities|esc_all }} & {{ p.comments|esc_all }} \\
    {% endfor %}
    \bottomrule
  \end{tabularx}
\end{table}

\noindent\large Fähigkeiten der Gruppe\\
\begin{table}[H]
    \begin{tabular*}{1\linewidth}{@{\extracolsep{\fill}}llll}
	\toprule
    \textbf{Name} & \textbf{Durchschnitt} & \textbf{Minimum} & \textbf{Maximum} \\
	\midrule
    {% for skill in skills %}
        {{ skill.name|esc_all }} & {{ skill.skill_avg|esc_all }} & {{ skill.skill_min|esc_all }} & {{ skill.skill_max|esc_all }} \\
    {% endfor %}
	\bottomrule
  \end{tabular*}
\end{table}

\vspace{1cm}

\end{document}
