diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2014-02-18 11:26:18 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2014-02-18 11:26:18 +0530 |
| commit | 33b99c8a0737e08e6a243e41bb455d3ab7e6c851 (patch) | |
| tree | a1db52bfbeecf0c6fd9096604b7ec4540bb04197 /addons/website/static/src/xml/website.menu.xml | |
| parent | caa3510ea434e10c32dcbc134f9c74b2b9f18b2a (diff) | |
| parent | aa0eac1257b97c1be693e8a804fec6ecbf2bb22f (diff) | |
[MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20140218055618-r36w29vat7zig9ar
Diffstat (limited to 'addons/website/static/src/xml/website.menu.xml')
| -rw-r--r-- | addons/website/static/src/xml/website.menu.xml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.menu.xml b/addons/website/static/src/xml/website.menu.xml new file mode 100644 index 00000000000..5afc927a8bc --- /dev/null +++ b/addons/website/static/src/xml/website.menu.xml @@ -0,0 +1,65 @@ +<templates id="template" xml:space="preserve"> +<t t-name="website.menu.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" style="padding-top: 0; padding-bottom: 0;"> + <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-edit"/> + <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.menu.dialog.submenu"/> + </t> + </ul> + </li> +</t> +<t t-name="website.menu.dialog.edit"> + <t t-call="website.editor.dialog"> + <t t-set="title">Edit Menu</t> + <ul class="oe_menu_editor list-unstyled"> + <t t-foreach="widget.menu.children" t-as="submenu"> + <t t-call="website.menu.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.menu.dialog.add" t-extend="website.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="ul.list-group" t-operation="before"> + <div class="list-group"> + <div class="form-group list-group-item active"> + <h3 class="list-group-item-heading"> + <label for="link-new" class="control-label"> + Menu Label + </label> + </h3> + <input type="text" class="form-control" + id="link-text" required="required"/> + </div> + </div> + </t> +</t> +</templates> |
