{% extends "base.html" %} {% block title %}{{ meta_title }}{% endblock %} {% block content %}

History

Trip log

Filter past mileage entries by date range, tax period, or trip type.

Add another trip
{{ form.start_date }}
{{ form.end_date }}
{{ form.month }}
{{ form.year }}
{{ form.trip_type }}
Reset

Total business miles

{{ summary.business_miles|floatformat:1 }}

Within the filtered period

Personal + commuting + repair miles

{{ summary.non_business_miles|floatformat:1 }}

Included for full context

Total trips

{{ summary.trip_count }}

Entries matched by the current filters
{% if trips %}
{% for trip in trips %} {% endfor %}
DateRouteTypeMilesSource
{{ trip.date|date:"M j, Y" }}
{{ trip.start_time|time:"g:i A" }}–{{ trip.end_time|time:"g:i A" }}
{{ trip.start_location }}
to {{ trip.end_location }}
{{ trip.get_trip_type_display }} {{ trip.distance_miles|floatformat:1 }} {{ trip.get_distance_source_display }} Details
{% else %}

No trips match those filters

Adjust the date range or log a new trip to populate your history.

Log a trip
{% endif %}
{% endblock %}