[IMP] website: menu editor open a modal to select the menu to edit if more of one menu in the page (like event)

This commit is contained in:
Christophe Matthieu
2015-02-11 12:31:52 +01:00
parent 8d34ada282
commit e8526dd013
6 changed files with 64 additions and 16 deletions
@@ -22,9 +22,25 @@
</ul>
</li>
</t>
<t t-name="website.contentMenu.dialog.select">
<t t-call="website.editor.dialog">
<t t-set="title">Select a Menu</t>
<t t-set="button">Continue</t>
<select class="form-control mb16" t-if="widget.roots">
<t t-foreach="widget.roots" t-as="root">
<option t-att-value="root.id"><t t-esc="root.name"/></option>
</t>
</select>
</t>
</t>
<t t-name="website.contentMenu.dialog.edit">
<t t-call="website.editor.dialog">
<t t-set="title">Edit Menu</t>
<select class="form-control mb16" t-if="widget.roots">
<t t-foreach="widget.roots" t-as="root">
<option t-att-value="root.id"><t t-esc="root.name"/></option>
</t>
</select>
<ul class="oe_menu_editor list-unstyled">
<t t-foreach="widget.menu.children" t-as="submenu">
<t t-call="website.contentMenu.dialog.submenu"/>