summaryrefslogtreecommitdiff
path: root/addons/website_google_map/views
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-09-06 10:35:00 +0200
committerChristophe Matthieu <chm@openerp.com>2013-09-06 10:35:00 +0200
commit8a3f1742e0e9c7acaae726e5c7106d2d7df7e970 (patch)
tree78ae5d981fcd25677caea5c8b3999b1e77bf4547 /addons/website_google_map/views
parent6f6c59ec1de1881a70e4bf728ea5d8b56bd609f9 (diff)
parentc80cf7d0646463b290137c26fbada568a6942b00 (diff)
[MERGE] from website-al
bzr revid: chm@openerp.com-20130906083500-4n5knaxiqt4cg2ht
Diffstat (limited to 'addons/website_google_map/views')
-rw-r--r--addons/website_google_map/views/google_map.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/addons/website_google_map/views/google_map.xml b/addons/website_google_map/views/google_map.xml
new file mode 100644
index 00000000000..eee8f31741b
--- /dev/null
+++ b/addons/website_google_map/views/google_map.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <template id="google_map">
+
+&lt;!DOCTYPE html&gt;
+<html>
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>World wide map</title>
+
+ <style type="text/css">
+ body {
+ margin: 0;
+ padding: 0;
+ font-family: Helvetica, Arial, sans-serif !important;
+ }
+ .marker {
+ font-size: 12px !important;
+ }
+ .marker b {
+ font-weight: 500;
+ }
+ .marker pre {
+ font-size: 10px !important;
+ }
+ </style>
+ <script>var partner_url = '<t t-raw="partner_url or ''"/>';</script>
+ <script src="http://maps.google.com/maps/api/js?sensor=false"></script>
+ <script type="text/javascript" t-attf-src="/google_map/partners.json?partner_ids=#{ partner_ids }"></script>
+ <script type="text/javascript" src="/website_google_map/static/src/js/markerclusterer_compiled.js"></script>
+ <script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
+ <script type="text/javascript" src="/website_google_map/static/src/js/google_map.js"></script>
+ </head>
+ <body>
+ <div id="map" t-attf-style="width: #{ width }px; height: #{ height }px"></div>
+ </body>
+</html>
+
+ </template>
+ </data>
+</openerp> \ No newline at end of file