{% extends "base.html" %} {% load i18n staticfiles wger_extras django_bootstrap_breadcrumbs %} {% block title %}{{current_user|format_username}}{% endblock %} {% block breadcrumbs %} {% if current_user.userprofile.gym %} {{ block.super }} {% if perms.gym.manage_gyms %} {% breadcrumb "Gyms" "gym:gym:list" %} {% endif %} {% breadcrumb_raw current_user.userprofile.gym "gym:gym:user-list" current_user.userprofile.gym.pk %} {% breadcrumb_raw current_user|format_username "core:user:overview" current_user.pk %} {% endif %} {% endblock %} {% block content %} {% url 'core:user:trainer-login' current_user.pk as trainer_login %} {% if perms.gym.gym_trainer %}

{% trans "Workouts" %} ({% blocktrans with number=10 %}last {{ number }}{% endblocktrans %})

{% if perms.gym.gym_trainer %} {% trans "Overview" %} {% trans "Add workout" %} {% endif %} {% for workout in workouts %} {% empty %} {% endfor %}
{% trans "Date" %} {% trans "Description" %} {% trans "Number of logs (days)" %} {% trans "Last activity" %}
{{workout.workout.creation_date}} {{workout.workout}} {{workout.logs|default:'-/-'}} {{workout.last_log.date|default:'-/-'}}
{% trans "No workouts found." %}

{% trans "Log" %} ({% blocktrans with number=10 %}last {{ number }}{% endblocktrans %})

{% if perms.gym.gym_trainer %} {% trans "Calendar" %} {% endif %} {% for log in session %} {% empty %} {% endfor %}
{% trans "Date" %} {% trans "General impression" %} {% trans "Notes" %} {% trans "Time" %}
{{log.date}} {{log.get_impression_display}} {{log.notes|default:'-/-'|truncatewords:6}} {% if log.time_start and log.time_end %} {{log.time_start|time:"H:i"}} - {{log.time_end|time:"H:i"}} {% else %} -/- {% endif %}
{% trans "Nothing found" %}

{% trans "Weight" %} ({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})

{% if perms.gym.gym_trainer %} {% trans "Weight overview" %} {% endif %} {% for weight in weight_entries %} {% empty %} {% endfor %}
{% trans "Date" %} {% trans "Weight" %}
{{weight.date}} {{weight.weight}} {% trans_weight_unit 'kg' current_user %}
{% trans "Nothing found" %}

{% trans "Nutrition plans" %} ({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})

{% if perms.gym.gym_trainer %} {% trans "Overview" %} {% trans "Add nutrition plan" %} {% endif %} {% for nutrition_plan in nutrition_plans %} {% empty %} {% endfor %}
{% trans "Date" %} {% trans "Description" %} {% trans "Energy" %} {% trans "Protein" %} {% trans "Carbohydrates" %} {% trans "Fat" %}
{{nutrition_plan.creation_date}} {{nutrition_plan}} {{nutrition_plan.get_nutritional_values.total.energy|floatformat}} {% trans "kcal" %} {{nutrition_plan.get_nutritional_values.total.protein|floatformat}} {% trans_weight_unit 'g' current_user %} {{nutrition_plan.get_nutritional_values.total.carbohydrates|floatformat}} {% trans_weight_unit 'g' current_user %} {{nutrition_plan.get_nutritional_values.total.fat|floatformat}} {% trans_weight_unit 'g' current_user %}
{% trans "Nothing found" %}
{% endif %} {% endblock %} {% block sidebar %} {% if perms.gym.manage_gyms or perms.gym.manage_gym %}
{% endif %}

{% trans "Details" %}

{% if perms.gym.manage_gym or perms.gym.manage_gyms %} {% endif %}
{% trans "Nr." %} {{current_user.pk}}
{% trans "Name" %} {{current_user.first_name}}
{% trans "Last name" %} {{current_user.last_name}}
{% trans "Email" %} {% if current_user.email %} {{current_user.email}} {% else %} -/- {% endif %}
{% trans "Phone" %} {{ current_user.userprofile.address.phone|default:'-/-' }}
{% trans "Address" %} {% if not current_user.userprofile.address.zip_code and not current_user.userprofile.address.city and not current_user.userprofile.address.street%} -/- {% else %} {{current_user.userprofile.address.zip_code}} {{current_user.userprofile.address.city}}
{{current_user.userprofile.address.street}} {% endif %}
{% trans "Registered" %} {{current_user.date_joined}}
{% trans "Last login" %} {{current_user.last_login}}
{% trans "Status" %} {% if current_user.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{# #} {# Contract #} {# #} {% if perms.gym.add_contract %}

{% trans "Contracts" %} ({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})

{% for contract in contracts %} {% empty %} {% endfor %}
{{ contract }} {{ contract.date_start }} {{ contract.amount }}
{% trans "Nothing found" %}
{% endif %} {# #} {# Admin notes #} {# #} {% if perms.gym.add_adminusernote %}

{% trans "Notes" %} ({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})

{% for note in admin_notes %} {% empty %} {% endfor %}
{{ note.timestamp_created }} {{ note.note|truncatewords:10 }}
{% trans "Nothing found" %}
{% endif %} {# #} {# Documents #} {# #} {% if perms.gym.add_userdocument %}

{% trans "Documents" %} ({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})

{% for document in current_user.userdocument_member.all %} {% empty %} {% endfor %}
{{ document.timestamp_created }} {{ document.name }}
{% trans "Nothing found" %}
{% endif %} {# #} {# Gym configuration #} {# #} {% if perms.gym.change_gymuserconfig and current_user.gymuserconfig %}
{% endif %}

{% trans "Configuration" %}

{% trans 'Include in inactive overview' %} {% if current_user.gymuserconfig.include_inactive %} {% else %} {% endif %}
{% endblock %} {# #} {# Options #} {# #} {% block options %} {% if perms.gym.gym_trainer %} {% trans "Log in as this user" %} {% endif %} {% endblock %}