Skip to content

Commit

Permalink
Add speaker clashes errors to the admin view
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Muller committed Nov 2, 2023
1 parent 15b3b45 commit 753f7cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wafer/schedule/templates/admin/scheduleitem_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ <h3>{% trans "Venues assigned on days they are not available" %}</h3>
{% endfor %}
</ul>
{% endif %}
{% if errors.speaker_clashes %}
<h3>{% trans "Common speaker in simultaneous schedule items" %}</h3>
<ul>
{% for slot_speaker, items in errors.speaker_clashes %}
<li>{{ slot_speaker.0 }} at {{ slot_speaker.0.get_start_time }} with speaker {{ slot_speaker.1.userprofile.display_name }} --
{% for item in items %}
<b>{{ item.get_desc|escape }}</b>,
{% endfor %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
</div>
{% endif %}
Expand Down

0 comments on commit 753f7cb

Please sign in to comment.