{% extends "timepiece/time-sheet/base.html" %} {% load timepiece_tags math_tags %} {% block title %}Timepiece Entries{% endblock title %} {% block bodyid %}dashboard{% endblock bodyid %} {% block content %} {% if view_entries %}

My Time Sheet

{% endif %} {% if view_entries %}

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

{% with my_active_entries as entries %}
{% include "timepiece/time-sheet/_entry_list.html" with active="True" %}
{% endwith %}
{% endif %} {% if assignments %}

My Projects

{% regroup assignments by contract.project.type as type_list %} {% for type in type_list %} {% for assignment in type.list %} {% endfor %} {% endfor %}
Project My Hours Hours Worked Hours Remaining Due 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 }}
{% endif %} {% if view_entries %}

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

{% with my_active_entries as entries %}
{% include "timepiece/time-sheet/_entry_list.html" with active="True" %}
{% endwith %}
{% endif %}
{% if allocations or project_entries or my_active_entries %}

My Work This Week

{% if my_active_entries %} {% for entry in my_active_entries %} {% endfor %} {% endif %} {% for assignment in allocations %} {% endfor %} {% if project_entries %} {% for entry in project_entries %} {% endfor %} {% endif %} {% for row in activity_entries %} {% endfor %}
Project Hours Worked
Current Entry
{{ entry.project }} {% get_active_hours entry %}
{{ assignment.assignment.contract.project }} {% bar_graph assignment.assignment.contract.project assignment.hours_worked assignment.hours %}
Past Entries
{{ entry.project__name }} {{ entry.sum }}
Time Totals
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 %}
Total time this week: {{ current_total }}
{% endif %}
{% if allocations %}
{% endif %} {% if view_entries %}

{% 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 %}
{% endif %} {% endblock %}