aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/templates/edit.jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'fietsboek/templates/edit.jinja2')
-rw-r--r--fietsboek/templates/edit.jinja217
1 files changed, 17 insertions, 0 deletions
diff --git a/fietsboek/templates/edit.jinja2 b/fietsboek/templates/edit.jinja2
new file mode 100644
index 0000000..a4147fe
--- /dev/null
+++ b/fietsboek/templates/edit.jinja2
@@ -0,0 +1,17 @@
+{% extends "layout.jinja2" %}
+
+{% import "edit_form.jinja2" as edit_form %}
+
+{% block content %}
+<div class="container">
+ <h1>{{ _("page.edit.title") }}</h1>
+ <div id="mainmap" class="gpxview:{{ request.route_path('gpx', id=track.id) }}:OSM" style="width:100%;height:600px">
+ <noscript><p>{{ _("page.noscript") }}<p></noscript>
+ </div>
+ <form method="POST">
+ {{ edit_form.edit_track(track.title, track.date, track.description, track.tags) }}
+ <button type="submit" class="btn btn-primary">{{ _("page.edit.form.submit") }}</button>
+ <a href="{{ request.route_url('details', id=track.id) }}" class="btn btn-secondary">{{ _("page.edit.form.cancel") }}</a>
+ </form>
+</div>
+{% endblock %}