File: s_embed_code.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (52 lines) | stat: -rw-r--r-- 2,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template name="Embed Code" id="s_embed_code">
    <t t-set="embed_code">
        <!-- Keep the next line as a one-liner, this is to nicely show the
        code in the ace editor when the user is replacing it. The `&#10;`
        acts as line returns. -->
        <div class="font-monospace pt8 bg-light">&#10;    Click on <b>"Edit"</b> in the right panel to replace this with your own HTML code&#10;</div>
    </t>
    <section class="s_embed_code text-center pt64 pb64">
        <template class="s_embed_code_saved">
            <t t-out="embed_code"/>
        </template>
        <div class="s_embed_code_embedded container o_not_editable">
            <t t-out="embed_code"/>
        </div>
    </section>
</template>

<!-- Snippet's Options -->
<template id="s_embed_code_options" inherit_id="website.snippet_options">
    <xpath expr="//div[@data-js='Box']" position="before">
        <div data-js="EmbedCode" data-selector=".s_embed_code">
            <we-row string="Code">
                <we-button data-edit-code="" data-no-preview="true"
                        class="o_we_edit_code o_we_no_toggle o_we_bg_success active"
                        title="Edit embedded code">Edit</we-button>
            </we-row>
            <we-button-group string="Alignment">
                <we-button class="fa fa-fw fa-align-left" title="Left" data-select-class="text-start"/>
                <we-button class="fa fa-fw fa-align-center" title="Center" data-select-class="text-center"/>
                <we-button class="fa fa-fw fa-align-right" title="Right" data-select-class="text-end"/>
            </we-button-group>
        </div>
    </xpath>
</template>

<!-- Snippet assets -->
<record id="website.s_embed_code_000_js" model="ir.asset">
    <field name="name">Embed Code 000 JS</field>
    <field name="bundle">web.assets_frontend</field>
    <field name="path">website/static/src/snippets/s_embed_code/000.js</field>
</record>

<record id="website.s_embed_code_000_scss" model="ir.asset">
    <field name="name">Embed Code 000 SCSS</field>
    <field name="bundle">web.assets_frontend</field>
    <field name="path">website/static/src/snippets/s_embed_code/000.scss</field>
</record>

</odoo>