Skip to content

Commit 753f7cb

Browse files
author
Neil Muller
committed
Add speaker clashes errors to the admin view
1 parent 15b3b45 commit 753f7cb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

wafer/schedule/templates/admin/scheduleitem_list.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ <h3>{% trans "Venues assigned on days they are not available" %}</h3>
5757
{% endfor %}
5858
</ul>
5959
{% endif %}
60+
{% if errors.speaker_clashes %}
61+
<h3>{% trans "Common speaker in simultaneous schedule items" %}</h3>
62+
<ul>
63+
{% for slot_speaker, items in errors.speaker_clashes %}
64+
<li>{{ slot_speaker.0 }} at {{ slot_speaker.0.get_start_time }} with speaker {{ slot_speaker.1.userprofile.display_name }} --
65+
{% for item in items %}
66+
<b>{{ item.get_desc|escape }}</b>,
67+
{% endfor %}
68+
</li>
69+
{% endfor %}
70+
</ul>
71+
{% endif %}
6072
{% endblock %}
6173
</div>
6274
{% endif %}

0 commit comments

Comments
 (0)