--- 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
--- 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">
- <div class="col-md-7 pull-right">
+ <div class="col-md-6 pull-right">
<button class="btn" tal:attributes="href string:#modal_dialog_${name}" data-toggle="modal">
<i class="fa fa-fw fa-lg fa-map-marker hint opaque align-base"
data-ams-hint-gravity="se" data-ams-hint-offset="10"