{% extends 'base.html' %} {% block header %}

{% block title %}All trips in database{% endblock %}

{% endblock %} {% block content %} {% for trip in trips %} {% endfor %}
ID Start Date Start Location End Location Vehicle
{{ trip.id }} {{ trip.startDate }} {% if trip.start_location %}{{ trip.start_location.displayString()}}{% endif %} {% if trip.destination_location %}{{ trip.destination_location.displayString()}}{% endif %} {{ trip.vehicle.displayString() }}
{% endblock %}