summaryrefslogtreecommitdiff
path: root/addons/website/tests/template_qweb_test.xml
blob: ac7dd4e390fbcf34110e3adde60c4411e755910b (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <template id="website.test_bundle">
        <script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script>
        <script type="text/javascript" src="http://test.external.link/javascript1.js"></script>

        <link rel="stylesheet" type="text/css" href="/web/static/lib/jquery.ui/jquery-ui.css"/>
        <link rel="stylesheet" href="http://test.external.link/style1.css"/>

        <script type="text/javascript" src="/web/static/src/js/boot.js"></script>
        <script type="text/javascript" src="http://test.external.link/javascript2.js"></script>

        <link rel="stylesheet" href="http://test.external.link/style2.css"/>
    </template>

    <template id="website.test_template" name="test template 2">
&lt;!DOCTYPE html&gt;
<html>
    <head>
        <t t-call-assets="website.test_bundle" t-js="False"/>
        <meta/>
        <t t-call-assets="website.test_bundle" t-css="False"/>
    </head>
    <body>
        <img src="http://test.external.link/img.png"/>
        <img src="/website/static/img.png"/>
        <a href="http://test.external.link/link">x</a>
        <a href="/web/content/local_link">x</a>
        <span t-attf-style="background-image: url('/web/image/2')" t-att-empty="False">xxx</span>
        <div widget="html" t-field="user.signature"/>
        <div widget="image" t-field="user.image_1920" t-options="{'widget': 'image'}"/>
    </body>
</html>
    </template>

</odoo>