{# templates/macros.html #} {# Render lap form. This macro is intended to render both regular lap subforms (received from the server) and the template form used to dynamically add more forms. Arguments: - subform: Form object to render - index: Index of the form. For proper subforms rendered in the form loop, this should match `loop.index0`, and for the template it should be '_' #} {%- macro render_lap_form(subform, index) %}