{% extends 'timepiece/time-sheet/base.html' %} {% load timepiece_tags math_tags %} {% block title %}Timepiece Entries{% endblock %} {% block css %}{{ block.super }} {% endblock %} {% block javascript %}{{ block.super }} {% endblock %} {% block content %}

My Time Sheet

My Projects

{% regroup assignments by contract.project.type as type_list %} {% for type in type_list %} {% for assignment in type.list %} {% endfor %} {% endfor %}
ProjectMy HoursHours WorkedHours RemainingDue Date
{{ type.grouper }}s
{{ assignment.contract.project }} {{ assignment.num_hours }} {{ assignment.hours_worked|floatformat:2 }} ({% widthratio assignment.hours_worked assignment.num_hours 100 %}%) {{ assignment.hours_remaining|floatformat:2 }} {{ assignment.end_date }}

{% with entries.count as num_entries %} My Active Entries {% endwith %}

{% with my_active_entries as entries %} {% include 'timepiece/time-sheet/_entry_list.html' %} {% endwith %} {% if allocations or project_entries %}

My Work This Week

{% for assignment in allocations %} {% endfor %} {% for entry in project_entries %} {% endfor %} {% for row in activity_entries %} {% endfor %}
ProjectHours Worked
{{ assignment.assignment.contract.project }} {% bar_graph assignment.assignment.contract.project assignment.hours_worked assignment.hours %}
{{ entry.project__name }} {{ entry.sum }}
Total {% if row.billable %}billable{% else %}non-billable{% endif %} time: {% if row.billable %} {% ifnotequal schedule.count 0 %} {% bar_graph '' row.sum schedule.0.hours_per_week %} {% else %} {{ row.sum }} {% endifnotequal %} {% else %} {{ row.sum }} {% endif %}
{% endif %} {% if allocations %}
{% endif %} {% if others_active_entries %} {% for entry in others_active_entries %} {% endfor %}
Others are working on:
Name Project Activity Since
{{ entry.user.first_name }} {{ entry.user.last_name }} {{ entry.project.name }} {{ entry.activity.name }} {{ entry.start_time|date:"P" }}
{% endif %}

{% with this_weeks_entries.count as num_entries %} Time Detail This Week ({{ num_entries }} entr{{ num_entries|pluralize:"y,ies" }}) {% endwith %}

{% with this_weeks_entries as entries %} {% include 'timepiece/time-sheet/_entry_list.html' %} {% endwith %} {% endblock %}