Skip to content
Snippets Groups Projects
Verified Commit a763cc29 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use icon warning for "Missing data" to avoid a clash with "Previous lesson"

parent 7acd4035
No related branches found
No related tags found
1 merge request!235Resolve "Improve design of detail view for one register object"
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{% endif %} {% endif %}
{% if now_dt > time_end %} {% if now_dt > time_end %}
{% include "alsijil/partials/lesson_status_icon.html" with text=_("Missing data") icon="history" color="red" %} {% include "alsijil/partials/lesson_status_icon.html" with text=_("Missing data") icon="warning" color="red" %}
{% elif now_dt > time_start and now_dt < time_end %} {% elif now_dt > time_start and now_dt < time_end %}
{% include "alsijil/partials/lesson_status_icon.html" with text=_("Pending") icon="more_horiz" color="orange" %} {% include "alsijil/partials/lesson_status_icon.html" with text=_("Pending") icon="more_horiz" color="orange" %}
{% else %} {% else %}
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
{% if substitution.cancelled or register_object.get_substitution.cancelled %} {% if substitution.cancelled or register_object.get_substitution.cancelled %}
{% include "alsijil/partials/lesson_status_icon.html" with text=_("Lesson cancelled") icon="cancel" color="red" %} {% include "alsijil/partials/lesson_status_icon.html" with text=_("Lesson cancelled") icon="cancel" color="red" %}
{% elif now_dt > time_end %} {% elif now_dt > time_end %}
{% include "alsijil/partials/lesson_status_icon.html" with text=_("Missing data") icon="history" color="red" %} {% include "alsijil/partials/lesson_status_icon.html" with text=_("Missing data") icon="warning" color="red" %}
{% elif now_dt > time_start and now_dt < time_end %} {% elif now_dt > time_start and now_dt < time_end %}
{% include "alsijil/partials/lesson_status_icon.html" with text=_("Pending") icon="more_horiz" color="orange" %} {% include "alsijil/partials/lesson_status_icon.html" with text=_("Pending") icon="more_horiz" color="orange" %}
{% elif substitution or register_object.get_substitution %} {% elif substitution or register_object.get_substitution %}
......
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