{% extends 'lib/base.html' %} {% load static %} {% block body %}
{% include "activity/activity_form_fields.html" %}

{% if has_laps %} Lap Data

{{ formset.management_form }} {% for lap_form in formset %} {% if forloop.counter < formset|length %} {% comment %} always skip last entry {% endcomment %} {{ lap_form.id }}
{{ lap_form.label }}
{% endif %} {% endfor %}


{% endif %} Cancel   Delete
{% endblock %}