adds edit vehicle name

This commit is contained in:
2016-04-23 11:20:39 +02:00
parent 729fee51e9
commit d19b0a5858
3 changed files with 80 additions and 55 deletions

View File

@@ -4,4 +4,13 @@
<h1>Account management for {{current_user.email}}</h1>
<a href='{{ url_for('security.change_password') }}'>Change password</a>
<table>
{% for vehicle in current_user.vehicles %}
<tr>
<td>{{vehicle.name}}</td>
<td><a href="{{ url_for('edit_vehicle', vid=vehicle.id) }}">edit</a></td>
</tr>
{% endfor %}
</table>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends "layout.html" %}
{% block body %}
<form class='form-horizontal' method="POST">
{{ form.hidden_tag() }}
{{ render_field_with_errors(form.name) }}
<input type="submit" value="Go">
</form>
{% endblock %}