summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-02-06 07:05:13 +0000
committerqsm-odoo <qsm@odoo.com>2020-02-28 13:48:39 +0000
commit560e3af48ab9327b49a8cf44a9b0416dfb5b95de (patch)
tree7a3d3edb887742977d7b7fc493c1c851b6e8edcb /addons/website/static/src/xml/website.editor.xml
parentda46ba7bc1af7e192ffaed654eee82d0a8ef90be (diff)
[IMP] web_editor, website: adds custom code to head and footer
This commit adds two buttons on the Theme side menu that allow users to add custom XML to the head and to the footer of the website. Part of #44633 task-2168391 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index ab61ac35692..9c8791d8fe7 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -83,4 +83,10 @@
Add a Google Font
</we-button>
</t>
+
+ <!-- Theme - custom code -->
+ <div t-name="website.custom_code_dialog_content">
+ <div class="mb-2" t-esc="contentText"/>
+ <div class="o_ace_editor_container"/>
+ </div>
</templates>