improved workout edit form
This commit is contained in:
@@ -85,7 +85,7 @@ $( document ).ready(function() {
|
|||||||
$(this).val() == 'rower'
|
$(this).val() == 'rower'
|
||||||
|| $(this).val() == 'skierg'
|
|| $(this).val() == 'skierg'
|
||||||
|| $(this).val() == 'dynamic'
|
|| $(this).val() == 'dynamic'
|
||||||
|| $(this).val() == 'sliders'
|
|| $(this).val() == 'slides'
|
||||||
|| $(this).val() == 'paddle'
|
|| $(this).val() == 'paddle'
|
||||||
|| $(this).val() == 'snow'
|
|| $(this).val() == 'snow'
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ $( document ).ready(function() {
|
|||||||
$(this).val() == 'rower'
|
$(this).val() == 'rower'
|
||||||
|| $(this).val() == 'skierg'
|
|| $(this).val() == 'skierg'
|
||||||
|| $(this).val() == 'dynamic'
|
|| $(this).val() == 'dynamic'
|
||||||
|| $(this).val() == 'sliders'
|
|| $(this).val() == 'slides'
|
||||||
|| $(this).val() == 'paddle'
|
|| $(this).val() == 'paddle'
|
||||||
|| $(this).val() == 'snow'
|
|| $(this).val() == 'snow'
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -450,6 +450,8 @@ class DataTest(TestCase):
|
|||||||
'notes':'Aap noot \n mies',
|
'notes':'Aap noot \n mies',
|
||||||
'weightcategory':'lwt',
|
'weightcategory':'lwt',
|
||||||
'workouttype':'water',
|
'workouttype':'water',
|
||||||
|
'boattype':'1x',
|
||||||
|
'private':False,
|
||||||
}
|
}
|
||||||
form = WorkoutForm(data=form_data)
|
form = WorkoutForm(data=form_data)
|
||||||
self.assertTrue(form.is_valid())
|
self.assertTrue(form.is_valid())
|
||||||
@@ -680,6 +682,8 @@ class ViewTest(TestCase):
|
|||||||
'distance':'15000',
|
'distance':'15000',
|
||||||
'weightcategory':'hwt',
|
'weightcategory':'hwt',
|
||||||
'workouttype':'rower',
|
'workouttype':'rower',
|
||||||
|
'boattype':'1x',
|
||||||
|
'private':True,
|
||||||
'notes':'noot mies',
|
'notes':'noot mies',
|
||||||
}
|
}
|
||||||
form = WorkoutForm(data=form_data)
|
form = WorkoutForm(data=form_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user