{% load i18n material_form_internal material_form time_helpers rules %} {% if seating_plan %}
{% blocktrans with group=seating_plan.group room=seating_plan.room %}Seating plan for {{ group }} in {{ room }}{% endblocktrans %}
{% if seating_plan_parent %}
{% blocktrans with child_group=first_group %} This seating plan is taken from the parent group of {{ child_group }}. If you want, you can take it over for your group and then customize it. {% endblocktrans %}
{% endif %}
{% has_perm "stoelindeling.edit_seatingplan_rule" user seating_plan as can_edit %} {% has_perm "stoelindeling.copy_seatingplan_for_group_rule" user first_group as can_copy %} {% if can_edit %} {% trans "Edit seating plan" %} {% endif %} {% if can_copy and seating_plan_parent %} {% trans "Copy plan and edit" %} {% endif %}
{% include "stoelindeling/seating_plan/render.html" %}
{% else %}
{% trans "There is no seating plan for this lesson." %}
{% has_perm "stoelindeling.create_seatingplan_rule" user first_group as can_add %} {% if can_add %} {% endif %} {% for parent_group in first_group.parent_groups.all %} {% has_perm "stoelindeling.create_seatingplan_rule" user parent_group as can_add %} {% if can_add %} {% endif %} {% endfor %}
{% endif %}