summaryrefslogtreecommitdiff
path: root/addons/board/static/src/xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/board/static/src/xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/board/static/src/xml')
-rw-r--r--addons/board/static/src/xml/board.xml114
1 files changed, 114 insertions, 0 deletions
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml
new file mode 100644
index 00000000..127c9b3a
--- /dev/null
+++ b/addons/board/static/src/xml/board.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="utf-8"?>
+<template>
+<t t-name="DashBoard">
+ <t t-if="isMobile">
+ <t t-set="node.attrs.layout" t-value="1"/>
+ </t>
+ <t t-if="!isMobile">
+ <div class="oe_dashboard_links">
+ <button type="button" class="button oe_dashboard_link_change_layout btn btn-secondary"
+ title="Change Layout..">
+ <img src="/board/static/src/img/layout_1-1-1.png" width="16" height="16" alt=""/>
+ <span> Change Layout </span>
+ </button>
+ </div>
+ </t>
+ <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">
+ <tr>
+ <td t-foreach="node.children" t-as="column" t-if="column.tag == 'column'"
+ t-att-id="'column_' + column_index" t-attf-class="oe_dashboard_column index_#{column_index}">
+
+ <t t-foreach="column.children" t-as="action" t-if="action.tag == 'action'" t-call="DashBoard.action"/>
+ </td>
+ </tr>
+ </table>
+</t>
+<t t-name="DashBoard.action">
+ <div t-att-data-id="action.attrs.id" class="oe_action">
+ <h2 t-attf-class="oe_header #{action.attrs.string ? '' : 'oe_header_empty'}">
+ <span class="oe_header_txt"> <t t-esc="action.attrs.string"/> </span>
+ <input class = "oe_header_text" type="text"/>
+ <t t-if="!action.attrs.string">&amp;nbsp;</t>
+ <span class='oe_icon oe_close'></span>
+ <span class='oe_icon oe_minimize oe_fold' t-if="!action.attrs.fold"></span>
+ <span class='oe_icon oe_maximize oe_fold' t-if="action.attrs.fold"></span>
+ </h2>
+ <div t-att-class="'oe_content' + (action.attrs.fold ? ' oe_folded' : '')"/>
+ </div>
+</t>
+<t t-name="DashBoard.layouts">
+ <div class="oe_dashboard_layout_selector">
+ <p>
+ <strong>Choose dashboard layout</strong>
+ </p>
+ <ul>
+ <li t-foreach="'1 1-1 1-1-1 1-2 2-1'.split(' ')" t-as="layout" t-att-data-layout="layout">
+ <img t-attf-src="/board/static/src/img/layout_#{layout}.png" alt=""/>
+ <i t-if="layout == currentLayout" class="oe_dashboard_selected_layout fa fa-check fa-lg text-success" aria-label='Layout' role="img" title="Layout"/>
+ </li>
+ </ul>
+ </div>
+</t>
+<t t-name="DashBoard.NoContent">
+ <div class="o_view_nocontent">
+ <div class="o_nocontent_help">
+ <p class="o_view_nocontent_neutral_face">
+ Your personal dashboard is empty
+ </p><p>
+ To add your first report into this dashboard, go to any
+ menu, switch to list or graph view, and click <i>"Add to
+ Dashboard"</i> in the extended search options.
+ </p><p>
+ You can filter and group data before inserting into the
+ dashboard using the search options.
+ </p>
+ </div>
+ </div>
+</t>
+<t t-name="DashBoard.xml">
+ <form t-att-string="form_title">
+ <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>
+</t>
+<div t-name="HomeWidget" class="oe_dashboard_home_widget"/>
+<t t-name="HomeWidget.content">
+ <h3><t t-esc="widget.title"/></h3>
+ <iframe width="100%" frameborder="0" t-att-src="url"/>
+</t>
+
+<t t-name="AddToBoardMenu" owl="1">
+ <li class="o_menu_item o_add_to_board" role="menuitem">
+ <button type="button" class="dropdown-item"
+ t-ref="fallback-focus"
+ t-on-click="state.open = !state.open"
+ >
+ <t>Add to my dashboard</t>
+ </button>
+ <t t-if="state.open">
+ <div class="dropdown-item-text">
+ <input type="text" class="o_input" autofocus=""
+ t-model.trim="state.name"
+ t-on-keydown="_onInputKeydown"
+ />
+ </div>
+ <div class="dropdown-item-text">
+ <button type="button" class="btn btn-primary" t-on-click="_addToBoard">Add</button>
+ </div>
+ </t>
+ </li>
+</t>
+
+<t t-name="SearchView.addtodashboard">
+ <a href="#" class="dropdown-item o_add_to_dashboard_link o_closed_menu">Add to my Dashboard</a>
+ <div class="dropdown-item-text o_add_to_dashboard">
+ <input class="o_input o_add_to_dashboard_input" type="text"/>
+ </div>
+ <div class="dropdown-item-text o_add_to_dashboard">
+ <button type="button" class="btn btn-primary o_add_to_dashboard_button">Add</button>
+ </div>
+</t>
+</template>