{% extends 'index.html' %} {% load current_month_record %} {% block content %}
{% trans "Work Records" %} | {% for day in current_month_dates_list %}{{ day.day }} | {% endfor %}
---|---|
{{ employee }} | {% for date in current_month_dates_list %}
{% for work_record in employee.workrecord_set.all|current_month_record %}
{% if work_record.start_datetime.date == date %}
{% if work_record.work_record_type.is_timeoff %}
{% trans "A" %}
{% else %}
{% trans "P" %}
{% endif %}
{% endif %}
{% endfor %}
|
{% endfor %}