*: web, mass_mailing, website, website_form, website_sale New CSS design of the editor (step 1/x). This work is unfortunately far from perfect but is a first step towards what we want. In particular, much CSS linked to elements that are meant to be removed/moved in the upcoming weeks was done in a huge rush but will thus hopefully be removed/reviewed before the 14.0 release. As the design is now far more complex including gradients and other "complex" elements, it was also very difficult to keep a design based on css-variable so this system was removed, which means that the editor now appears the same everywhere (backend, frontend, ...). The original goal of this system was to have an adapted style for backend, frontend and website visitors. Unfortunately, the current result was a very good frontend editor design, a not-so-good backend editor design (for mass mailing at least) and a totally unadapted design for the website visitors. Making this perfect will be achievable by loading different assets for those 3 areas and hopefully those assets will only differ by the values of editor scss variables. Part of https://github.com/odoo/odoo/pull/53930 task-2157252
32 lines
1.6 KiB
XML
32 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Snippet template -->
|
|
<template id="s_facebook_page" name="Facebook">
|
|
<div class="o_facebook_page"/>
|
|
</template>
|
|
|
|
<!-- Snippet options-->
|
|
<template id="s_facebook_page_options" inherit_id="website.snippet_options">
|
|
<xpath expr="." position="inside">
|
|
<div string="Page URL" data-js="facebookPage" data-selector=".o_facebook_page">
|
|
<we-input class="o_we_large_input" data-page-url="https://www.facebook.com/Odoo" data-no-preview="true"/>
|
|
<we-checkbox string="Cover Photo" data-option-name="show_cover" data-toggle-option="true" data-no-preview="true"/>
|
|
<we-checkbox string="Timeline" data-option-name="tab.timeline" data-toggle-option="true" data-no-preview="true"/>
|
|
<we-checkbox string="Events" data-option-name="tab.events" data-toggle-option="true" data-no-preview="true"/>
|
|
<we-checkbox string="Messages" data-option-name="tab.messages" data-toggle-option="true" data-no-preview="true"/>
|
|
<we-checkbox string="Small Header" data-option-name="small_header" data-toggle-option="true" data-no-preview="true"/>
|
|
<we-checkbox string="Friends' Faces" data-option-name="show_facepile" data-toggle-option="true" data-no-preview="true"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Snippet assets -->
|
|
<template id="assets_snippet_s_facebook_page_js_000" inherit_id="website.assets_frontend">
|
|
<xpath expr="//script[last()]" position="after">
|
|
<script type="text/javascript" src="/website/static/src/snippets/s_facebook_page/000.js"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|