Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix position of hidden CSRF fields

Roland Geider47b02511e863
diff --git a/manager/templates/set/edit.html b/manager/templates/set/edit.html
index cf644eaef..05ac661ec 100644
--- a/manager/templates/set/edit.html
+++ b/manager/templates/set/edit.html
@@ -17,8 +17,8 @@
<form action="/workout/{{ workout.id}}/day/{{ day.id }}/edit/set/{% if set.id %}{{ set.id }}{% endif %}"
method="post"
class="ym-form">
+{% csrf_token %}
<table>
- {% csrf_token %}
{% include "form_snippet.html" with field=set_form.exercises css_class="ym-fbox-select" %}
{% include "form_snippet.html" with field=set_form.order %}
{% include "form_snippet.html" with field=set_form.sets %}