{% extends 'base.html' %} {% block content %}

DeskTime – {{ employee.full_name }} ({{ employee.employee_code }})

Dept: {{ employee.department.name if employee.department else '-' }} | Desktime ID: {{ employee.desktime_id or '-' }}
{% if selected_day %} {% endif %}
Avg Arrival
{{ overall.avg_arrival_str }}
Avg Left
{{ overall.avg_left_str }}
Total Productive
{{ overall.total_productive_str }}
Avg {{ overall.avg_productive_str }}
DeskTime
{{ overall.total_desktime_str }}
Avg {{ overall.avg_desktime_str }}
Time at work
{{ overall.total_at_work_str }}
Avg {{ overall.avg_at_work_str }}
Productivity
{% if overall.avg_productivity is not none %} {{ overall.avg_productivity }}% {% else %}-{% endif %}
Eff: {% if overall.avg_efficiency is not none %} {{ overall.avg_efficiency }}% {% else %}-{% endif %}
{% if day_view %}
Day View – {{ day_view.date.strftime('%d-%m-%Y') }} ({{ day_view.date.strftime('%a') }})
Clear
{% for label, value in [ ('Arrival', day_view.arrival or '-'), ('Left', day_view.left or '-'), ('Productive', day_view.productive_str), ('DeskTime', day_view.desktime_str), ('Time at work', day_view.at_work_str), ] %}
{{ label }}
{{ value }}
{% endfor %}
Prod / Eff
{% if day_view.productivity is not none %} {{ '%.2f'|format(day_view.productivity) }}% {% else %}-{% endif %}
Eff: {% if day_view.efficiency is not none %} {{ '%.2f'|format(day_view.efficiency) }}% {% else %}-{% endif %}
{% for title, apps, color in [ ('Productive apps – day', day_productive_apps, 'bg-success'), ('Unproductive apps – day', day_unproductive_apps, 'bg-danger'), ] %}
{{ title }}
{% if apps %} {% for a in apps %} {% endfor %} {% else %} {% endif %}
App / SiteTime
{{ a.name }} {{ a.duration_str }}
No data
{% endfor %}
{% endif %}
Productivity bar (per day – green = productive%)
{% if daily_rows %}
{% for d in daily_rows %}
{{ d.date.day }}
{{ d.date.strftime('%a') }}
{% endfor %}
{% else %} No data for this month. {% endif %}
Productive apps – month
{% if productive_apps %} {% for a in productive_apps %} {% endfor %} {% else %} {% endif %}
App / SiteTime
{{ a.name }} {{ a.duration_str }}
No data
Unproductive apps – month
{% if unproductive_apps %} {% for a in unproductive_apps %} {% endfor %} {% else %} {% endif %}
App / SiteTime
{{ a.name }} {{ a.duration_str }}
No data
Daily breakdown (click a date for Day View)
{% if daily_rows %} {% for d in daily_rows %} {% endfor %} {% else %} {% endif %}
# Date Arrival Left Productive DeskTime Time at work Productivity Efficiency
{{ loop.index }} {{ d.date.strftime('%d-%m-%Y') }} ({{ d.date.strftime('%a') }}) {{ d.arrival or '-' }} {{ d.left or '-' }} {{ d.productive_str }} {{ d.desktime_str }} {{ d.at_work_str }} {% if d.productivity is not none %} {{ '%.2f'|format(d.productivity) }}% {% else %}-{% endif %} {% if d.efficiency is not none %} {{ '%.2f'|format(d.efficiency) }}% {% else %}-{% endif %}
No data for this month.
{% endblock %}