1
<?xml version="1.0" encoding="UTF-8" ?>
3
<t t-name="view_editor">
4
<table class="oe_view_editor">
5
<t t-call="view_editor.row"/>
8
<t t-name="view_editor.row">
9
<tr t-att-id="'viewedit-' + rec.id" t-att-level="rec.level" t-foreach="data" t-as="rec">
11
<table class="oe_view_editor_field">
13
<td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
14
<img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
15
t-att-src='_s + "/web/static/src/img/collapse.gif"' width="16" height="16" border="0"/>
17
<td style="cursor: pointer;">
18
<a style="text-decoration:none" href="javascript:void(0);">
26
<img t-if="rec.att_list.length"
27
id="side-add" t-att-src='_s + "/web/static/src/img/icons/gtk-add.png"' style="cursor: pointer;"/>
30
<img id="side-remove" t-att-src='_s + "/web/static/src/img/icons/gtk-remove.png"' style="cursor: pointer;"/>
33
<img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
34
id="side-edit" t-att-src='_s + "/web/static/src/img/icons/gtk-edit.png"' style="cursor: pointer;"/>
37
<img t-if="rec.att_list.length"
38
id="side-up" t-att-src='_s + "/web/static/src/img/icons/gtk-go-up.png"' style="cursor: pointer;"/>
41
<img t-if="rec.att_list.length"
42
id="side-down" t-att-src='_s + "/web/static/src/img/icons/gtk-go-down.png"' style="cursor: pointer;"/>
44
<t t-if="rec.child_id.length">
45
<t t-set="data" t-value="rec.child_id"/>
46
<t t-call="view_editor.row"/>
50
<t t-name="vieweditor_char">
51
<input type="text" t-att-id="widget.name" class="field_char" size="50"/>
53
<t t-name="vieweditor_selection">
54
<select t-att-id="widget.name" >
55
<t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
57
t-att-value="typeof option === 'object' ? option[0] : option">
58
<t t-esc="typeof option === 'object' ? option[1] : option"/>
63
<t t-name="vieweditor_boolean">
64
<input type="checkbox" t-att-id="widget.name"/>