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

« back to all changes in this revision

Viewing changes to addons/board/static/src/xml/board.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
<template>
 
2
<t t-name="DashBoard">
 
3
    <div class="oe_dashboard_links">
 
4
        <button type="button" class="button oe_dashboard_link_reset" title="Reset Layout.." t-att-style="view.fields_view.custom_view_id || session.debug ? null : 'display: none'">
 
5
            <img src="/board/static/src/img/layout_2-1.png" width="16" height="16"/>
 
6
            <span> Reset </span>
 
7
        </button>
 
8
        <button type="button" class="button oe_dashboard_link_change_layout" title="Change Layout..">
 
9
            <img src="/board/static/src/img/layout_1-1-1.png" width="16" height="16"/>
 
10
            <span> Change Layout </span>
 
11
        </button>
 
12
    </div>
 
13
    <table t-att-data-layout="node.attrs.layout" t-attf-class="oe_dashboard oe_dashboard_layout_#{node.attrs.layout}" cellspacing="0" cellpadding="0" border="0">
 
14
    <tr>
 
15
        <td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
 
16
             t-att-id="view.element_id + '_column_' + column_index" t-attf-class="oe_dashboard_column index_#{column_index}">
 
17
 
 
18
            <t t-foreach="column.children" t-as="action" t-if="action.tag == 'action'" t-call="DashBoard.action"/>
 
19
        </td>
 
20
    </tr>
 
21
    </table>
 
22
</t>
 
23
<t t-name="DashBoard.action">
 
24
    <div t-att-data-id="action.attrs.name" class="oe_action">
 
25
        <h2 t-attf-class="oe_header #{action.attrs.string ? '' : 'oe_header_empty'}">
 
26
            <span class="oe_header_txt"> <t t-esc="action.attrs.string"/> </span>
 
27
            <input class = "oe_header_text" type="text"/>
 
28
            <t t-if="!action.attrs.string">&amp;nbsp;</t>
 
29
            <span class='oe_icon oe_close'></span>
 
30
            <span class='oe_icon oe_minimize oe_fold' t-if="!action.attrs.fold"></span>
 
31
            <span class='oe_icon oe_maximize oe_fold' t-if="action.attrs.fold"></span>
 
32
        </h2>
 
33
        
 
34
        <div t-attf-id="#{view.element_id}_action_#{column_index}_#{action_index}" class="oe_content" t-att-style="action.attrs.fold ? 'display: none' : null"></div>
 
35
    </div>
 
36
</t>
 
37
<t t-name="DashBoard.layouts">
 
38
    <div class="oe_dashboard_layout_selector">
 
39
        <p>
 
40
            <strong>Choose dashboard layout</strong>
 
41
        </p>
 
42
        <ul>
 
43
            <li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
 
44
                <img t-attf-src="/board/static/src/img/layout_#{layout}.png"/>
 
45
                <img t-if="layout == current_layout"
 
46
                    src="/web/static/src/img/icons/gtk-apply.png" width="16" height="16" class="oe_dashboard_selected_layout"/>
 
47
            </li>
 
48
        </ul>
 
49
    </div>
 
50
</t>
 
51
<t t-name="DashBoard.xml">
 
52
    <form t-att-string="form_title" version="7.0">
 
53
        <board t-att-style="style">
 
54
            <column t-foreach="columns" t-as="column">
 
55
                <action t-foreach="column" t-as="action" t-att="action"/>
 
56
            </column>
 
57
        </board>
 
58
    </form>
 
59
</t>
 
60
<div t-name="HomeWidget" class="oe_dashboard_home_widget"/>
 
61
<t t-name="HomeWidget.content">
 
62
    <h3><t t-esc="widget.title"/></h3>
 
63
    <iframe width="100%" frameborder="0" t-att-src="url"/>
 
64
</t>
 
65
 
 
66
<div t-name="SearchView.addtodashboard" class="oe_searchview_dashboard">
 
67
    <h4>Add to Dashboard</h4>
 
68
    <form>
 
69
        <p><input placeholder="Title of new dashboard item"/></p>
 
70
        <button class="oe_apply" type="submit">Add</button>
 
71
    </form>
 
72
</div>
 
73
<t t-name="SearchView.addtodashboard.selection">
 
74
    <select>
 
75
        <option t-foreach="selections" t-as="element"
 
76
                t-att-value="element.id ">
 
77
            <t t-esc="element.name"/></option>
 
78
    </select>
 
79
</t>
 
80
 
 
81
</template>