{% extends "django_cradmin/viewhelpers/listbuilder/itemvalue/titledescription.django.html" %} {% load i18n %} {% load cradmin_tags %} {% load devilry_core_tags %} {% block below-title %}

{% for group in me.assignment_groups %} {% spaceless %} {# Nested s are just here for spaceless to not strip away spaces #} {% with candidates=group.candidates.all %} {# Use parenthesis around groups with more than one student #} {% if candidates|length > 1 %}({% endif %} {% devilry_multiple_candidates_short_displayname me.assignment candidates me.devilryrole %} {% if candidates|length > 1 %}){% endif %} {% endwith %} {% if not forloop.last %}, {% endif %} {% endspaceless %} {% endfor %}

{% endblock below-title %} {% block below-description %} {% trans "Move deadline" %} {% if me.num_corrected_assignment_groups > 0 %} {% trans "New attempt" %} {% endif %} {% trans "for all groups" %}
{% if me.num_assignment_groups > 1 %} {% trans "Move deadline" %} {% if me.num_corrected_assignment_groups > 0 %} {% trans "New attempt" %} {% endif %} {% trans "for some groups" %} {% endif %} {% endblock below-description %}