[REM] board: "reset dashboard" button
[odoo/odoo.git] / addons / board / static / src / xml / board.xml
1 <template>
2 <t t-name="DashBoard">
3     <div class="oe_dashboard_links">
4         <button type="button" class="button oe_dashboard_link_change_layout" title="Change Layout..">
5             <img src="/board/static/src/img/layout_1-1-1.png" width="16" height="16"/>
6             <span> Change Layout </span>
7         </button>
8     </div>
9     <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">
10     <tr>
11         <td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
12              t-att-id="view.element_id + '_column_' + column_index" t-attf-class="oe_dashboard_column index_#{column_index}">
13
14             <t t-foreach="column.children" t-as="action" t-if="action.tag == 'action'" t-call="DashBoard.action"/>
15         </td>
16     </tr>
17     </table>
18 </t>
19 <t t-name="DashBoard.action">
20     <div t-att-data-id="action.attrs.name" class="oe_action">
21         <h2 t-attf-class="oe_header #{action.attrs.string ? '' : 'oe_header_empty'}">
22             <span class="oe_header_txt"> <t t-esc="action.attrs.string"/> </span>
23             <input class = "oe_header_text" type="text"/>
24             <t t-if="!action.attrs.string">&amp;nbsp;</t>
25             <span class='oe_icon oe_close'></span>
26             <span class='oe_icon oe_minimize oe_fold' t-if="!action.attrs.fold"></span>
27             <span class='oe_icon oe_maximize oe_fold' t-if="action.attrs.fold"></span>
28         </h2>
29         
30         <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>
31     </div>
32 </t>
33 <t t-name="DashBoard.layouts">
34     <div class="oe_dashboard_layout_selector">
35         <p>
36             <strong>Choose dashboard layout</strong>
37         </p>
38         <ul>
39             <li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
40                 <img t-attf-src="/board/static/src/img/layout_#{layout}.png"/>
41                 <img t-if="layout == current_layout"
42                     src="/web/static/src/img/icons/gtk-apply.png" width="16" height="16" class="oe_dashboard_selected_layout"/>
43             </li>
44         </ul>
45     </div>
46 </t>
47 <t t-name="DashBoard.xml">
48     <form t-att-string="form_title">
49         <board t-att-style="style">
50             <column t-foreach="columns" t-as="column">
51                 <action t-foreach="column" t-as="action" t-att="action"/>
52             </column>
53         </board>
54     </form>
55 </t>
56 <div t-name="HomeWidget" class="oe_dashboard_home_widget"/>
57 <t t-name="HomeWidget.content">
58     <h3><t t-esc="widget.title"/></h3>
59     <iframe width="100%" frameborder="0" t-att-src="url"/>
60 </t>
61
62 <t t-name="SearchView.addtodashboard">
63     <li class="add-to-dashboard closed-menu"><a>Add to my Dashboard</a></li>
64     <li class="add-to-dashboard"><input class="form-control" type="text"/></li>
65     <li class="add-to-dashboard"><button class="btn btn-default">Add</button></li>
66 </t>
67 </template>