{% extends "nobinobi_child/base.html" %} {% load i18n static crispy_forms_tags %} {% block title %}{{ title }} - {{ now }}{% endblock %} {% block extrastyle %} {% endblock %} {% block content_title_block %}

{{ title }}

{{ now|date:"SHORT_DATE_FORMAT" }}

{% endblock %} {% block breadcrumb %} {{ block.super }} {% endblock %} {% block content_card %} {% include "includes/messages.html" %} {% for classroom, value in dict_classrooms.items %} {% if value.type == "creche" %} {% with value.dict_table_child as dict_table_child %} {% with value.dict_table as dict_table %}

{{ classroom }}

{% for day in dict_table.values %} {% endfor %} {% for day in dict_table.values %} {% for period in day.periods.values %} {% endfor %} {% endfor %} {% for child, day in dict_table_child.items %} {% for day_value in day.values %} {% for period in day_value.periods.values %} {% endfor %} {% endfor %} {% endfor %} {% for day in dict_table.values %} {% for period in day.periods.values %} {% endfor %} {% endfor %} {% for day in dict_table.values %} {% for period in day.periods.values %} {% endfor %} {% endfor %}
{{ day.datetime|date:"SHORT_DATE_FORMAT" }}
{{ period.name }}
{{ child.usual_name }} {% if period.birthday %} {% endif %} {% if child.childspecificneed %} {% endif %} {% if display_age_group_in_presence %} ({{ child.age_group.name.0 }}) {% endif %} {% if period.absence %} ({{ period.absence.type }}){% endif %}
{% trans "Expected" %}
{{ period.expected }}
{% trans "Present" %}
{{ period.present }}
{% endwith %} {% endwith %} {% elif value.type == "kindergarten" %} {% with value.dict_table_child as dict_table_child %} {% with value.dict_table as dict_table %}

{{ classroom }}

{% for day in dict_table.values %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "morning" %} {% for period in order.values %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% for child, day in dict_table_child.items %} {% if day.type.morning %} {% for day_value in day.values %} {% for period_type, order in day_value.periods.items %} {% for period in order.values %} {% if period_type == "morning" %} {% if period.dayoff %} {% elif not period.status %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "morning" %} {% for period in order.values %} {% if period.dayoff %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "morning" %} {% for period in order.values %} {% if period.dayoff %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %}
{{ day.datetime|date:"SHORT_DATE_FORMAT" }}
{{ period.name }}
{% trans "Day off" %}  {{ child.usual_name }} {% if period.birthday %} {% endif %} {% if child.childspecificneed %} {% endif %} {% if display_age_group_in_presence %} ({{ child.age_group.name.0 }}) {% endif %} {% if period.absence %} ({{ period.absence.type }}){% endif %}
{% trans "Expected" %}
-{{ period.expected }}
{% trans "Present" %}
-{{ period.present }}
{% for day in dict_table.values %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "afternoon" %} {% for period in order.values %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% for child, day in dict_table_child.items %} {% if day.type.afternoon %} {% for day_value in day.values %} {% for period_type, order in day_value.periods.items %} {% for period in order.values %} {% if period_type == "afternoon" %} {% if period.dayoff %} {% elif not period.status %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "afternoon" %} {% for period in order.values %} {% if period.dayoff %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% for day in dict_table.values %} {% for type, order in day.periods.items %} {% if type == "afternoon" %} {% for period in order.values %} {% if period.dayoff %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endfor %}
{{ day.datetime|date:"SHORT_DATE_FORMAT" }}
{{ period.name }}
{% trans "Day off" %}  {{ child.usual_name }} {% if period.birthday %} {% endif %} {% if child.childspecificneed %} {% endif %} {% if display_age_group_in_presence %} ({{ child.age_group.name.0 }}) {% endif %} {% if period.absence %} ({{ period.absence.type }}){% endif %}
{% trans "Expected" %}
-{{ period.expected }}
{% trans "Present" %}
-{{ period.present }}
{% endwith %} {% endwith %} {% endif %} {% endfor %} {% endblock %} {% block extrajs %} {% endblock %}