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.jinja22
1 files changed, 2 insertions, 0 deletions
diff --git a/fietsboek/templates/edit.jinja2 b/fietsboek/templates/edit.jinja2
index 9d48cf1..6053509 100644
--- a/fietsboek/templates/edit.jinja2
+++ b/fietsboek/templates/edit.jinja2
@@ -1,6 +1,7 @@
{% extends "layout.jinja2" %}
{% import "edit_form.jinja2" as edit_form %}
+{% import "util.jinja2" as util with context %}
{% block content %}
<div class="container">
@@ -10,6 +11,7 @@
</div>
<form method="POST">
{{ edit_form.edit_track(track.title, track.date_raw, track.date_tz or 0, track.visibility, track.description, track.text_tags(), badges, track.tagged_people) }}
+ {{ util.hidden_csrf_input() }}
<div class="btn-group" role="group">
<button type="submit" class="btn btn-primary"><i class="bi bi-save"></i> {{ _("page.edit.form.submit") }}</button>
<a href="{{ request.route_url('details', track_id=track.id) }}" class="btn btn-secondary"><i class="bi bi-x-circle"></i> {{ _("page.edit.form.cancel") }}</a>