[IMP] Changed the default home page
[odoo/odoo.git] / addons / web_dashboard / static / src / xml / web_dashboard.xml
1 <template>
2 <t t-name="DashBoard">
3     <div class="oe-dashboard-links">
4         <button type="button" class="button oe-dashboard-link-reset" t-att-style="view.fields_view.custom_view_id ? null : 'display: none'">
5             <img src="/web/static/src/img/icons/STOCK_GOTO_FIRST.png" width="16" height="16"/>
6             <span>Reset</span>
7         </button>
8         <button type="button" class="button oe-dashboard-link-undo" t-att-style="view.fields_view.custom_view_id ? null : 'display: none'">
9             <img src="/web/static/src/img/icons/gtk-undo.png" width="16" height="16"/>
10             <span>Undo</span>
11         </button>
12         <button type="button" class="button oe-dashboard-link-change_layout">
13             <img src="/web/static/src/img/icons/gtk-edit.png" width="16" height="16"/>
14             <span>Change layout</span>
15         </button>
16     </div>
17     <table t-att-data-layout="node.attrs.style" t-attf-class="oe-dashboard oe-dashboard-layout_#{node.attrs.style}" cellspacing="0" cellpadding="0" border="0">
18     <tr>
19         <td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
20              t-att-id="view.element_id + '_column_' + column_index" t-attf-class="oe-dashboard-column index_#{column_index}">
21
22             <t t-foreach="column.children" t-as="action" t-if="action.tag == 'action'" t-call="DashBoard.action"/>
23         </td>
24     </tr>
25     </table>
26 </t>
27 <t t-name="DashBoard.action">
28     <div t-att-data-id="action.attrs.name" class="oe-dashboard-action">
29         <h2 t-attf-class="oe-dashboard-action-header #{action.attrs.string ? '' : 'oe-dashboard-action-header-empty'}">
30             <t t-esc="action.attrs.string"/>
31             <t t-if="!action.attrs.string">&amp;nbsp;</t>
32             <span class='ui-icon ui-icon-closethick'></span>
33             <span class='ui-icon ui-icon-minusthick oe-dashboard-fold' t-if="!action.attrs.fold"></span>
34             <span class='ui-icon ui-icon-plusthick oe-dashboard-fold' t-if="action.attrs.fold"></span>
35         </h2>
36         <div t-attf-id="#{view.element_id}_action_#{column_index}_#{action_index}" class="oe-dashboard-action-content" t-att-style="action.attrs.fold ? 'display: none' : null"></div>
37     </div>
38 </t>
39 <t t-name="DashBoard.layouts">
40     <div class="oe-dashboard-layout-selector">
41         <p>
42             <strong>Choose dashboard layout</strong>
43         </p>
44         <ul>
45             <li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
46                 <img t-attf-src="/web_dashboard/static/src/img/layout_#{layout}.png"/>
47                 <img t-if="layout == current_layout"
48                     src="/web/static/src/img/icons/gtk-apply.png" width="16" height="16" class="oe-selected-layout"/>
49             </li>
50         </ul>
51     </div>
52 </t>
53 <t t-name="DashBoard.xml">
54     <form t-att-string="form_title">
55         <board t-att-style="style">
56             <column t-foreach="columns" t-as="column">
57                 <action t-foreach="column" t-as="action" t-att="action"/>
58             </column>
59         </board>
60     </form>
61 </t>
62 <div t-name="ConfigOverview" class="oe-dashboard-config-overview"/>
63 <t t-name="ConfigOverview.content">
64     <div class="oe-config-progress">
65         <h6 class="oe-config-progress-title">
66             progress: <t t-esc="Math.round(completion)"/>%
67         </h6>
68         <div class="oe-config-progress-bar" t-att-data-completion="completion"/>
69     </div>
70     <dl>
71         <t t-foreach="groups" t-as="category">
72             <dt><t t-esc="category"/></dt>
73             <dd><ul>
74                 <li t-foreach="category_value" t-as="todo"
75                     t-att-class="todo.done ? 'oe-done' : undefined"
76                     t-att-data-id="todo.id"
77                     t-att-title="!todo.done ? 'Execute task \'' + todo.name + '\'' : undefined">
78                     <input type="checkbox" t-att-value="todo.id"
79                        t-att-title="!todo.done ? 'Mark this task as done' : undefined"
80                        t-att-checked="todo.done ? 'checked' : undefined"/>
81                     <t t-esc="todo.name"/>
82                 </li>
83             </ul></dd>
84         </t>
85
86     </dl>
87 </t>
88 <div t-name="ApplicationTiles" class="oe-dashboard-home-tiles"/>
89 <table t-name="ApplicationTiles.content" width="100%">
90     <tr t-foreach="rows" t-as="row">
91         <td t-foreach="row" t-as="application" width="33.3%">
92             <div class="oe-dashboard-home-tile"
93                  t-att-data-menuid="application.id">
94                 <div class="oe-dashboard-home-tile-icon">
95                     <img t-if="application.web_icon_data"
96                         t-att-src="'data:image/png;base64,' + application.web_icon_data"
97                     /><img t-if="application.web_icon_hover_data" class="hover"
98                         t-att-src="'data:image/png;base64,' + application.web_icon_hover_data"/>
99                 </div>
100                 <span><t t-esc="application.name"/></span>
101             </div>
102         </td>
103     </tr>
104 </table>
105 <div t-name="HomeWidget" class="oe-dashboard-home-widget"/>
106 <t t-name="HomeWidget.content">
107     <h3><t t-esc="widget.title"/></h3>
108     <iframe width="100%" frameborder="0" t-att-src="url"/>
109 </t>
110 <div t-name="StaticHome" class="oe-static-home">
111     <h1>Welcome to your new OpenERP instance.</h1>
112     <div class="oe-static-home-banner">
113         <li>Remember to bookmark this page.</li>
114         <li>Remember your login: <t t-esc="session.username"/></li>
115         <li>Choose the first OpenERP Application you want to install..</li>
116     </div>
117     <div class="oe-static-home-tiles">
118         <table width="100%">
119             <tr t-foreach="rows" t-as="row">
120                 <td t-foreach="row" t-as="application" width="25%">
121                     <table class="oe-static-home-tile">
122                         <tr>
123                             <td>
124                                 <div class="oe-static-home-tile-logo">
125                                     <img t-att-src="'/web_dashboard/static/src/img/installer_' + application.module + '.png'"/>
126                                 </div>
127                             </td>
128                             <td>
129                                 <div class="oe-static-home-tile-text">
130                                     <h2><t t-esc="application.name"/></h2>
131                                     <p><t t-esc="application.help"/></p>
132                                     <button type="button" t-att-value="application.module" t-att-data-menu="application.menu">Install</button>
133                                 </div>
134                             </td>
135                         </tr>
136                     </table>
137                 </td>
138             </tr>
139         </table>
140     </div>
141 </div>
142 </template>