Skip to content
Snippets Groups Projects

Resolve "Show notification if no timetable exists in one category"

Files
2
@@ -21,6 +21,9 @@
href="{% url 'timetable' 'teacher' teacher.pk %}">
{{ teacher.short_name }}
</a>
{% empty %}
{% trans 'No teachers timetables available.' as message %}
{% include 'components/msgbox.html' with status='missing_teachers' icon='warning' msg=message %}
{% endfor %}
</div>
@@ -32,6 +35,9 @@
href="{% url 'timetable' 'group' class.pk %}">
{{ class.short_name }}
</a>
{% empty %}
{% trans 'No group timetables available.' as message %}
{% include 'components/msgbox.html' with status='missing_groups' icon='warning' msg=message %}
{% endfor %}
</div>
@@ -43,6 +49,9 @@
href="{% url 'timetable' 'room' room.pk %}">
{{ room.short_name }}
</a>
{% empty %}
{% trans 'No room timetables available.' as message %}
{% include 'components/msgbox.html' with status='missing_rooms' icon='warning' msg=message %}
{% endfor %}
</div>
</div>
Loading