74 lines
2.8 KiB
XML
74 lines
2.8 KiB
XML
<templates id="template" xml:space="preserve">
|
|
<t t-name="website.contentMenu.dialog.submenu">
|
|
<li t-att-data-menu-id="submenu.id">
|
|
<div class="input-group">
|
|
<span class="input-group-addon fa fa-bars"/>
|
|
<span class="form-control">
|
|
<span class="js_menu_label">
|
|
<t t-esc="submenu.name"/>
|
|
</span>
|
|
<i class="pull-right fa fa-home" style="margin-top: 3px"/>
|
|
</span>
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-primary js_edit_menu fa fa-pencil-square-o"/>
|
|
<button type="button" class="btn btn-danger js_delete_menu fa fa-trash-o"/>
|
|
</span>
|
|
</div>
|
|
<t t-set="children" t-value="submenu.children"/>
|
|
<ul t-if="children">
|
|
<t t-foreach="children" t-as="submenu">
|
|
<t t-call="website.contentMenu.dialog.submenu"/>
|
|
</t>
|
|
</ul>
|
|
</li>
|
|
</t>
|
|
<t t-name="website.contentMenu.dialog.select">
|
|
<t t-call="web_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="web_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"/>
|
|
</t>
|
|
</ul>
|
|
<div class="mt16">
|
|
<div class="pull-right text-muted">
|
|
Drag a menu to the right to create a sub-menu
|
|
</div>
|
|
<div>
|
|
<a href="#" class="js_add_menu">
|
|
<i class="fa fa-plus-circle"/> Add Menu Entry
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
<t t-name="website.contentMenu.dialog.add" t-extend="web_editor.dialog.link">
|
|
<t t-jquery="t[t-set='title']" t-operation="inner">
|
|
<t t-if="!widget.update_mode">Add Menu Entry</t>
|
|
<t t-if="widget.update_mode">Edit Menu Entry</t>
|
|
</t>
|
|
<t t-jquery="form > div.form-horizontal" t-operation="replace"/>
|
|
<t t-jquery="form > div.list-group:first label" t-operation="replace">
|
|
<label for="link-new" class="control-label">
|
|
Menu Label
|
|
</label>
|
|
</t>
|
|
</t>
|
|
</templates>
|