{% extends "base.html" %} {% load utils %} {% load user_extras %} {% load static %} {% load i18n %} {% block title %} {% translate "Working hours of" %} {{ userprofile }} {% endblock %} {% block content %}

{% translate "Working hours of" %} {{ userprofile }}

{% if can_grant %} {% translate "Add working hours" %} {% elif own_profile %} {% translate "Request working hours" %} {% endif %} {% with userprofile|workhour_items as workhour_items %} {% for item in workhour_items.1 %} {% endfor %} {% endwith %}
{% translate "Date" %} {% translate "Reason" %} {% translate "Hours" %} {% translate "Action" %}
{% translate "Total" %} {{ workhour_items.0|timedelta_in_hours }} {% translate "hours" %}
{{ item.date|date:"SHORT_DATE_FORMAT" }} {{ item.reason }} {{ item.duration|timedelta_in_hours }} {% translate "hours" %} {% if can_grant %} {% if item.type == "event" %} {% translate "View event" %} {% else %} {% translate "Edit" %} {% translate "Delete" %} {% endif %} {% endif %}
{% endblock %}