76857f0737776582f05b2615a50bdc314b7a0ec0
[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" title="Reset Layout.." t-att-style="view.fields_view.custom_view_id ? null : 'display: none'">
5             <img src="/web_dashboard/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="/web_dashboard/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.style" t-attf-class="oe-dashboard oe-dashboard-layout_#{node.attrs.style}" 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-dashboard-action">
25         <h2 t-attf-class="oe-dashboard-action-header #{action.attrs.string ? '' : 'oe-dashboard-action-header-empty'}">
26             <t t-esc="action.attrs.string"/>
27             <t t-if="!action.attrs.string">&amp;nbsp;</t>
28             <button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_button oe_dashboard_button_create">Create</button>
29             <span class='ui-icon ui-icon-closethick'></span>
30             <span class='ui-icon ui-icon-minusthick oe-dashboard-fold' t-if="!action.attrs.fold"></span>
31             <span class='ui-icon ui-icon-plusthick oe-dashboard-fold' t-if="action.attrs.fold"></span>
32         </h2>
33         <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>
34     </div>
35 </t>
36 <t t-name="DashBoard.layouts">
37     <div class="oe-dashboard-layout-selector">
38         <p>
39             <strong>Choose dashboard layout</strong>
40         </p>
41         <ul>
42             <li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
43                 <img t-attf-src="/web_dashboard/static/src/img/layout_#{layout}.png"/>
44                 <img t-if="layout == current_layout"
45                     src="/web/static/src/img/icons/gtk-apply.png" width="16" height="16" class="oe-selected-layout"/>
46             </li>
47         </ul>
48     </div>
49 </t>
50 <t t-name="DashBoard.xml">
51     <form t-att-string="form_title">
52         <board t-att-style="style">
53             <column t-foreach="columns" t-as="column">
54                 <action t-foreach="column" t-as="action" t-att="action"/>
55             </column>
56         </board>
57     </form>
58 </t>
59 <div t-name="ConfigOverview" class="oe-dashboard-config-overview"/>
60 <t t-name="ConfigOverview.content">
61     <div class="oe-config-progress">
62         <h6 class="oe-config-progress-title">
63             progress: <t t-esc="Math.round(completion)"/>%
64         </h6>
65         <div class="oe-config-progress-bar" t-att-data-completion="completion"/>
66     </div>
67     <p class="oe-config-tip">Click on the functionalites listed below to launch them and configure your system</p>
68     <dl>
69         <t t-foreach="groups" t-as="category">
70             <dt><t t-esc="category"/></dt>
71             <dd><ul>
72                 <li t-foreach="category_value" t-as="todo"
73                     t-att-class="todo.done ? 'oe-done' : undefined"
74                     t-att-data-id="todo.id"
75                     t-att-title="!todo.done ? _t('Execute task') + ' \'' + todo.name + '\'' : undefined">
76                     <span t-att-class="todo.done ? 'oe-label' : 'oe-label oe-todo'"><t t-esc="todo.done ? _t('Done') : _t('To do')"/></span>
77                     <t t-esc="todo.name"/>
78                 </li>
79             </ul></dd>
80         </t>
81
82     </dl>
83 </t>
84
85 <div t-name="HomeWidget" class="oe-dashboard-home-widget"/>
86 <t t-name="HomeWidget.content">
87     <h3><t t-esc="widget.title"/></h3>
88     <iframe width="100%" frameborder="0" t-att-src="url"/>
89 </t>
90
91 <t t-name="ApplicationTiles.content">
92     <ul class="oe_app_tiles">
93         <t t-foreach="applications" t-as="application" >
94         <li>
95             <a href="#" class="oe_install-module-link" t-att-data-module="application.module" t-att-data-menu="application.id" >
96                 <img t-if="application.web_icon_data" t-att-src="'data:image/png;base64,' + application.web_icon_data" 
97                 /><img t-if="application.web_icon_hover_data" class="hover" t-att-src="'data:image/png;base64,' + application.web_icon_hover_data"/>
98                 <span><t t-esc="application.name"/></span>
99             </a>
100         </li>
101         </t>
102     </ul>
103 </t>
104
105 <t t-name="web_dashboard.ApplicationTiles">
106     <div>
107         <div class="oe_applications_tiles">
108         <h1 class="oe_welcome_message">Welcome to OpenERP</h1>
109         </div>
110     </div>
111 </t>
112
113 <div t-name="web_dashboard.ApplicationInstaller">
114     <div class="oe_initial_welcome_message">
115         <ul>
116             <li>Remember to bookmark 
117                 <a class="oe_welcome_url" t-att-href="widget.session.origin">This url</a>
118             </li>
119             <li>Your login: <t t-esc="widget.session.username"/></li>
120         </ul>
121     </div>
122     <div class="oe_installer" />
123 </div>
124 </template>