Commit 97689c876ef90aea15ad0b5a64c131e1616ab2b0

Authored by Zambom
1 parent 8aefc351

Fixing goals creation multiple goals error

amadeus/static/css/base/amadeus.css
... ... @@ -800,6 +800,7 @@ a:focus {
800 800 -moz-user-select: none;
801 801 -ms-user-select: none;
802 802 user-select: none;
  803 + float: none;
803 804 }
804 805  
805 806 a.add-row {
... ...
goals/forms.py
... ... @@ -116,6 +116,8 @@ class GoalItemForm(forms.ModelForm):
116 116 def clean(self):
117 117 cleaned_data = super(GoalItemForm, self).clean()
118 118  
  119 + print(cleaned_data)
  120 +
119 121 description = cleaned_data.get('description', None)
120 122 ref_value = cleaned_data.get('ref_value', None)
121 123  
... ...
goals/templates/goals/_form.html
... ... @@ -419,6 +419,7 @@
419 419 input.parent().find('.slider').remove();
420 420 new_input.attr('class', input.attr('class'));
421 421 new_input.attr('id', input.attr('id'));
  422 + new_input.attr('name', input.attr('name'));
422 423 new_input.insertBefore(input);
423 424 input.remove();
424 425 new_input.bootstrapSlider({
... ...