summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index bea9661aa21..f024202d523 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -107,6 +107,35 @@
</we-row>
</div>
</t>
+ <div t-name="website.s_google_map_modal">
+ <p>Use Google Map on your website (Contact Us page, snippets, etc).</p>
+ <div class="form-group row mb-0">
+ <label class="col-sm-2 col-form-label" for="pin_address">API Key</label>
+ <div class="col">
+ <div class="input-group">
+ <div class="input-group-prepend">
+ <div class="input-group-text"><i class="fa fa-key"/></div>
+ </div>
+ <input type="text" class="form-control" id="api_key_input"
+ t-att-value="apiKey or ''"
+ placeholder="BSgzTvR5L1GB9jriT451iTN4huVPxHmltG6T6eo"/>
+ </div>
+ <div class="small form-text text-muted">
+ Hint: How to use Google Map on your website (Contact Us page and as a snippet)
+ <br/>
+ <a target="_blank" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,static_maps_backend&amp;keyType=CLIENT_SIDE&amp;reusekey=true">
+ <i class="fa fa-arrow-right"/>
+ Create a Google Project and Get a Key
+ </a>
+ <br/>
+ <a target="_blank" href="https://cloud.google.com/maps-platform/pricing">
+ <i class="fa fa-arrow-right"/>
+ Enable billing on your Google Project
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
<!-- Theme - custom code -->
<div t-name="website.custom_code_dialog_content">