flectra/addons/website/static/src/xml/website.contentMenu.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

67 lines
2.6 KiB
XML

<?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.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 t-if="submenu.is_homepage" 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>
<div t-name="website.contentMenu.dialog.select">
<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>
</div>
<div t-name="website.contentMenu.dialog.edit">
<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="mt32">
<small class="pull-right text-muted">
Drag a menu to the right to create a sub-menu
</small>
<a href="#" class="js_add_menu">
<i class="fa fa-plus-circle"/> Add Menu Entry
</a>
</div>
</div>
<t t-name="website.contentMenu.dialog.edit.link_menu_options">
<div class="form-group">
<label class="control-label col-sm-3">Link</label>
<div class="col-sm-9">
<div class="radio">
<label class="checkbox-inline" for="new_page"><input type="radio" name="link_menu_options" id="new_page" value="new_page" checked="checked"/>New Page</label>
</div>
<div class="radio">
<label class="checkbox-inline" for="url"><input type="radio" name="link_menu_options" id="url" value="url" />Existing Page, URL or Email</label>
</div>
</div>
</div>
</t>
</templates>