all pit stops can now be edited and deleted

not only the last pit stop can be edited and deleted.
This commit is contained in:
2018-08-16 18:33:09 +02:00
parent ae6dfa8ae6
commit 1d767d65a6
4 changed files with 52 additions and 18 deletions

View File

@@ -31,10 +31,10 @@
</tr>
</table>
{% if loop.first %}
{% endif %}
<a id="vehicle_{{vindex}}_edit_pitstop_{{loop.index}}" href="{{ url_for('edit_pit_stop_form', pid=field.id) }}" class="btn btn-primary">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> edit
</a>
{% endif %}
<a id="vehicle_{{vindex}}_delete_pitstop_{{loop.index}}" href="{{ url_for('delete_pit_stop_form', pid=field.id) }}" class="btn btn-primary btn-warning ">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> delete
</a>