~tempo-openerp/+junk/loewert-report-name

« back to all changes in this revision

Viewing changes to addons/web_view_editor/static/src/xml/view_editor.xml

  • Committer: jbe at tempo-consulting
  • Date: 2013-08-21 08:48:11 UTC
  • Revision ID: jbe@tempo-consulting.fr-20130821084811-913uo4l7b5ayxq8m
[NEW] Création de la branche trunk Loewert

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" ?>
 
2
<template>
 
3
<t t-name="view_editor">
 
4
    <table class="oe_view_editor">
 
5
        <t t-call="view_editor.row"/>
 
6
    </table>
 
7
</t>
 
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">
 
10
        <td width="90%">
 
11
            <table class="oe_view_editor_field">
 
12
                <tr>
 
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"/>
 
16
                    </td>
 
17
                    <td style="cursor: pointer;">
 
18
                        <a style="text-decoration:none" href="javascript:void(0);">
 
19
                            <t t-esc="rec.name"/>
 
20
                        </a>
 
21
                    </td>
 
22
                </tr>
 
23
            </table>
 
24
        </td>
 
25
        <td width="2%">
 
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;"/>
 
28
        </td>
 
29
        <td width="2%">
 
30
            <img  id="side-remove" t-att-src='_s + "/web/static/src/img/icons/gtk-remove.png"' style="cursor: pointer;"/>
 
31
        </td>
 
32
        <td width="2%">
 
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;"/>
 
35
        </td>
 
36
        <td width="2%">
 
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;"/>
 
39
        </td>
 
40
        <td width="2%">
 
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;"/>
 
43
        </td>
 
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"/>
 
47
        </t>
 
48
    </tr>
 
49
</t>
 
50
<t t-name="vieweditor_char">
 
51
    <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
 
52
</t>
 
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">
 
56
            <option
 
57
                t-att-value="typeof option === 'object' ? option[0] : option">
 
58
                <t t-esc="typeof option === 'object' ? option[1] : option"/>
 
59
            </option>
 
60
        </t>
 
61
    </select>
 
62
</t>
 
63
<t t-name="vieweditor_boolean">
 
64
    <input type="checkbox" t-att-id="widget.name"/>
 
65
</t>
 
66
</template>