summaryrefslogtreecommitdiff
path: root/addons/web_view_editor/static/src/xml
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-07-30 14:48:15 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-07-30 14:48:15 +0530
commit8e5a0fa9b07396dffbe90acbad8e98f6b1148f69 (patch)
tree4a9a31aa35f23ece99a6486568d30186fc07b81f /addons/web_view_editor/static/src/xml
parent45951a0a49d1bec94789a3e8f703a4d179152178 (diff)
[IMP]removed view editor from web to web addons.
bzr revid: vme@tinyerp.com-20120730091815-scj8dt3j1tr1jpvx
Diffstat (limited to 'addons/web_view_editor/static/src/xml')
-rw-r--r--addons/web_view_editor/static/src/xml/view_editor.xml66
1 files changed, 66 insertions, 0 deletions
diff --git a/addons/web_view_editor/static/src/xml/view_editor.xml b/addons/web_view_editor/static/src/xml/view_editor.xml
new file mode 100644
index 00000000000..e93fb3bd3ff
--- /dev/null
+++ b/addons/web_view_editor/static/src/xml/view_editor.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<template>
+<t t-name="view_editor">
+ <table class="oe_view_editor">
+ <t t-call="view_editor.row"/>
+ </table>
+</t>
+<t t-name="view_editor.row">
+ <tr t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
+ <td width="90%">
+ <table class="oe_view_editor_field">
+ <tr>
+ <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
+ <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
+ t-att-src='_s + "/web/static/src/img/collapse.gif"' width="16" height="16" border="0"/>
+ </td>
+ <td style="cursor: pointer;">
+ <a style="text-decoration:none" href="javascript:void(0);">
+ <t t-esc="rec.name"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="2%">
+ <img t-if="rec.att_list.length"
+ id="side-add" t-att-src='_s + "/web/static/src/img/icons/gtk-add.png"' style="cursor: pointer;"/>
+ </td>
+ <td width="2%">
+ <img id="side-remove" t-att-src='_s + "/web/static/src/img/icons/gtk-remove.png"' style="cursor: pointer;"/>
+ </td>
+ <td width="2%">
+ <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
+ id="side-edit" t-att-src='_s + "/web/static/src/img/icons/gtk-edit.png"' style="cursor: pointer;"/>
+ </td>
+ <td width="2%">
+ <img t-if="rec.att_list.length"
+ id="side-up" t-att-src='_s + "/web/static/src/img/icons/gtk-go-up.png"' style="cursor: pointer;"/>
+ </td>
+ <td width="2%">
+ <img t-if="rec.att_list.length"
+ id="side-down" t-att-src='_s + "/web/static/src/img/icons/gtk-go-down.png"' style="cursor: pointer;"/>
+ </td>
+ <t t-if="rec.child_id.length">
+ <t t-set="data" t-value="rec.child_id"/>
+ <t t-call="view_editor.row"/>
+ </t>
+ </tr>
+</t>
+<t t-name="vieweditor_char">
+ <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
+</t>
+<t t-name="vieweditor_selection">
+ <select t-att-id="widget.name" >
+ <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
+ <option
+ t-att-value="typeof option === 'object' ? option[0] : option">
+ <t t-esc="typeof option === 'object' ? option[1] : option"/>
+ </option>
+ </t>
+ </select>
+</t>
+<t t-name="vieweditor_boolean">
+ <input type="checkbox" t-att-id="widget.name"/>
+</t>
+</template>