Skip to content
Snippets Groups Projects
Verified Commit b41fc9f8 authored by Lloyd Meins's avatar Lloyd Meins :thought_balloon:
Browse files

Display warning if no timetable exists in one category

parent 109ed213
No related branches found
No related tags found
1 merge request!231Resolve "Show notification if no timetable exists in one category"
Pipeline #49305 passed
......@@ -21,6 +21,7 @@ Added
~~~~~
* Add support for automatically generating PDF files of substitutions plans on data changes.
* Display warning if no timetable exists in one category.
Changed
~~~~~~~
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment