diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-08-28 09:33:20 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-09-03 15:31:42 +0000 |
| commit | 1345702258adbfbee0d780dc22e552395e6d1df7 (patch) | |
| tree | d1300117a28d78deb0753ae0a611d5d5a134270a /addons/website/static/src/xml/website.contentMenu.xml | |
| parent | 2d64bb58cd6ab45e4266e19f75f651e045479472 (diff) | |
[IMP] website: add the ability to create mega menus
Allow users to create complex website menus, also known as "mega menus".
Mega menus are enabled individually via the edit menu dialog, then their
content can be customized by dragging snippets in them like any other
snippets area in edit mode.
task-1925319
closes odoo/odoo#36097
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Andrea Ulliana <aul@odoo.com>
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
| -rw-r--r-- | addons/website/static/src/xml/website.contentMenu.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/website/static/src/xml/website.contentMenu.xml b/addons/website/static/src/xml/website.contentMenu.xml index 9c938c38847..af318703b5c 100644 --- a/addons/website/static/src/xml/website.contentMenu.xml +++ b/addons/website/static/src/xml/website.contentMenu.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <templates id="template" xml:space="preserve"> <t t-name="website.contentMenu.dialog.submenu"> - <li t-att-data-menu-id="submenu.fields['id']"> + <li t-att-data-menu-id="submenu.fields['id']" t-att-data-mega-menu="submenu.fields['is_mega_menu'] ? true : undefined"> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text fa fa-bars" role="img" aria-label="Dropdown menu" title="Dropdown menu"/> @@ -10,6 +10,7 @@ <span class="js_menu_label o_text_overflow flex-grow-1"> <t t-esc="submenu.fields['name']"/> </span> + <span t-if="submenu.fields['is_mega_menu']" class="badge badge-primary">Mega Menu</span> <i t-if="submenu.is_homepage" class="fa fa-home ml-3" role="img" aria-label="Home" title="Home"/> </span> <span class="input-group-append"> @@ -49,6 +50,9 @@ </small> <a href="#" class="js_add_menu"> <i class="fa fa-plus-circle"/> Add Menu Item + </a><br/> + <a href="#" class="js_add_menu" data-type="mega"> + <i class="fa fa-plus-circle"/> Add Mega Menu Item </a> </div> </div> |
