Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add submit text to form to copy workout

Roland Geiderc4cde0651903
diff --git a/wger/manager/views/workout.py b/wger/manager/views/workout.py
index ab40a6fb4..c4f264e1c 100644
--- a/wger/manager/views/workout.py
+++ b/wger/manager/views/workout.py
@@ -181,6 +181,8 @@ def copy_workout(request, pk):
template_data['form'] = workout_form
template_data['form_action'] = reverse('workout-copy', kwargs={'pk': workout.id})
template_data['form_fields'] = [workout_form['comment']]
+ template_data['submit_text'] = _('Copy')
+
return render_to_response('form.html',
template_data,