Kundenadresse auf Google Maps anzeigen
authorThomas Heck <theck@linet-services.de>
Wed, 13 Feb 2013 09:55:33 +0000 (10:55 +0100)
committerThomas Heck <theck@linet-services.de>
Wed, 13 Feb 2013 09:55:33 +0000 (10:55 +0100)
image/map.png [new file with mode: 0644]
locale/de/all
templates/webpages/ct/form_header.html

diff --git a/image/map.png b/image/map.png
new file mode 100644 (file)
index 0000000..ac32c96
Binary files /dev/null and b/image/map.png differ
index 570d077..9e7f46f 100644 (file)
@@ -1156,6 +1156,7 @@ $self->{texts} = {
   'Manage Custom Variables'     => 'Benutzerdefinierte Variablen',
   'Mandantennummer'             => 'Mandantennummer',
   'Mandatory Departments'       => 'Benutzer muss Abteilungen vergeben',
+  'Map'                         => 'Karte',
   'Mar'                         => 'März',
   'March'                       => 'März',
   'Margepercent'                => 'Ertrag prozentual',
index d769b04..f56c9c2 100644 (file)
 
      <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>