diff --git a/rowers/templates/document_form.html b/rowers/templates/document_form.html index 6c899e79..67e38300 100644 --- a/rowers/templates/document_form.html +++ b/rowers/templates/document_form.html @@ -85,7 +85,7 @@ $( document ).ready(function() { $(this).val() == 'rower' || $(this).val() == 'skierg' || $(this).val() == 'dynamic' - || $(this).val() == 'sliders' + || $(this).val() == 'slides' || $(this).val() == 'paddle' || $(this).val() == 'snow' ) { diff --git a/rowers/templates/workout_form.html b/rowers/templates/workout_form.html index 3cef35a9..21165f3a 100644 --- a/rowers/templates/workout_form.html +++ b/rowers/templates/workout_form.html @@ -26,7 +26,7 @@ $( document ).ready(function() { $(this).val() == 'rower' || $(this).val() == 'skierg' || $(this).val() == 'dynamic' - || $(this).val() == 'sliders' + || $(this).val() == 'slides' || $(this).val() == 'paddle' || $(this).val() == 'snow' ) { diff --git a/rowers/tests.py b/rowers/tests.py index cd504a4a..59afd8e3 100644 --- a/rowers/tests.py +++ b/rowers/tests.py @@ -450,6 +450,8 @@ class DataTest(TestCase): 'notes':'Aap noot \n mies', 'weightcategory':'lwt', 'workouttype':'water', + 'boattype':'1x', + 'private':False, } form = WorkoutForm(data=form_data) self.assertTrue(form.is_valid()) @@ -680,6 +682,8 @@ class ViewTest(TestCase): 'distance':'15000', 'weightcategory':'hwt', 'workouttype':'rower', + 'boattype':'1x', + 'private':True, 'notes':'noot mies', } form = WorkoutForm(data=form_data)