ai*
This commit is contained in:
25
ai_website_livechat/views/snippets/s_ai_livechat.xml
Normal file
25
ai_website_livechat/views/snippets/s_ai_livechat.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_ai_livechat" name="AI Live Chat">
|
||||
<section class="s_ai_livechat pt64 pb96">
|
||||
<div class="o_container_small" data-name="ai_livechat_container">
|
||||
<h2 class="h3-fs" style="text-align: center;">Need help?<br/></h2>
|
||||
<div class="ai_livechat_component py-2" contenteditable="false"/>
|
||||
|
||||
<!-- Demo content for the snippets modal preview, will be removed on drop -->
|
||||
<div class="s_ai_livechat_preview">
|
||||
<div class="ai_website_livechat_form form-control d-flex align-items-center py-0 ps-lg-3 ps-xl-4 pe-lg-2">
|
||||
<span class="text-muted flex-grow-1">Ask AI</span>
|
||||
<div class="align-self-baseline py-2">
|
||||
<button class="ai_website_livechat_form_button btn btn-sm">
|
||||
<i class="oi oi-fw oi-lg oi-filled fs-5" data-icon="send" style="scale: .75;"/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
13
ai_website_livechat/views/snippets/snippets.xml
Normal file
13
ai_website_livechat/views/snippets/snippets.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="snippets" inherit_id="website.snippets">
|
||||
<!-- Use xpath to make the snippet appear before other snippets -->
|
||||
<xpath expr="//t[@id='ai_livechat_hook']" position="replace">
|
||||
<t t-snippet="ai_website_livechat.s_ai_livechat" group="contact_and_forms" label="AI">
|
||||
<keywords>AI,chat,livechat</keywords>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user