Fixed a bug with editing services / pitstops

The event that was edited should not limit the dates and
odometers for the update.
This commit is contained in:
2018-08-17 07:15:27 +02:00
parent 1d767d65a6
commit 6497d4677f
5 changed files with 24 additions and 41 deletions

View File

@@ -73,10 +73,10 @@
</tr>
</table>
{% if loop.first %}
{% endif %}
<a id="vehicle_{{vindex}}_edit_pitstop_{{loop.index}}" href="{{ url_for('edit_service_form', sid=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_service_form', sid=field.id) }}" class="btn btn-primary btn-warning ">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> delete
</a>