flectra/addons/website_google_map/views/google_map_templates.xml

29 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<template id="google_map">
&lt;!DOCTYPE html&gt;
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>World Map</title>
<link rel="stylesheet" type="text/css" href="/website_google_map/static/src/css/website_google_map.css" />
</head>
<body t-att-data-partner-url="partner_url or None">
<script>
2018-01-16 11:34:37 +01:00
var flectra_partner_data = <t t-raw="partner_data"/>;
</script>
2018-01-16 11:34:37 +01:00
<div id="flectra-google-map"></div>
<t t-if="google_maps_api_key">
<script t-attf-src="//maps.google.com/maps/api/js?key=#{google_maps_api_key}"></script>
</t>
<t t-else="1">
<script src="//maps.google.com/maps/api/js"></script>
</t>
<script type="text/javascript" src="/website_google_map/static/src/lib/markerclusterer.js"></script>
<script type="text/javascript" src="/website_google_map/static/src/js/website_google_map.js"></script>
</body>
</html>
</template>
2018-01-16 11:34:37 +01:00
</flectra>