* web_editor, website, mass_mailing This menu allowed to scroll to the snippets sections by clicking on their corresponding icons. It was useless as the sections are not taking a lot of height. This also appeared buggy as clicking on the last icon highlighted only the second one as this second one was still the first section visible on the screen when the last section was fully visible. This also added fours buttons to the interface which contains already a lot of them. Now this is replaced by a title "Add blocks" which makes the editor cleaner and also improved the performance to enter the edit mode.
28 lines
792 B
XML
28 lines
792 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="snippets">
|
|
<h2 id="snippets_menu">Add blocks</h2>
|
|
|
|
<div id="o_scroll">
|
|
<div id="snippet_structure" class="o_panel">
|
|
<div class="o_panel_header">
|
|
<i class="fa fa-th-large"/> First Panel
|
|
</div>
|
|
<div class="o_panel_body"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="snippet_options" class="hidden">
|
|
<t t-call="web_editor.snippet_options"/>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- options (data-selector, data-drop-in, data-drop-near, data-js to link js object ) -->
|
|
<template id="snippet_options">
|
|
<!-- t-field -->
|
|
<div data-js='many2one'
|
|
data-selector="[data-oe-many2one-model]:not([data-oe-readonly])"
|
|
data-no-check="true"/>
|
|
</template>
|
|
</odoo>
|