<tr>
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
- <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
+ <td>
+ <input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]">
+ <a
+ href="#"
+ onclick="window.open('https://maps.google.com/maps?q='+ encodeURIComponent($('#billing input[name=street]').val() +', '+ $('#billing input[name=zipcode]').val() +' '+ $('#billing input[name=city]').val() +', '+ $('#billing input[name=country]').val()), '_blank'); window.focus();"
+ title="[% 'Map' | $T8 %]"
+ >
+ <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
+ </a>
+ </td>
</tr>
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td colspan="3">
[% L.select_tag('delivery_id', SHIPTO_ALL, value_key = 'shipto_id', title_sub = \shipto_label, with_empty = 1,
- onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
+ onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').val() + '&db=' + \$('#db').val() + '&shipto_id=' + this.value)") %]
</td>
</tr>