renamed template for create a pitstop
This commit is contained in:
parent
a0be122186
commit
fe4236eead
@ -214,7 +214,7 @@ def create_pit_stop_form(vid):
|
||||
if len(vehicle.pitstops) > 0:
|
||||
last_pitstop = vehicle.pitstops[-1]
|
||||
else:
|
||||
last_pitstop = Pitstop(0, 0, date(1970, 1, 1), 0)
|
||||
last_pitstop = Pitstop(0, 0, date(1970, 1, 1), 0, None)
|
||||
|
||||
form = CreatePitstopForm()
|
||||
form.set_pitstop(last_pitstop)
|
||||
@ -237,7 +237,7 @@ def create_pit_stop_form(vid):
|
||||
'odometer': 'Odometer must be greater than %s km.' % (str(last_pitstop.odometer)),
|
||||
'costs': 'Costs must be higher than 0.01 €.'
|
||||
}
|
||||
return render_template('newPitStopForm.html', form=form, vehicle=vehicle, messages = messages)
|
||||
return render_template('createPitStopForm.html', form=form, vehicle=vehicle, messages=messages)
|
||||
|
||||
|
||||
@app.route('/pitstops/delete/<int:pid>', methods=['GET', 'POST'])
|
||||
|
Loading…
Reference in New Issue
Block a user