62 lines
2.7 KiB
XML
62 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<templates xml:space="preserve">
|
|
|
|
<t t-name="ks_dashboard_ninja.kpi_preview" >
|
|
<t t-set="item" t-value="props?.record?.data" />
|
|
<div class="ks_dashboard_kpi ks_dashboard_custom_srollbar ks_db_kpi_preview"
|
|
t-att-class="'ks_dashboarditem_id ks_dashboard_item_hover ' + inner_container_class"
|
|
t-att-style="'min-height: 9rem!important;' + style_main_body">
|
|
<div class="ks_dashboard_icon_l5 ">
|
|
<t t-if="item.ks_icon_select=='Custom'">
|
|
<t t-if="ks_icon_url">
|
|
<img t-att-src="ks_icon_url"/>
|
|
</t>
|
|
</t>
|
|
<t t-elif="item.ks_icon_select=='Default'">
|
|
<span t-att-style="'color:'+ ks_rgba_default_icon_color + ';'"
|
|
t-att-class="'fa fa-' + item.ks_default_icon + ' fa-4x'"/>
|
|
</t>
|
|
|
|
</div>
|
|
<div class="ks_dashboard_item_main_body_l5 ks_kpi_main_body">
|
|
<div class="ks_dashboard_kpi_name_preview">
|
|
<t t-esc="item.name"/>
|
|
</div>
|
|
<div class="ks_dashboard_kpi_count_preview" t-att-title="count_1_tooltip">
|
|
<t t-esc="item.ks_record_count"/>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex ks_target_previous justify-content-center">
|
|
<div style="text-align: center;">
|
|
<t t-if="item.ks_goal_enable">
|
|
<div style="color: rgba(0, 0, 0, 0.61);">
|
|
<span>vs Target</span>
|
|
</div>
|
|
<div>
|
|
<span style="font-size : medium;" t-att-style="targetDeviationColor">
|
|
<t t-esc="deviation"/>
|
|
<t t-if="achieve">
|
|
<i t-att-class="'fa fa-arrow-'+ targetArrow"/>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
</t>
|
|
<t t-if="item.ks_previous_period">
|
|
<div style="color: rgba(0, 0, 0, 0.61);">
|
|
<span>vs Prev</span>
|
|
</div>
|
|
<div>
|
|
<span style="font-size : medium;" t-att-style="preDeviationColor">
|
|
<t t-esc="pre_deviation"/>
|
|
<i t-att-class="'fa fa-arrow-'+ preArrow"/>
|
|
</span>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates> |