{% extends "members/tex_base.tex" %}
{% load static common tex_extras %}

{% block title %}Teilnehmer*innenübersicht{% endblock %}

{% block content %}

% DESCRIPTION
\begin{table}[H]
    \begin{tabular}{ll}
        \large Aktivität: & {{ memberlist.name|esc_all }} \\
        \large Ordnungsnummer & {{ memberlist.code|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{tabularx}{.97\linewidth}{lXXX}
    \toprule
	\# & \textbf{Name} & \textbf{Fähigkeiten (max. 100)} & \textbf{Kommentare} \\
    \midrule
    \endhead
    \bottomrule
    \endfoot

    {% for p in people %}
        {{ forloop.counter }} & {{ p.name|esc_all }} & {{ p.qualities|esc_all }} & {{ p.comments|esc_all }} \\
    {% endfor %}
\end{tabularx}

\noindent{\large Fähigkeiten der Gruppe}\\
\begin{tabularx}{.97\linewidth}{Xlll}
	\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{tabularx}

{% endblock %}
