{% extends 'exp/base.html' %} {% load bootstrap3 %} {% load exp_extras %} {% block title %}{{ user.nickname |default:"Participant Detail" }}{% endblock %} {% block flash %} {% bootstrap_messages %} {% endblock %} {% block content %}

{{ user.identicon_html }} {% if user.nickname %} {{ user.nickname }}{% else %} Participant ID {{ user.id }} {% endif %}

{{ user.last_login|date:"n/d/Y"|default:"N/A" }}
{{ user.uuid }}

Children

{% for child in user.children.all %}

{{child.given_name}}

Birthday:
{{child.birthday|date:"n/d/Y"|default:"N/A"}}
Age:
{{child.birthday | timesince}}
Gender:
{{child.get_gender_display}}
Gestational Age at Birth:
{{child.age_at_birth|default:"No response"}}
Additional Info:
{{child.additional_information|default:"No response"}}
{% empty %}

No children profiles registered!

{% endfor %}

Latest Demographic Data

Country:
{{ demographics.country|default:"No Response" }}
State:
{{ demographics.state|default:"No Response" }}
Area description:
{{ demographics.density|default:"No Response" }}
Laguages Spoken at Home:
{{ demographics.languages_spoken_at_home|default:"No Response" }}
Number of Children:
{{ demographics.number_of_children|default:"No Response" }}
Children Birthdays:
{% for birthday in user.latest_demographics.child_birthdays %}{{birthday|date:"n/d/Y"|default:"N/A"}}{% if not forloop.last %}, {% endif %}{% empty %} No Response{% endfor %}
Number of Guardians:
{{ demographics.number_of_guardians|default:"No Response" }}
Explanation for Guardians:
{{ demographics.number_of_guardians_explanation|default:"No Response" }}
Race:
{{ demographics.race_identification|default:"No Response" }}
Age:
{{ demographics.age|default:"No Response" }}
Gender:
{{ demographics.gender|default:"No Response" }}
Education Level:
{{ demographics.education_level|default:"No Response" }}
Spouse's Education Level:
{{ demographics.spouse_education_level|default:"No Response" }}
Annual Income:
{{ demographics.annual_income|default:"No Response" }}
Children's Books at Home:
{{ demographics.number_of_books|default:"No Response" }}
Additional Comments:
{{ demographics.additional_comments|default:"No Response" }}

{% if user.nickname %} {{ user.nickname }}{% else %} Participant ID {{ user.id }}{% endif %}'s Studies

{% if studies %}
{% for study_dict in studies %}
Response ID: {{ study_dict.response.id }}
Child ID: {{ study_dict.response.child.id }}
{% if study_dict.completed %} Status: Completed {% else %} Status: In Progress {% endif %}
Date Modified: {{ study_dict.modified |date:"n/d/Y"|default:"N/A" }}
{% endfor %} {% else %}

{{ user.nickname }} has not participated in any studies yet!

{% endif %}
{% include 'studies/_paginator.html' with items=studies request=request %}
{% endblock %}