2011-04-21 05:23:16 +00:00
|
|
|
<template>
|
2011-05-31 22:28:38 +00:00
|
|
|
<t t-name="DashBoard">
|
2012-06-27 14:12:49 +00:00
|
|
|
<div class="oe_dashboard_links">
|
|
|
|
<button type="button" class="button oe_dashboard_link_reset" title="Reset Layout.." t-att-style="view.fields_view.custom_view_id ? null : 'display: none'">
|
2011-12-19 15:18:04 +00:00
|
|
|
<img src="/web_dashboard/static/src/img/layout_2-1.png" width="16" height="16"/>
|
2011-12-30 10:19:39 +00:00
|
|
|
<span> Reset </span>
|
2011-06-06 10:54:36 +00:00
|
|
|
</button>
|
2012-06-27 14:12:49 +00:00
|
|
|
<button type="button" class="button oe_dashboard_link_change_layout" title="Change Layout..">
|
2011-12-19 15:18:04 +00:00
|
|
|
<img src="/web_dashboard/static/src/img/layout_1-1-1.png" width="16" height="16"/>
|
|
|
|
<span> Change Layout </span>
|
2011-05-31 22:28:38 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2012-06-27 14:12:49 +00:00
|
|
|
<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">
|
2011-06-14 20:17:04 +00:00
|
|
|
<tr>
|
|
|
|
<td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
|
2012-06-27 14:12:49 +00:00
|
|
|
t-att-id="view.element_id + '_column_' + column_index" t-attf-class="oe_dashboard_column index_#{column_index}">
|
2011-05-31 22:28:38 +00:00
|
|
|
|
2011-06-06 13:34:24 +00:00
|
|
|
<t t-foreach="column.children" t-as="action" t-if="action.tag == 'action'" t-call="DashBoard.action"/>
|
2011-06-14 20:17:04 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-06-06 13:34:24 +00:00
|
|
|
</t>
|
|
|
|
<t t-name="DashBoard.action">
|
2012-06-27 14:12:49 +00:00
|
|
|
<div t-att-data-id="action.attrs.name" class="oe_dashboard_action">
|
|
|
|
<h2 t-attf-class="oe_dashboard_action_header #{action.attrs.string ? '' : 'oe_dashboard_action_header_empty'}">
|
2011-10-10 14:28:06 +00:00
|
|
|
<t t-esc="action.attrs.string"/>
|
2011-10-12 10:15:04 +00:00
|
|
|
<t t-if="!action.attrs.string">&nbsp;</t>
|
2011-12-20 11:55:00 +00:00
|
|
|
<button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_button oe_dashboard_button_create">Create</button>
|
2011-06-06 13:34:24 +00:00
|
|
|
<span class='ui-icon ui-icon-closethick'></span>
|
2012-06-27 14:12:49 +00:00
|
|
|
<span class='ui-icon ui-icon-minusthick oe_dashboard_fold' t-if="!action.attrs.fold"></span>
|
|
|
|
<span class='ui-icon ui-icon-plusthick oe_dashboard_fold' t-if="action.attrs.fold"></span>
|
2011-07-14 14:46:27 +00:00
|
|
|
</h2>
|
2012-06-27 14:12:49 +00:00
|
|
|
<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>
|
2011-05-31 22:28:38 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
<t t-name="DashBoard.layouts">
|
2012-06-27 14:12:49 +00:00
|
|
|
<div class="oe_dashboard_layout_selector">
|
2011-05-31 22:28:38 +00:00
|
|
|
<p>
|
|
|
|
<strong>Choose dashboard layout</strong>
|
|
|
|
</p>
|
2011-06-06 10:13:05 +00:00
|
|
|
<ul>
|
|
|
|
<li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
|
2011-09-05 12:28:15 +00:00
|
|
|
<img t-attf-src="/web_dashboard/static/src/img/layout_#{layout}.png"/>
|
2011-06-06 10:13:05 +00:00
|
|
|
<img t-if="layout == current_layout"
|
2012-06-27 14:12:49 +00:00
|
|
|
src="/web/static/src/img/icons/gtk-apply.png" width="16" height="16" class="oe_dashboard_selected_layout"/>
|
2011-06-06 10:13:05 +00:00
|
|
|
</li>
|
2011-05-31 22:28:38 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
<t t-name="DashBoard.xml">
|
2012-07-17 15:56:11 +00:00
|
|
|
<form t-att-string="form_title" version="7.0">
|
2011-06-01 13:48:00 +00:00
|
|
|
<board t-att-style="style">
|
|
|
|
<column t-foreach="columns" t-as="column">
|
|
|
|
<action t-foreach="column" t-as="action" t-att="action"/>
|
|
|
|
</column>
|
|
|
|
</board>
|
|
|
|
</form>
|
2011-05-31 22:28:38 +00:00
|
|
|
</t>
|
2012-06-27 14:12:49 +00:00
|
|
|
<div t-name="HomeWidget" class="oe_dashboard_home_widget"/>
|
2011-08-25 12:34:45 +00:00
|
|
|
<t t-name="HomeWidget.content">
|
2011-08-22 13:30:02 +00:00
|
|
|
<h3><t t-esc="widget.title"/></h3>
|
2011-08-25 12:34:45 +00:00
|
|
|
<iframe width="100%" frameborder="0" t-att-src="url"/>
|
|
|
|
</t>
|
2011-05-31 22:28:38 +00:00
|
|
|
</template>
|