equal
deleted
inserted
replaced
45 class AgeRangeWidget(ObjectWidget): |
45 class AgeRangeWidget(ObjectWidget): |
46 """Age range widget""" |
46 """Age range widget""" |
47 |
47 |
48 def updateWidgets(self, setErrors=True): |
48 def updateWidgets(self, setErrors=True): |
49 super(AgeRangeWidget, self).updateWidgets(setErrors) |
49 super(AgeRangeWidget, self).updateWidgets(setErrors) |
50 widgets = self.subform.widgets |
50 widgets = self.widgets |
51 for name in ('min_value', 'max_value'): |
51 for name in ('min_value', 'max_value'): |
52 widget = widgets[name] |
52 widget = widgets[name] |
53 widget.label_css_class = 'control-label col-md-2' |
53 widget.label_css_class = 'control-label col-md-2' |
54 widget.input_css_class = 'col-md-1' |
54 widget.input_css_class = 'col-md-1' |
55 widget.object_data = { |
55 widget.object_data = { |