{% extends 'base.html' %} {% block content %}
Desktime Details – {{ employee.full_name }} ({{ employee.employee_code }})
Dept: {{ employee.department.name if employee.department else '-' }}, Desktime ID: {{ employee.desktime_id or '-' }}
{% if rows %} {% for log, att in rows %} {% if log.raw_data %} {% endif %} {% endfor %} {% else %} {% endif %}
# Date First Activity Last Activity Productive Hours Attendance Source Working Hours (Attendance) Attendance Remark Raw Data
{{ loop.index }} {{ log.date.strftime('%d-%m-%Y') }} {% if log.first_activity %} {{ log.first_activity.strftime('%H:%M') }} {% else %} - {% endif %} {% if log.last_activity %} {{ log.last_activity.strftime('%H:%M') }} {% else %} - {% endif %} {% if log.productive_hours is not none %} {{ '%.2f'|format(log.productive_hours) }} {% else %} - {% endif %} {% if att %} {{ att.source or 'Attendance' }} {% else %} - {% endif %} {% if att and att.working_hours is not none %} {{ '%.2f'|format(att.working_hours) }} {% else %} - {% endif %} {% if att and att.remarks %} {{ att.remarks }} {% else %} - {% endif %} {% if log.raw_data %} {% else %} - {% endif %}
{{ log.raw_data }}
No Desktime data for this month.
{% endblock %}