- [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35, maxlength = 75) %]
-
- <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('shipto_shipto');" title="[% 'Map' | $T8 %]">
- <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
- </a>
+ [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35) %]
+
+ <span id="shipto_map"></span>
+ <script type="text/javascript">
+ shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto');
+ $(function() {
+ shiptoMapWidget.render($('#shipto_map'));
+ });
+ </script>