{% extends "admin/change_list.html" %}
{% load i18n %}
{# This plugs our extra validation information into the end of the content
block #}
{% block content %}
{{ block.super }}
{% if errors %}
{% trans "Errors in the schedule" %}
{% block displayerrors %}
{% if errors.clashes %}
{% trans "Clashes" %}
{% for pos, items in errors.clashes %}
{{ pos.0 }} at {{ items.0.get_start_time }} --
{% for item in items %}
{{ item.get_desc|escape }},
{% endfor %}
{% endfor %}
{% endif %}
{% if errors.validation %}
{% trans "Validation errors" %}
{% for item in errors.validation %}
{{ item }}
{% endfor %}
{% endif %}
{% if errors.non_contiguous %}
{% trans "Items in the schedule with non-contiguous slots" %}
{% for item in errors.non_contiguous %}
{{ item }}
{% endfor %}
{% endif %}
{% if errors.duplicates %}
{% trans "Duplicates in the schedule" %}
{% for item in errors.duplicates %}
{{ item }}
{% endfor %}
{% endif %}
{% if errors.venues %}
{% trans "Venues assigned on days they are not available" %}
{% for venue, items in errors.venues %}
{{ venue }} at {{ items.0.get_start_time }} --
{% for item in items %}
{{ item.get_desc|escape }},
{% endfor %}