{% extends "base.html" %} {% load i18n %} {% block main %}

{% trans "Sprint" %}{% if board %}{% blocktrans with board_name=board.name sprint_name=sprint.name %} for project {{ board_name }} / {{ sprint_name }}{% endblocktrans %}{% endif %}

{% if cards %}

{% trans "Time booked on Trello cards" %}

{% for card in cards %} {% endfor %}
{% trans "List" %} {% trans "ID" %} {% trans "Name" %} {% trans "Estimated time" %} {% trans "Estimated cost" %} {% trans "Waived time" %} {% trans "Waived cost" %} {% trans "Actual time" %} {% trans "Actual cost" %}
{{ card.list_name }} {{ card.idShort }} {{ card.name }} {{ card.time_estimated }} {{ card.cost_estimated|floatformat:2 }} {{ card.time_free }} {{ card.cost_free|floatformat:2 }} {{ card.time_actual }} {{ card.cost_actual|floatformat:2 }}
{% trans "Total" %} {{ board.time_estimated_total }} {{ board.cost_estimated_total|floatformat:2 }} {{ board.time_free_total }} {{ board.cost_free_total|floatformat:2 }} {{ board.time_actual_total }} {{ board.cost_actual_total|floatformat:2 }}
{% endif %} {% if entries.has_non_cards %}

{% trans "Time booked without Trello cards" %}

{% for entry in entries.entries %} {% if not entry.entry.has_card and entry.entry.billable %} {% endif %} {% endfor %}
{% trans "Date" %} {% trans "Description" %} {% trans "Minutes" %} {% trans "Cost" %}
{{ entry.entry.date }} {{ entry.entry.description }} {{ entry.entry.minutes }} {{ entry.entry.cost|floatformat:2 }}
{% trans "Total" %} {{ entries.total_non_card_time }} {{ entries.total_non_card_cost|floatformat:2 }}
{% endif %} {% if entries.has_free_non_cards %}

{% trans "Waived time booked without Trello cards" %}

{% for entry in entries.entries %} {% if not entry.entry.has_card and not entry.entry.billable %} {% endif %} {% endfor %}
{% trans "Date" %} {% trans "Description" %} {% trans "Minutes" %} {% trans "Cost" %}
{{ entry.entry.date }} {{ entry.entry.description }} {{ entry.entry.minutes }} {{ entry.entry.cost|floatformat:2 }}
{% trans "Total" %} {{ entries.total_free_non_card_time }} {{ entries.total_free_non_card_cost|floatformat:2 }}
{% endif %}

{% trans "Grand totals" %}

{% trans "Minutes" %} {% trans "Cost" %}
{% trans "Grand total waived" %} {{ board.time_free_total|add:entries.total_free_non_card_time }} {{ board.cost_free_total|add:entries.total_free_non_card_cost }}
{% trans "Grand total billable" %} {{ board.time_actual_total|add:entries.total_non_card_time }} {{ board.cost_actual_total|add:entries.total_non_card_cost }}
{% endblock %}