{% extends "timepiece/base.html" %} {% load timepiece_tags %} {% load bootstrap_toolkit %} {% load url from future %} {% block extrajs %} {% endblock %} {% block crumbs %} {{ block.super }}
  • / My Ledger
  • {% endblock crumbs %} {% block title %} {% if timesheet_user.get_full_name %} {{ timesheet_user.get_full_name }}'s {% else %} {{ timesheet_user.username }}'s {% endif %} Time Sheet {% endblock %} {% block content %}

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

    {# We have to duplicate the form so the hidden fields are not in the same form #}
    {{ year_month_form|as_bootstrap:"inline" }}
    {{ year_month_form|as_bootstrap }}
    {% if project_entries %}

    Project Summary

    {% for entry in project_entries %} {% endfor %}
    Project Hours
    {{ entry.project__name}} {{ entry.sum|floatformat:2 }}
    {% endif %} {% if entries %}

    Billable Summary

    Category Hours
    Billable{{summary.billable|floatformat:2 }}
    Non-billable{{summary.non_billable|floatformat:2 }}
    Invoiced{{summary.invoiced|floatformat:2 }}
    Uninvoiced{{summary.uninvoiced|floatformat:2 }}
    {% else %}

    No entries exist for this time sheet.

    {% endif %}
    {% if entries %} {% for entry in entries %} {% ifchanged entry.start_time|date:"W" %} {# Close table before new table starts (ignore first table) #} {% if entry.start_time.weekday == 0 and not forloop.first %} {% endif %} {% endifchanged %} {% ifchanged entry.start_time|date %} {% else %} {% endifchanged %} {# Close the last table #} {% if forloop.last %}
    Date Project Activity Location Status 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.status|title }} {{ entry.start_time|date:"P" }} {{ entry.end_time|date:"P" }} {{ entry.seconds_paused|seconds_to_hours|floatformat:2 }} {{ entry.hours|floatformat:2 }} {{ entry.comments|truncatewords:12|urlizetrunc:25|safe }} {% if entry.status == "unverified" or entry.status != 'invoiced' and perms.timepiece.view_payroll_summary %} Edit {% endif %} {% if perms.timepiece.view_payroll_summary and entry.status != "unverified" and entry.status != "invoiced" %} | Reject {% endif %}
    {% endif %} {% endfor %}
    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 %}
    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|floatformat:2 }} {{ totals.non_billable|floatformat:2 }} {{ totals.total|floatformat:2 }}
    {{day|date:"D"}}: {{ projects.0.billable|floatformat:2 }} {{ projects.0.non_billable|floatformat:2 }} {{ projects.0.total|floatformat:2 }}
    Totals for this week: {{ week_totals.billable|floatformat:2 }} {{ week_totals.non_billable|floatformat:2 }} {{ week_totals.total|floatformat:2 }}
    {% endfor %}
    Overall total for the period: {{ summary.total|floatformat:2 }}
    {% else %}

    No entries exist for this time sheet.

    {% endif %}
    {% endblock %}