mirror of https://github.com/OCA/web.git
Show/Hide Add tile form under 'Add to Dashboard' menu
parent
a5cd01e6ec
commit
4370d4217e
|
@ -1,24 +1,24 @@
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile{
|
.openerp .oe_kanban_view .oe_dashboard_tile {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label,
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_label,
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_without_computed_value,
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_without_computed_value,
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_with_computed_value,
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_with_computed_value,
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_computed_value {
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_computed_value {
|
||||||
width: 140px;
|
width: 140px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label{
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_label{
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_without_computed_value{
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_without_computed_value{
|
||||||
font-size: 52px;
|
font-size: 52px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_with_computed_value{
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_with_computed_value{
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_computed_value{
|
.openerp .oe_kanban_view .oe_dashboard_tile .tile_computed_value{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -42,3 +42,11 @@
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.openerp .oe_searchview_drawer .oe_searchview_dashboard .oe_dashboard_tile_form {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openerp .oe_searchview_drawer .oe_opened .oe_dashboard_tile_form {
|
||||||
|
display: block;
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
<templates id="template" xml:space="preserve">
|
<templates id="template" xml:space="preserve">
|
||||||
<t t-extend="SearchView.addtodashboard">
|
<t t-extend="SearchView.addtodashboard">
|
||||||
<t t-jquery="form" t-operation="after">
|
<t t-jquery="form" t-operation="after">
|
||||||
<div>
|
<div class="oe_dashboard_tile_form">
|
||||||
<label for="dashboard_tile_new_name">Tile:</label>
|
<label for="dashboard_tile_new_name">Tile:</label>
|
||||||
<input id="dashboard_tile_new_name" />
|
<input id="dashboard_tile_new_name" />
|
||||||
<button id="add_dashboard_tile">Create</button>
|
<button id="add_dashboard_tile">Create</button>
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<field name="helper" />
|
<field name="helper" />
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-box">
|
||||||
<div t-attf-class="oe_dashbaord_tile oe_kanban_global_click" t-attf-style="background-color:#{record.background_color.raw_value}" >
|
<div t-attf-class="oe_dashboard_tile oe_kanban_global_click" t-attf-style="background-color:#{record.background_color.raw_value}" >
|
||||||
<div class="oe_kanban_content">
|
<div class="oe_kanban_content">
|
||||||
<a type="object" name="open_link" args="[]" t-attf-style="color:#{record.font_color.raw_value};">
|
<a type="object" name="open_link" args="[]" t-attf-style="color:#{record.font_color.raw_value};">
|
||||||
<div class="tile_label">
|
<div class="tile_label">
|
||||||
|
|
Loading…
Reference in New Issue