src/pyams_content/shared/resource/zmi/widget.py
changeset 1384 cdf63a1c7dc9
parent 1244 4ad4c1cf673a
equal deleted inserted replaced
1383:2cfeb340dacf 1384:cdf63a1c7dc9
    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 = {