20.sql = SELECT position, member_type, head, leitung, title, firstname, lastname, university, department, address, mail FROM committee WHERE student='...' 20.twig = '

PhD Committee

{% for row in context|sort %} {% for value in row|slice(4,3) %} {% endfor %} {% endfor %}
{{ value }} {% if row.head and row.leitung %} (Vorsitz und Leitung) {% elseif row.head %} (Vorsitz) {% elseif row.leitung %} (Leitung) {% endif %} {% if row.member_type == 1 %} confer PhD {% elseif row.university %} external {% endif %} {% if row.mail %} {{ row.mail }} {% endif %}