{% extends "base.html" %} {% load i18n static 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 %}
{% translate "Date" %} | {% translate "Description" %} | {% translate "Number of logs (days)" %} | {% translate "Last activity" %} |
---|---|---|---|
{{workout.workout.creation_date}} | {{workout.workout}} | {{workout.logs|default:'-/-'}} | {{workout.last_log.date|default:'-/-'}} |
{% translate "No workouts found." %} |
{% translate "Date" %} | {% translate "General impression" %} | {% translate "Notes" %} | {% translate "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 %} |
{% translate "Nothing found" %} |
{% translate "Date" %} | {% translate "Weight" %} | |
---|---|---|
{{weight.date}} | {{weight.weight}} {% trans_weight_unit 'kg' current_user %} | |
{% translate "Nothing found" %} |
{% translate "Date" %} | {% translate "Description" %} | {% translate "Energy" %} | {% translate "Protein" %} | {% translate "Carbohydrates" %} | {% translate "Fat" %} |
---|---|---|---|---|---|
{{nutrition_plan.creation_date}} | {{nutrition_plan}} | {{nutrition_plan.get_nutritional_values.total.energy|floatformat}} {% translate "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 %} |
{% translate "Nothing found" %} |
{% translate "Nr." %} | {{current_user.pk}} |
{% translate "Name" %} | {{current_user.first_name}} |
{% translate "Last name" %} | {{current_user.last_name}} |
{% translate "Email" %} | {% if current_user.email %} {{current_user.email}} {% else %} -/- {% endif %} |
{% translate "Phone" %} | {{ current_user.userprofile.address.phone|default:'-/-' }} |
{% translate "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 %} |
{% translate "Registered" %} | {{current_user.date_joined}} |
{% translate "Last login" %} | {{current_user.last_login}} |
{% translate "Status" %} | {% if current_user.is_active %} {% translate "Active" %} {% else %} {% translate "Inactive" %} {% endif %} |
{{ contract }} | {{ contract.date_start }} | {{ contract.amount }} |
{% translate "Nothing found" %} |
{{ note.timestamp_created }} | {{ note.note|truncatewords:10 }} |
{% translate "Nothing found" %} |
{{ document.timestamp_created }} | {{ document.name }} | |
{% translate "Nothing found" %} |
{% translate 'Include in inactive overview' %} | {% if current_user.gymuserconfig.include_inactive %} {% else %} {% endif %} |