{% extends 'timepiece/time-sheet/base.html' %} {% load timepiece_tags %} {% load url from future %} {% block title %} {% if user.get_full_name %} {{ user.get_full_name }}'s {% else %} {{ user.username }}'s {% endif %} Time Sheet {% endblock %} {% block javascript %} {{ block.super }} {% endblock %} {% block content %}

{% if user.get_full_name %} {{ user.get_full_name }}'s {% else %} {{ user.username }}'s {% endif %} TimeSheet ({{ from_date|date:"N j, Y" }} — {{ to_date|date:"N j, Y" }})

{{ year_month_form }}

{% if project_entries %} {% for entry in project_entries %} {% endfor %}
Project Summary
{{ entry.project__name}} {{ entry.sum }}
{% endif %} {% if entries %}
Billable Summary
Billable{{summary.billable}}
Non-billable{{summary.non_billable}}
Invoiced{{summary.invoiced}}
Uninvoiced{{summary.uninvoiced}}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% if entries %} {% for entry in entries %} {% ifchanged entry.start_time|date:"W" %} {% endifchanged %} {% ifchanged entry.start_time|date %} {% else %} {% endifchanged %} {% if entry.status == 'unverified' %} {% endif %} {% if perms.timepiece.change_user and entry.status != 'invoiced' and entry.status != 'unverified' %} {% endif %} {% endfor %}
Date Project Activity Location Time In Time Out Breaks Hours Comments
Week of {% week_start entry.start_time %}
{{ entry.start_time|date:"m/d/Y (D)" }}{{ entry.project__name }} {{ entry.activity__name }} {{ entry.location__name }} {{ entry.start_time|date:"P" }} {{ entry.end_time|date:"P" }} {{ entry.seconds_paused|seconds_to_hours }} {{ entry.hours }} {{ entry.comments|truncatewords:12|urlizetrunc:25|safe }}EditReject
Overall total for the period: {{ summary.total|floatformat:2 }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% if grouped_totals %} {% for week, week_totals, days in grouped_totals %} {% for day, projects in days %} {% for project, totals in projects.1.iteritems %} {% endfor %} {% endfor %} {% endfor %}
Week of {{ week|date:"m/d/Y (D)" }} Billable: Non Billable: Total:
{% if forloop.counter == 1 %} {{day|date:"m/d/Y (D)"}} {% endif %} {{project}} {{totals.billable}} {{totals.non_billable}} {{totals.total}}
{{day|date:"D"}}: {{projects.0.billable}} {{projects.0.non_billable}} {{projects.0.total}}
Totals for this week: {{week_totals.billable}} {{week_totals.non_billable}} {{week_totals.total}}
 
Overall total for the period: {{ summary.total|floatformat:2 }}
{% else %}

No entries exist for this time sheet.

{% endif %}
{% endblock %}