{% extends "trix_course/course_admin.django.html" %} {% load i18n %} {% block title %}{% trans "Add course admin" %}{% endblock %} {% block course-header-text %}

Add course administrator to {{ course }}

{% endblock %} {% block course-header-buttons %} {% trans "Back" %} {% endblock %} {% block course-table-header %} {% trans "Email" %} {% endblock %} {% block course-table-body %} {% for student in object_list %} {{ student.displayname }} {% if student.is_superuser %} {% trans "Superuser" %} {% endif %}
{% csrf_token %} {% if student not in course.admins.all %} {% endif %} {% if user.is_superuser %} {% if student not in course.owner.all %} {% endif %} {% endif %}
{% endfor %} {% endblock %} {% block course-footer %}
{% csrf_token %} {% if user.is_superuser %} {% endif %}
{% endblock %}