{% extends "nobinobi_child/base.html" %} {% load i18n static get_verbose_names get_user_method %} {% block title %}{{ title }}{% endblock %} {% block extrastyle %} {% endblock %} {% block breadcrumb %} {{ block.super }} {% endblock %} {% block content_title %}{{ title }}{% endblock %} {% block content_card_title %}{% trans "Child card" %}{% endblock %} {% block content_card_body %} {% include "includes/messages.html" %}
{% if object.picture %} Image {{ object.full_name }} {% else %} {% blocktrans %}Image {{ object.full_name }} - default{% endblocktrans %} {% endif %}
{% trans "Full name" %} {{ object.full_name }}
{% get_verbose_field_name object "usual_name" %} {{ object.usual_name }}
{% get_verbose_field_name object "birth_date" %} {{ object.birth_date|default_if_none:"-" }}
{% get_verbose_field_name object "languages" %} {% for language in object.languages.all %}{{ language }}, {% endfor %}
{% get_verbose_field_name object "gender" %} {{ object.get_gender_display }}
{% get_verbose_field_name object "classroom" %} {{ object.get_now_classroom|default_if_none:"-" }}
{% get_verbose_field_name object "staff" %} {{ object.staff|default_if_none:"-" }}
{% get_verbose_field_name object "red_list" %} {% if object.red_list %}{{ object.red_list }}{% else %}-{% endif %}
{% get_verbose_field_name object "food_restrictions" %}
    {% for alim in object.food_restrictions.all %}
  • {{ alim }}
  • {% endfor %}
{% get_verbose_field_name object "allergies" %}
    {% for allergie in object.allergies.all %}
  • {{ allergie }}
  • {% endfor %}
{% trans "Paracetamol" %} {{ object.usage_paracetamol|yesno:_("Yes,No,No information provided") }}
{% get_verbose_field_name object "vaccination" %} {{ object.vaccination|yesno:_("Yes,No,No information provided") }}
{% get_verbose_field_name object "healthy_child" %} {{ object.healthy_child|yesno:_("Yes,No,No information provided") }}
{% get_verbose_field_name object "good_development" %} {{ object.good_development|yesno:_("Yes,No,No information provided") }}
{% get_verbose_field_name object "specific_problem" %} {{ object.specific_problem|default_if_none:_("No") }}
{% get_verbose_field_name object "autorisations" %} {% if object.autorisations %}{{ object.autorisations }}{% else %}{% translate "No information provided" %}{% endif %}
{% get_verbose_field_name object "comment" %} {% if object.comment %}{{ object.comment }}{% endif %}
{% if user.is_superuser or user|has_group:'direction' %} {% trans "Edit" %} {% endif %}
{# if child specific need #} {% if object.childspecificneed %}
{% trans "Child specific need" %}

{% get_verbose_field_name object.childspecificneed "ihp" %} : {% if object.childspecificneed.ihp %} {% else %} {% endif %}

{% get_verbose_field_name object.childspecificneed "problem" %} : {{ object.childspecificneed.problem }}

{% get_verbose_field_name object.childspecificneed "measure_take" %} : {{ object.childspecificneed.measure_take }}

{% if object.childspecificneed.attachment %} {% trans "Attachment" %} {% endif %}
{% endif %} {# if child with contact #} {% if object.childtocontact_set.all %}
{% trans "Contact (s) of the child" %}
{% for ctc in object.childtocontact_set.all %}
{% if ctc.contact.function %} {% endif %} {% if ctc.contact.organisation %} {% endif %} {% if display_contacts_address == True %} {% endif %}
{% trans "Full name" %} {{ ctc.contact.full_name }}
{% get_verbose_field_name ctc.contact "function" %} {{ ctc.contact.function }}
{% get_verbose_field_name ctc.contact "organisation" %} {{ ctc.contact.organisation }}
{% get_verbose_field_name ctc "link_with_child" %} {{ ctc.link_with_child }}
{% get_verbose_field_name ctc "order" %} {{ ctc.order }}
{% trans "Address" %}

{{ ctc.contact.address.street }}
{{ ctc.contact.address.zip }} {{ ctc.contact.address.city }}
{{ ctc.contact.address.country }}

{% trans "Email" %} {{ ctc.contact.email|default:"-" }}
{% trans "Phone" %} {{ ctc.contact.phone.as_international|default:"-" }}
{% trans "Mobile phone" %} {{ ctc.contact.mobile_phone.as_international|default:"-" }}
{% trans "Professional phone" %} {{ ctc.contact.professional_phone.as_international|default:"-" }}
{% trans "Contact authorized to pick up the child." %} {{ ctc.contact.authorized_pick_up_child|yesno:_("Yes,No")|default_if_none:"-" }}
{% trans "To contact if needed" %} {{ ctc.contact.to_contact_if_needed|yesno:_("Yes,No")|default_if_none:"-" }}
{% endfor %}
{% endif %} {% if object.childtoperiod_set.all %}
{% trans "Period(s)" %}
{% for period in periods %} {% endfor %} {% for weekday, value in table_periods_used.items %} {% for order, period in value.items %} {% endfor %} {% endfor %}
{{ period.get_weekday_display }} {{ period.name }}
{% if period %} {% else %} {% endif %}
{% endif %}
{% include "includes/modal.html" %} {% endblock %} {% block content_card_footer %}{% endblock %} {% block extrajs %} {% endblock %}