mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_artists, *: adapt s_tabs_images
*: theme_bistro, theme_buzzy, theme_nano, theme_notes, theme_treehouse, theme_zap This commit adapts customizations for `s_tabs_images`. task-4094407 Part of task-4077427 closes odoo/design-themes#1001 Related: odoo/odoo#185642 Related: odoo/upgrade#6691 Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
This commit is contained in:
@@ -103,6 +103,7 @@ CONFLICTUAL_CLASSES_RE = {
|
||||
's_timeline_card',
|
||||
's_website_form_custom', 's_website_form_dnone', 's_website_form_field', 's_website_form_input', 's_website_form_mark', 's_website_form_submit', 's_website_form_no_submit_label',
|
||||
's_donation_btn', 's_donation_custom_btn', 's_newsletter_subscribe_form_input_small',
|
||||
's_tabs_common', 's_tabs_nav_vertical', 's_tabs_nav_with_descriptions',
|
||||
],
|
||||
# Text
|
||||
re.compile(r'^text-(?!(center|end|start|bg-|lg-)).*$'): [
|
||||
|
||||
@@ -97,6 +97,7 @@
|
||||
'views/snippets/s_striped.xml',
|
||||
'views/snippets/s_table_of_content.xml',
|
||||
'views/snippets/s_tabs.xml',
|
||||
'views/snippets/s_tabs_images.xml',
|
||||
'views/snippets/s_timeline.xml',
|
||||
'views/snippets/s_timeline_images.xml',
|
||||
'views/snippets/s_timeline_list.xml',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_tabs_images" inherit_id="website.s_tabs_images">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -629,4 +629,11 @@
|
||||
<field name="url">/theme_bistro/static/src/img/content/s_split_intro_default_image.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Tabs Images -->
|
||||
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_5</field>
|
||||
<field name="name">website.s_tabs_images_default_image_5</field>
|
||||
<field name="url">/theme_bistro/static/src/img/backgrounds/12.jpg</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -335,6 +335,16 @@
|
||||
<field name="name">website.s_split_intro_default_image</field>
|
||||
<field name="url">/theme_buzzy/static/src/img/photos/s_split_intro_default_image.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Tabs Images -->
|
||||
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_4</field>
|
||||
<field name="name">website.s_tabs_images_default_image_4</field>
|
||||
<field name="url">/theme_buzzy/static/src/img/photos/s_cover_default_image.jpg</field>
|
||||
</record>
|
||||
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_5</field>
|
||||
<field name="name">website.s_tabs_images_default_image_5</field>
|
||||
<field name="url">/theme_buzzy/static/src/img/photos/library_image_13.jpg</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
'views/snippets/s_numbers_showcase.xml',
|
||||
'views/snippets/s_key_benefits.xml',
|
||||
'views/snippets/s_striped_center_top.xml',
|
||||
'views/snippets/s_tabs_images.xml',
|
||||
'views/snippets/s_big_number.xml',
|
||||
'views/snippets/s_image_frame.xml',
|
||||
'views/snippets/s_shape_image.xml',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_tabs_images" inherit_id="website.s_tabs_images">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -15,6 +15,7 @@
|
||||
'views/snippets/s_carousel.xml',
|
||||
'views/snippets/s_striped.xml',
|
||||
'views/snippets/s_striped_top.xml',
|
||||
'views/snippets/s_tabs_images.xml',
|
||||
'views/snippets/s_cards_grid.xml',
|
||||
'views/snippets/s_carousel_intro.xml',
|
||||
'views/snippets/s_comparisons_horizontal.xml',
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_tabs_images" inherit_id="website.s_tabs_images">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -571,6 +571,17 @@
|
||||
<field name="name">website.s_faq_horizontal_default_image_1</field>
|
||||
<field name="url">/theme_treehouse/static/src/img/backgrounds/15.jpg</field>
|
||||
</record>
|
||||
<!-- Tabs Images -->
|
||||
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_4</field>
|
||||
<field name="name">website.s_tabs_images_default_image_4</field>
|
||||
<field name="url">/theme_treehouse/static/src/img/backgrounds/16.jpg</field>
|
||||
</record>
|
||||
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_5</field>
|
||||
<field name="name">website.s_tabs_images_default_image_5</field>
|
||||
<field name="url">/theme_treehouse/static/src/img/backgrounds/10.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Website Form Overlay -->
|
||||
<record id="s_website_form_overlay_default_image" model="theme.ir.attachment">
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
<attribute name="class" add="card" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//*[hasclass('s_tabs_nav')]" position="attributes">
|
||||
<attribute name="class" add="card-header o_cc o_cc4 border-0 px-0 overflow-x-auto overflow-y-hidden" remove="mb-3" separator=" "/>
|
||||
<attribute name="class" add="card-header o_cc o_cc4 border-0 px-0" remove="mb-3" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//*[hasclass('nav')]" position="attributes">
|
||||
<attribute name="class" add="nav-tabs card-header-tabs mx-0 px-2 border-bottom" remove="nav-underline overflow-y-hidden overflow-x-auto" separator=" "/>
|
||||
<attribute name="class" add="nav-tabs card-header-tabs mx-0 px-2 border-bottom" remove="nav-underline" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//*[hasclass('s_tabs_content')]" position="attributes">
|
||||
<attribute name="class" add="p-3" separator=" "/>
|
||||
|
||||
@@ -513,4 +513,16 @@
|
||||
<field name="url">/theme_zap/static/src/img/backgrounds/04.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Tabs Images -->
|
||||
<record id="s_tabs_images_default_image_4" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_4</field>
|
||||
<field name="name">website.s_tabs_images_default_image_4</field>
|
||||
<field name="url">/theme_zap/static/src/img/backgrounds/13.jpg</field>
|
||||
</record>
|
||||
<record id="s_tabs_images_default_image_5" model="theme.ir.attachment">
|
||||
<field name="key">website.s_tabs_images_default_image_5</field>
|
||||
<field name="name">website.s_tabs_images_default_image_5</field>
|
||||
<field name="url">/theme_zap/static/src/img/backgrounds/06.jpg</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user