{{ heading }}

{% if studygroups is not empty %}
{% if not singlevariants %} {% endif %} {% for sg in studygroups %} {% for sg_v_index, sg_v in sg['variants'] %} {% if not singlevariants %} {% endfor %} {% endfor %}
Studiengruppen-IDVarianteNutzernamen Zugewiesene Trainings Zeiltich zugewiesene Trainings Abhängig zugewiesene Trainings
{{ sg['studygroup_name'] }}{{ sg_v_index+1 }} {% endif %} {% for user in sg_v['user'] %} {{ user.display_name }}{% if not loop.last %},{% endif %} {% endfor %} {% for t in sg_v['trainings'] %} {{ t.title }}{% if not loop.last %},{% endif %} {% else %} - {% endfor %} {% for t_date in sg_v['datetrainings'] %} {{ alltrainings[t_date.getTrainingId()].title }} ({{ t_date.assignDatetime|date("d.m.Y") }}){% if not loop.last %},{% endif %} {% else %} - {% endfor %} {% for t_dep in sg_v['deptrainings'] %} {{ alltrainings[t_dep.getTrainingId()].title }} ({% for dep_tr in t_dep. getDependentTrainingsJsonDecoded() %}{{ alltrainings[dep_tr].title }}{% if not loop.last and loop.revindex != 2 %}, {% endif %}{% if loop.revindex == 2 %}{% if t_dep.getDependentCondition() == 'or' %} oder {% elseif t_dep.getDependentCondition() == 'and' %} und {% endif %}{% endif %}{% endfor %}){% if not loop.last %},{% endif %} {% else %} - {% endfor %}
{% else %} {% endif %}