合并并提交看板操作隐藏
This commit is contained in:
@@ -9,6 +9,7 @@ import { localization } from "@web/core/l10n/localization";
|
||||
import {formatDate,formatDateTime} from "@web/core/l10n/dates";
|
||||
import {parseDateTime,parseDate,} from "@web/core/l10n/dates";
|
||||
import { renderToElement } from "@web/core/utils/render";
|
||||
import { session } from "@web/session";
|
||||
|
||||
export class Ksdashboardgraph extends Component{
|
||||
setup(){
|
||||
@@ -16,6 +17,7 @@ export class Ksdashboardgraph extends Component{
|
||||
this.actionService = useService("action");
|
||||
this._rpc = useService("rpc");
|
||||
this.state = useState({item_data:"",list_view_data:""})
|
||||
this.isAdmin = session.is_system;
|
||||
onMounted(() => this._update_view());
|
||||
onPatched(() => this.update_list_view());
|
||||
this.item = this.props.item
|
||||
|
||||
+62
-69
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="Ks_chart_list_container">
|
||||
<t t-if="item.ks_dashboard_item_type == 'ks_list_view'">
|
||||
<t t-call="ks_dashboard_ninja.Ksdashboardlistview"/>
|
||||
@@ -9,50 +8,46 @@
|
||||
<t t-call="Ks_gridstack_container"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-name="Ks_gridstack_container">
|
||||
<div class="grid-stack-item ks_chart_container ks_dashboarditem_id" t-att-id="chart_id" t-ref="ks_gridstack_container">
|
||||
<div class="grid-stack-item-content ks_dashboarditem_chart_container ks_dashboard_item_hover card shadow"
|
||||
t-att-title="ks_info">
|
||||
|
||||
<div class="p-3 py-3 d-flex flex-row align-items-center justify-content-between ">
|
||||
<div class="d-flex align-items-center">
|
||||
<h6 class="m-0 font-weight-bold h3 ks_chart_heading mr-3" t-att-title="ks_chart_title">
|
||||
<t t-esc="ks_chart_title"/>
|
||||
</h6>
|
||||
<!-- <div >-->
|
||||
<t t-if="ks_breadcrumb.length >= 1">
|
||||
<nav class="ks_breadcrumb">
|
||||
<t t-if="ks_breadcrumb.length >= 1">
|
||||
<nav class="ks_breadcrumb">
|
||||
<ul>
|
||||
<li class="d-none" t-att-id="'item'+'_'+'-1'">
|
||||
<span t-att-data-sequence = '-1' t-att-data-item-id="chart_id" t-on-click="ksOnDrillUp">
|
||||
<t t-esc="ks_chart_title"/>
|
||||
</span>
|
||||
<span t-att-data-sequence = '-1' t-att-data-item-id="chart_id" t-on-click="ksOnDrillUp">
|
||||
<t t-esc="ks_chart_title"/>
|
||||
</span>
|
||||
</li>
|
||||
<t t-foreach="ks_breadcrumb" t-as="chart_breadcrumb" t-key="chart_breadcrumb_index">
|
||||
<li class="d-none" t-att-id="chart_breadcrumb['name'] + '_' + chart_breadcrumb_index">
|
||||
<li class="d-none" t-att-id="chart_breadcrumb['name'] + '_' + chart_breadcrumb_index">
|
||||
<span t-att-data-sequence="chart_breadcrumb_index" t-att-data-item-id="chart_id" t-on-click="ksOnDrillUp">
|
||||
<t t-esc="chart_breadcrumb['name']"/>
|
||||
<t t-esc="chart_breadcrumb['name']"/>
|
||||
</span>
|
||||
</li>
|
||||
</t>
|
||||
</ul>
|
||||
</nav>
|
||||
</t>
|
||||
</nav>
|
||||
</t>
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
<img src="ks_dashboard_ninja/static/images/selected.svg" class="ks_img_display d-none"
|
||||
width="30"/>
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header ks_dashboard_item_header_hover chart_button_container d-md-flex d-none"
|
||||
t-att-data-item_id="chart_id">
|
||||
|
||||
<t t-if="ksIsDashboardManager">
|
||||
<button class="ks_dashboard_item_chart_info" title="More Info" type="button"
|
||||
t-att-data-item_id="chart_id" t-if="isAdmin">
|
||||
<t t-if="ksIsDashboardManager and isAdmin">
|
||||
<button class="ks_dashboard_item_chart_info" title="More Info" type="button"
|
||||
t-att-data-item-id="chart_id">
|
||||
<i class="fa fa-info-circle"/>
|
||||
</button>
|
||||
|
||||
<i class="fa fa-info-circle"/>
|
||||
</button>
|
||||
<t t-if="ks_dashboard_item_type != 'ks_map_view'">
|
||||
<div class="ks_chart_inner_buttons">
|
||||
<button title="Color Palette" data-bs-toggle="dropdown"
|
||||
@@ -76,8 +71,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
|
||||
<div class="ks_chart_inner_buttons">
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
class="ks_dashboard_item_action btn dropdown-toggle btn-xs" type="button"
|
||||
@@ -109,101 +102,103 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<button title="Quick Customize"
|
||||
class="ks_dashboard_quick_edit_action_popup btn d-sm-block d-none"
|
||||
type="button" t-att-data-item-id="chart_id">
|
||||
<i class="fa fa-pencil"/>
|
||||
</button>
|
||||
|
||||
<button class="ks_dashboard_item_customize d-block d-sm-none" title="Customize Item"
|
||||
type="button" t-att-data-item-id="chart_id">
|
||||
<i class="fa fa-pencil"/>
|
||||
</button>
|
||||
|
||||
<button class="ks_dashboard_item_delete" title="Remove Item" type="button">
|
||||
<i class="fa fa-times"/>
|
||||
</button>
|
||||
</t>
|
||||
<t t-if="ksIsUser">
|
||||
<div class="ks_chart_inner_buttons ks_dashboard_more_action"
|
||||
<div class="ks_chart_inner_buttons ks_dashboard_more_action"
|
||||
t-att-data-item-id="chart_id">
|
||||
<button title="Export Chart" data-bs-toggle="dropdown"
|
||||
<button title="Export Chart" data-bs-toggle="dropdown"
|
||||
class="ks_dashboard_item_action btn dropdown-toggle btn-xs o-no-caret btn"
|
||||
type="button"
|
||||
aria-expanded="true">
|
||||
<i class="fa fa-ellipsis-v"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right">
|
||||
<!--Dynamic Rendering-->
|
||||
<t t-call="ksMoreChartOptions"/>
|
||||
</div>
|
||||
<i class="fa fa-ellipsis-v"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right">
|
||||
<!--Dynamic Rendering-->
|
||||
<t t-call="ksMoreChartOptions"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</t>
|
||||
<div class="ks_chart_inner_buttons dropdown">
|
||||
<button title="Info" data-bs-toggle="dropdown"
|
||||
<button title="Info" data-bs-toggle="dropdown"
|
||||
class="ks_item_description btn dropdown-toggle btn-xs o-no-caret btn"
|
||||
type="button"
|
||||
t-att-style="'color:'+ ks_rgba_button_color + ';'"
|
||||
aria-expanded="true">
|
||||
<i class="fa fa-book"/>
|
||||
</button>
|
||||
<i class="fa fa-book"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right" style="width:20rem">
|
||||
<!--Dynamic Rendering-->
|
||||
<!--Dynamic Rendering-->
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header" style="margin-left:-10px">
|
||||
<span>Info</span>
|
||||
</div>
|
||||
<div class="ks_chart_export_menu_header" style="margin-left:-10px">
|
||||
<span>Info</span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<span>Company: <t t-esc="ks_company"/></span>
|
||||
</div>
|
||||
<span>Company:
|
||||
<t t-esc="ks_company"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<t t-if="ks_info">
|
||||
<t t-foreach="ks_info" t-as="ks_description" t-key="ks_description_index">
|
||||
<span><t t-esc="ks_description"/></span>
|
||||
<br></br>
|
||||
</t>
|
||||
</t>
|
||||
<t t-if="ks_info">
|
||||
<t t-foreach="ks_info" t-as="ks_description" t-key="ks_description_index">
|
||||
<span>
|
||||
<t t-esc="ks_description"/>
|
||||
</span>
|
||||
<br></br>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<t t-if="ksIsDashboardManager">
|
||||
<div class="dropdown d-md-none dn-setting-panel">
|
||||
<button class="btn btn-secondary border-0" type="button" id="dropdownSettingButton"
|
||||
<button class="btn btn-secondary border-0" type="button" id="dropdownSettingButton"
|
||||
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownSettingButton">
|
||||
<t t-if="ks_show_records & ks_query_type=='custom'">
|
||||
<a class="dropdown-item ks_dashboard_item_chart_info ks_info_display"
|
||||
<t t-if="ks_show_records & ks_query_type=='custom'">
|
||||
<a class="dropdown-item ks_dashboard_item_chart_info ks_info_display"
|
||||
t-att-data-item-id="chart_id">
|
||||
<i class="fa fa-info-circle"/>
|
||||
<i class="fa fa-info-circle"/>
|
||||
More Info
|
||||
</a>
|
||||
</t>
|
||||
</a>
|
||||
</t>
|
||||
<a class="dropdown-item ks_dashboard_item_customize" t-att-data-item-id="chart_id">
|
||||
<i class="fa fa-pencil"></i>
|
||||
<i class="fa fa-pencil"></i>
|
||||
Customize Item
|
||||
</a>
|
||||
|
||||
</a>
|
||||
<a class="dropdown-item ks_dashboard_item_delete">
|
||||
<i class="fa fa-times"></i>
|
||||
<i class="fa fa-times"></i>
|
||||
Remove Item
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
<t t-if="ks_ai_analysis">
|
||||
<div class="ks_ai_explain_body">
|
||||
<div class="card-body ks_chart_card_body"></div>
|
||||
<div class="ks_ai_explanation">
|
||||
<p><t t-esc="ks_ai_analysis_1"/></p>
|
||||
<p><t t-esc="ks_ai_analysis_2"/></p>
|
||||
<p>
|
||||
<t t-esc="ks_ai_analysis_1"/>
|
||||
</p>
|
||||
<p>
|
||||
<t t-esc="ks_ai_analysis_2"/>
|
||||
</p>
|
||||
</div>
|
||||
<div class="ks_speaker" t-on-click="props.ks_speak">
|
||||
<span class="fa fa-volume-up"/>
|
||||
@@ -217,7 +212,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="ksMoreChartOptions">
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header">
|
||||
@@ -233,7 +227,6 @@
|
||||
<i class="fa fa-file-code-o"/>
|
||||
<span>Export to CSV</span>
|
||||
</div>
|
||||
|
||||
<div t-att-data-chart-id="chart_id" class="ks_chart_pdf_export ks_chart_export_menu_item">
|
||||
<i class="fa fa-file-pdf-o"/>
|
||||
<span>Save as PDF</span>
|
||||
|
||||
@@ -6,7 +6,7 @@ import { formatInteger } from "@web/views/fields/formatters";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { jsonrpc } from "@web/core/network/rpc_service";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
|
||||
import { session } from "@web/session";
|
||||
export class Ksdashboardkpiview extends Component{
|
||||
file_type_magic_word= {'/': 'jpg','R': 'gif','i': 'png','P': 'svg+xml'}
|
||||
setup(){
|
||||
@@ -15,6 +15,7 @@ export class Ksdashboardkpiview extends Component{
|
||||
this.actionService = useService("action");
|
||||
this.ks_kpi = useRef('ks_kpi')
|
||||
this.state = useState({item_info_kpi1:{},item_info_kpi2:{},item_info_kpi3:{}})
|
||||
this.isAdmin = session.is_system;
|
||||
onMounted(() => this._update_view());
|
||||
this.item = this.props.item
|
||||
this.ks_dashboard_data = this.props.dashboard_data
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<img src="ks_dashboard_ninja/static/images/selected.svg" class="ks_img_display d-none" width="30"/>
|
||||
<!---->
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="state.item_info_kpi1.item.id">
|
||||
t-att-data-item_id="state.item_info_kpi1.item.id" t-if="isAdmin">
|
||||
<t t-if="state.item_info_kpi1.item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
@@ -305,7 +305,7 @@
|
||||
</t>
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="state.item_info_kpi2.item.id">
|
||||
t-att-data-item_id="state.item_info_kpi2.item.id" t-if="isAdmin">
|
||||
<t t-if="state.item_info_kpi2.item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
@@ -489,7 +489,7 @@
|
||||
</t>
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="state.item_info_kpi3.item.id">
|
||||
t-att-data-item_id="state.item_info_kpi3.item.id" t-if="isAdmin">
|
||||
<t t-if="state.item_info_kpi3.item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
<!-- -->
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header ks_dashboard_item_header_hover chart_button_container d-md-flex d-none"
|
||||
t-att-data-item_id="item_id">
|
||||
t-att-data-item_id="item_id" >
|
||||
<t t-if="ksIsDashboardManager">
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown" t-att-data-item-id="item_id"
|
||||
class="ks_dashboard_item_action btn dropdown-toggle btn-xs" type="button"
|
||||
|
||||
+2
-1
@@ -5,7 +5,7 @@ import { loadBundle } from "@web/core/assets";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { jsonrpc } from "@web/core/network/rpc_service";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
|
||||
import { session } from "@web/session";
|
||||
export class Ksdashboardtile extends Component{
|
||||
file_type_magic_word= {'/': 'jpg','R': 'gif','i': 'png','P': 'svg+xml'}
|
||||
|
||||
@@ -17,6 +17,7 @@ export class Ksdashboardtile extends Component{
|
||||
this.ks_container_class = 'grid-stack-item';
|
||||
this.ks_inner_container_class = 'grid-stack-item-content';
|
||||
this.state = useState({data_count:""})
|
||||
this.isAdmin = session.is_system;
|
||||
this.item = this.props.item
|
||||
this.file_type_magic_word= {'/': 'jpg','R': 'gif','i': 'png','P': 'svg+xml'}
|
||||
this.ks_dashboard_data = this.props.dashboard_data
|
||||
|
||||
+7
-7
@@ -33,7 +33,7 @@
|
||||
t-att-title="item.ks_info"
|
||||
t-att-id="item.id">
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
@@ -230,7 +230,7 @@
|
||||
</div>
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
@@ -383,7 +383,7 @@
|
||||
t-att-title="item.ks_info" t-att-id="item.id">
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
@@ -581,7 +581,7 @@
|
||||
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
@@ -756,7 +756,7 @@
|
||||
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l2 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
@@ -933,7 +933,7 @@
|
||||
|
||||
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header_l6 ks_dashboard_item_header_hover"
|
||||
t-att-data-item_id="item.id">
|
||||
t-att-data-item_id="item.id" t-if="isAdmin">
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
@@ -1074,7 +1074,7 @@
|
||||
<t t-name="ks_dashboard_item_layout_default">
|
||||
<div t-att-id="item.id" t-att-class="'ks_item_click ' + ks_container_class">
|
||||
<div class="ks_dashboard_item ks_dashboard_item_hover"
|
||||
t-att-style="style_main_body">
|
||||
t-att-style="style_main_body" t-if="isAdmin">
|
||||
<t t-if="item.ksIsDashboardManager">
|
||||
<div class="ks_dashboard_item_header ks_dashboard_item_header_hover">
|
||||
<button type="button" title="Customize Item" class="ks_dashboard_item_customize">
|
||||
|
||||
+2
-1
@@ -7,7 +7,7 @@ import { useService } from "@web/core/utils/hooks";
|
||||
import {Todoeditdialog,addtododialog} from "@ks_dashboard_ninja/components/ks_dashboard_to_do_item/editdialog";
|
||||
import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog";
|
||||
import { _t } from "@web/core/l10n/translation";
|
||||
|
||||
import { session } from "@web/session";
|
||||
export class Ksdashboardtodo extends Component{
|
||||
setup(){
|
||||
super.setup();
|
||||
@@ -17,6 +17,7 @@ export class Ksdashboardtodo extends Component{
|
||||
this.item = this.props.item
|
||||
this.ks_dashboard_data = this.props.dashboard_data
|
||||
this.prepare_item();
|
||||
this.isAdmin = session.is_system;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+53
-72
@@ -1,9 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
|
||||
|
||||
<t t-name="Ksdashboardtodo">
|
||||
<t t-name="Ksdashboardtodo">
|
||||
<div class="grid-stack-item ks_dashboarditem_id" t-att-id="item_id">
|
||||
<div class="grid-stack-item-content ks_list_view_container ks_dashboard_item_hover card shadow"
|
||||
t-att-title="ks_info">
|
||||
@@ -16,10 +13,9 @@
|
||||
<t t-esc="ks_chart_title"/>
|
||||
</h6>
|
||||
</div>
|
||||
|
||||
<!-- Dashboard Item Move/Copy Feature -->
|
||||
<div class="ks_dashboard_item_button_container ks_dropdown_container ks_dashboard_item_header ks_dashboard_item_header_hover chart_button_container d-md-flex d-none"
|
||||
t-att-data-item_id="item_id">
|
||||
t-att-data-item_id="item_id" t-if="isAdmin">
|
||||
<t t-if="ksIsDashboardManager">
|
||||
<button title="Move/Duplicate" data-bs-toggle="dropdown"
|
||||
t-att-data-item-id="item_id"
|
||||
@@ -39,7 +35,7 @@
|
||||
<option t-att-value="ks_dashboard['id']">
|
||||
<t t-esc="ks_dashboard['name']"/>
|
||||
</option>
|
||||
</t>
|
||||
</t>
|
||||
</select>
|
||||
</li>
|
||||
<li class="mt-3">
|
||||
@@ -58,7 +54,6 @@
|
||||
type="button" t-att-data-item-id="item_id">
|
||||
<i class="fa fa-pencil"/>
|
||||
</button>
|
||||
|
||||
<button class="ks_dashboard_item_customize d-block text-white d-sm-none"
|
||||
title="Customize Item"
|
||||
t-att-style="'color:'+ ks_rgba_button_color + ' !important' + ';'"
|
||||
@@ -73,77 +68,78 @@
|
||||
</t>
|
||||
<t t-if="ksIsUser">
|
||||
<div class="ks_chart_inner_buttons">
|
||||
<button title="Export List" data-bs-toggle="dropdown"
|
||||
<button title="Export List" data-bs-toggle="dropdown"
|
||||
class="ks_dashboard_item_action_export text-white btn dropdown-toggle btn-xs o-no-caret btn"
|
||||
t-att-style="'color:'+ ks_rgba_button_color + ' !important' + ';'"
|
||||
type="button"
|
||||
aria-expanded="true">
|
||||
<i class="fa fa-ellipsis-v"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right">
|
||||
<!--Dynamic Rendering-->
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header">
|
||||
<span>Export</span>
|
||||
</div>
|
||||
<div class="ks_chart_json_export ks_chart_export_menu_item"
|
||||
<i class="fa fa-ellipsis-v"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right">
|
||||
<!--Dynamic Rendering-->
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header">
|
||||
<span>Export</span>
|
||||
</div>
|
||||
<div class="ks_chart_json_export ks_chart_export_menu_item"
|
||||
t-att-data-item-id="item_id"
|
||||
data-format="chart_xls">
|
||||
<i class="fa fa-file-code-o"/>
|
||||
<span>Export Item</span>
|
||||
<i class="fa fa-file-code-o"/>
|
||||
<span>Export Item</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<div class="ks_chart_inner_buttons dropdown">
|
||||
<button title="Item description" data-bs-toggle="dropdown"
|
||||
<button title="Item description" data-bs-toggle="dropdown"
|
||||
class="ks_item_description btn dropdown-toggle btn-xs o-no-caret btn"
|
||||
type="button"
|
||||
t-att-style="'color:'+ ks_rgba_button_color + ';'"
|
||||
aria-expanded="true">
|
||||
<i class="fa fa-book"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right" style="width:20rem">
|
||||
<!--Dynamic Rendering-->
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header" style="margin-left:-10px">
|
||||
<span>Info</span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<span>Company: <t t-esc="ks_company"/></span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<t t-if="ks_info">
|
||||
<t t-foreach="ks_info" t-as="ks_description" t-key="ks_description_index">
|
||||
<span><t t-esc="ks_description"/></span>
|
||||
<br></br>
|
||||
</t>
|
||||
</t>
|
||||
<i class="fa fa-book"/>
|
||||
</button>
|
||||
<div role="menu" class="dropdown-menu dropdown-menu-right" style="width:20rem">
|
||||
<!--Dynamic Rendering-->
|
||||
<div class="ks_chart_export_menu">
|
||||
<div class="ks_chart_export_menu_header" style="margin-left:-10px">
|
||||
<span>Info</span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<span>Company:
|
||||
<t t-esc="ks_company"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ks_info" style="margin-left:10px">
|
||||
<t t-if="ks_info">
|
||||
<t t-foreach="ks_info" t-as="ks_description" t-key="ks_description_index">
|
||||
<span>
|
||||
<t t-esc="ks_description"/>
|
||||
</span>
|
||||
<br></br>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<t t-if="ksIsDashboardManager">
|
||||
<div class="dropdown d-md-none dn-setting-panel">
|
||||
<button class="btn btn-secondary border-0" type="button" id="dropdownSettingButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownSettingButton">
|
||||
<a class="dropdown-item ks_dashboard_item_customize" >
|
||||
<i class="fa fa-pencil"></i> Customize Item
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item ks_dashboard_item_delete" >
|
||||
<i class="fa fa-times"></i> Remove Item
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-secondary border-0" type="button" id="dropdownSettingButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownSettingButton">
|
||||
<a class="dropdown-item ks_dashboard_item_customize" >
|
||||
<i class="fa fa-pencil"></i> Customize Item
|
||||
</a>
|
||||
<a class="dropdown-item ks_dashboard_item_delete" >
|
||||
<i class="fa fa-times"></i> Remove Item
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card-header">
|
||||
<div class="nav-tabs-navigation">
|
||||
<div class="nav-tabs-wrapper">
|
||||
@@ -172,7 +168,6 @@
|
||||
<t t-esc="table_header"/>
|
||||
</a>
|
||||
</t>
|
||||
|
||||
</li>
|
||||
<t t-set="ks_rec_count" t-value="ks_rec_count+1"/>
|
||||
</t>
|
||||
@@ -191,7 +186,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
</t>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -202,16 +196,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
|
||||
<t t-name="ks_to_do_dashboard_inner_body">
|
||||
<div class="container-fluid p-0">
|
||||
<div>
|
||||
<div>
|
||||
|
||||
<div class="card">
|
||||
<t t-if="state.to_do_view_data['label']">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="tab-content">
|
||||
<t t-set="ks_section_count" t-value="0"/>
|
||||
@@ -232,7 +222,6 @@
|
||||
<td class="ks_custom_check">
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
|
||||
<t t-if="state.to_do_view_data['ks_content_active'][ks_href_id][ks_temp_count]=='True'">
|
||||
<input class="form-check-input"
|
||||
type="checkbox"
|
||||
@@ -243,7 +232,6 @@
|
||||
type="checkbox" value=""
|
||||
checked=""/>
|
||||
</t>
|
||||
|
||||
<span class="form-check-sign ks_do_item_active_handler" t-on-click="_onKsActiveHandler"
|
||||
t-att-data-item-id="item_id"
|
||||
t-att-data-content-id="state.to_do_view_data['ks_content_record_id'][ks_href_id][ks_temp_count]"
|
||||
@@ -262,7 +250,6 @@
|
||||
<t t-esc="table_row"/>
|
||||
</td>
|
||||
</t>
|
||||
|
||||
<t t-else="">
|
||||
<td class="ks_description ks_do_item_line_through"
|
||||
t-att-value="table_row"
|
||||
@@ -294,14 +281,12 @@
|
||||
<t t-set="ks_temp_count" t-value="ks_temp_count+1"/>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</table>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span class="nav-tabs-title">No Tasks Available</span>
|
||||
</t>
|
||||
|
||||
<t t-set="ks_section_count" t-value="ks_section_count+1"/>
|
||||
</div>
|
||||
</t>
|
||||
@@ -350,7 +335,6 @@
|
||||
<t t-esc="table_row"/>
|
||||
</td>
|
||||
</t>
|
||||
|
||||
<t t-else="">
|
||||
<td class="ks_description ks_do_item_line_through"
|
||||
t-att-value="table_row"
|
||||
@@ -382,7 +366,6 @@
|
||||
<t t-set="ks_temp_count" t-value="ks_temp_count+1"/>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</table>
|
||||
</t>
|
||||
@@ -404,10 +387,8 @@
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user