# HG changeset patch # User Thierry Florac # Date 1519901289 -3600 # Node ID b9111ddc0ab7c6597d9f6756f084d69c649d8919 # Parent 70e485fd1d84725ada1762c4b9b3bb69ae53c1bd Updated widget CSS class diff -r 70e485fd1d84 -r b9111ddc0ab7 src/pyams_gis/widget/point.py --- a/src/pyams_gis/widget/point.py Mon Feb 19 10:41:53 2018 +0100 +++ b/src/pyams_gis/widget/point.py Thu Mar 01 11:48:09 2018 +0100 @@ -58,18 +58,18 @@ super(GeoPointWidget, self).updateWidgets(setErrors) widgets = self.subform.widgets longitude = widgets['longitude'] - longitude.label_css_class = 'control-label col-md-2' + longitude.label_css_class = 'control-label col-md-3' longitude.input_css_class = 'col-md-2' longitude.object_data = {'ams-change-handler': 'PyAMS_GIS.position.changedCoordinate'} alsoProvides(longitude, IObjectData) latitude = widgets['latitude'] - latitude.label_css_class = 'control-label col-md-2' + latitude.label_css_class = 'control-label col-md-3' latitude.input_css_class = 'col-md-2' latitude.object_data = {'ams-change-handler': 'PyAMS_GIS.position.changedCoordinate'} alsoProvides(latitude, IObjectData) projection = widgets['projection'] - projection.label_css_class = 'control-label col-md-2' - projection.input_css_class = 'col-md-10' + projection.label_css_class = 'control-label col-md-3' + projection.input_css_class = 'col-md-9' projection.object_data = {'ams-events-handlers': {'change.select2': 'PyAMS_GIS.position.changedProjection'}} alsoProvides(projection, IObjectData) @@ -115,22 +115,22 @@ super(GeoPointZWidget, self).updateWidgets(setErrors) widgets = self.subform.widgets longitude = widgets['longitude'] - longitude.label_css_class = 'control-label col-md-2' + longitude.label_css_class = 'control-label col-md-3' longitude.input_css_class = 'col-md-2' longitude.object_data = {'ams-change-handler': 'PyAMS_GIS.position.changedCoordinate'} alsoProvides(longitude, IObjectData) latitude = widgets['latitude'] - latitude.label_css_class = 'control-label col-md-2' + latitude.label_css_class = 'control-label col-md-3' latitude.input_css_class = 'col-md-2' latitude.object_data = {'ams-change-handler': 'PyAMS_GIS.position.changedCoordinate'} alsoProvides(latitude, IObjectData) projection = widgets['projection'] - projection.label_css_class = 'control-label col-md-2' - latitude.input_css_class = 'col-md-10' + projection.label_css_class = 'control-label col-md-3' + latitude.input_css_class = 'col-md-9' projection.object_data = {'ams-events-handlers': {'change.select2': 'PyAMS_GIS.position.changedProjection'}} alsoProvides(projection, IObjectData) altitude = widgets['altitude'] - altitude.label_css_class = 'control-label col-md-2' + altitude.label_css_class = 'control-label col-md-3' altitude.input_css_class = 'col-md-2' @property diff -r 70e485fd1d84 -r b9111ddc0ab7 src/pyams_gis/widget/templates/geopoint-input.pt --- a/src/pyams_gis/widget/templates/geopoint-input.pt Mon Feb 19 10:41:53 2018 +0100 +++ b/src/pyams_gis/widget/templates/geopoint-input.pt Thu Mar 01 11:48:09 2018 +0100 @@ -5,7 +5,7 @@ tal:attributes="class view/fieldset_class | default; data-ams-plugin-pyams_gis-src extension:resource_path('pyams_gis:pyams_gis');" data-ams-plugin-pyams_gis-async="false"> -
+