<iclass="material-icons green{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Datacomplete"%}"title="{% trans "Datacomplete"%}">check_circle</i>
<iclass="material-icons green{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Datacomplete"%}"title="{% trans "Datacomplete"%}">check_circle</i>
{% elif not register_object.period %}
{% period_to_time_start week register_object.raw_period_from_on_day as time_start %}
{% period_to_time_end week register_object.raw_period_to_on_day as time_end %}
{% if now_dt > time_end %}
<iclass="material-icons red{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Missingdata"%}"title="{% trans "Missingdata"%}">history</i>
{% elif now_dt > time_start and now_dt <time_end%}
<iclass="material-icons orange{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Pending"%}"title="{% trans "Pending"%}">more_horiz</i>
{% else %}
<iclass="material-icons purple{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Event"%}"title="{% trans "Event"%}">event</i>
{% endif %}
{% else %}
{% else %}
{% period_to_time_start week period.period as time_start %}
{% period_to_time_start week register_object.period as time_start %}
{% period_to_time_end week period.period as time_end %}
{% period_to_time_end week register_object.period as time_end %}
{% if period.get_substitution.cancelled %}
{% if register_object.get_substitution.cancelled %}
<iclass="material-icons red{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Lessoncancelled"%}"title="{% trans "Lessoncancelled"%}">cancel</i>
<iclass="material-icons red{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Lessoncancelled"%}"title="{% trans "Lessoncancelled"%}">cancel</i>
{% elif now_dt > time_end %}
{% elif now_dt > time_end %}
<iclass="material-icons red{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Missingdata"%}"title="{% trans "Missingdata"%}">history</i>
<iclass="material-icons red{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Missingdata"%}"title="{% trans "Missingdata"%}">history</i>
{% elif now_dt > time_start and now_dt <time_end%}
{% elif now_dt > time_start and now_dt <time_end%}
<iclass="material-icons orange{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Pending"%}"title="{% trans "Pending"%}">more_horiz</i>
<iclass="material-icons orange{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Pending"%}"title="{% trans "Pending"%}">more_horiz</i>
{% elif period.get_substitution %}
{% elif register_object.get_substitution %}
<iclass="material-icons orange{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Substitution"%}"title="{% trans "Substitution"%}">update</i>
<iclass="material-icons orange{% firstof color_suffix "-text"%}tooltipped{{css_class}}"data-position="bottom"data-tooltip="{% trans "Substitution"%}"title="{% trans "Substitution"%}">update</i>