add redirect if vehicle is not configured and flash messages

This commit is contained in:
2016-08-16 13:21:54 +02:00
parent 87b3b02f3e
commit 088d1f24a0
4 changed files with 32 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-body">
<h3>Edit vehicle</h3>
<h3>Edit vehicle '{{vehicle.name}}'</h3>
<form class='form-horizontal' method="POST">
{{ form.hidden_tag() }}
{{ render_field_with_errors(form.name) }}