Files
odoo_source/addons/website_event/views/snippets/snippets.xml
T
qsm-odoo 29613c6ec4 [FIX] web_editor: fix the look of the indent symbol in the editor panel
As a stable fix, to not touch XML templates and break existing
translations, the ⌙ character was automatically replaced by └ which
makes more sense for the usecase and should work properly in all
browsers. The ⌙ character is actually rendered mirrored on Windows 11
Chrome (and others) as the font used for those unicode characters is
left to the browser. We could force a font of our own but it's probably
not worth it.

A better solution with a SVG or CSS solution has to be done in master.
That would unify the look of the symbol across all browsers and
also prevent special characters to be placed in translations.

With this forward-port commit, we'll start first by using └ via a CSS
rule. Three new classes have been created: o_we_sublevel_1,
o_we_sublevel_2 and o_we_sublevel_3. Adding any of them on a widget
automatically adds the └ character. Then choosing 1, 2 or 3 controls
the indentation, which was previously controlled by placing the  
HTML entity directly inside strings.

This commit also takes the opportunity to fix some of those level
indentations (sometimes 2 was used instead of 1 or 1 was used instead of
2, etc) and also review some related labels.

closes odoo/odoo#97361

X-original-commit: e5d45643598671077ade7e41f0dbfe2b502665b8
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-08-04 11:45:31 +02:00

89 lines
4.5 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="remove_external_snippets" inherit_id="website.external_snippets">
<xpath expr="//t[@t-install='website_event']" position="replace"/>
</template>
<template id="snippets" inherit_id="website.snippets">
<xpath expr="//t[@id='event_upcoming_snippet_hook']" position="replace">
<t t-snippet="website_event.s_events" t-thumbnail="/website/static/src/img/snippets_thumbs/s_event_upcoming_snippet.svg"/>
</xpath>
</template>
<template id="snippet_options" inherit_id="website.snippet_options" name="Event snippet options">
<xpath expr="." position="inside">
<!-- Events page -->
<div data-selector="main:has(.o_wevent_events_list)" data-page-options="true" data-no-check="true" string="Events Page">
<we-select string="Layout" data-no-preview="true" data-reload="/">
<we-button data-customize-website-views="website_event.opt_events_list_columns">Grid</we-button>
<we-button data-customize-website-views="">List</we-button>
</we-select>
<we-checkbox string="Cards"
class="o_we_sublevel_1"
data-customize-website-views="website_event.opt_events_list_cards"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Templates"
class="o_we_sublevel_1"
data-customize-website-views="website_event.opt_events_list_categories"
data-no-preview="true"
data-reload="/"/>
<we-row string="Top Bar Filter" class="o_we_full_row">
<we-button string="Date"
data-customize-website-views="website_event.event_time"
data-no-preview="true"
data-reload="/"/>
<we-button string="Countries"
data-customize-website-views="website_event.event_location"
data-no-preview="true"
data-reload="/"/>
</we-row>
<we-checkbox string="Sidebar"
data-name="events_sidebar_opt"
data-customize-website-views="website_event.opt_index_sidebar"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="About Us"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_about_us"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Follow Us"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_follow_us"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Photos"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_photos"
data-no-preview="true"
data-reload="/"/>
<we-checkbox string="Quotes"
class="o_we_sublevel_1"
data-dependencies="events_sidebar_opt"
data-customize-website-views="website_event.index_sidebar_quotes"
data-no-preview="true"
data-reload="/"/>
</div>
<!-- Event page -->
<div data-selector="main:has(.o_wevent_event_title)" data-page-options="true" data-no-check="true" string="Event Page">
<we-checkbox string="Fold Tickets Details"
data-customize-website-views="website_event.fold_register_details"
data-no-preview="true"
data-reload="/"/>
</div>
<div data-js="WebsiteEvent" data-selector="main:has(.o_wevent_event)" data-page-options="true" data-no-check="true" string="Event Page">
<we-checkbox string="Sub-menu (Specific)"
data-display-submenu="true"
data-no-preview="true"
data-reload="/"/>
</div>
</xpath>
</template>
</odoo>