Browse Source

Show/Hide Add tile form under 'Add to Dashboard' menu

pull/405/head
Iván Todorovich 8 years ago
parent
commit
4370d4217e
  1. 26
      web_dashboard_tile/static/src/css/tile.css
  2. 2
      web_dashboard_tile/static/src/xml/custom_xml.xml
  3. 2
      web_dashboard_tile/views/tile.xml

26
web_dashboard_tile/static/src/css/tile.css

@ -1,24 +1,24 @@
.openerp .oe_kanban_view .oe_dashbaord_tile{
.openerp .oe_kanban_view .oe_dashboard_tile {
width: 150px;
height: 150px;
border: 0;
border-radius: 0;
}
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label,
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_without_computed_value,
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_with_computed_value,
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_computed_value {
.openerp .oe_kanban_view .oe_dashboard_tile .tile_label,
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_without_computed_value,
.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_with_computed_value,
.openerp .oe_kanban_view .oe_dashboard_tile .tile_computed_value {
width: 140px;
text-align: center;
}
.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label{
.openerp .oe_kanban_view .oe_dashboard_tile .tile_label{
padding: 5px;
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-weight: bold;
position: absolute;
@ -26,7 +26,7 @@
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-weight: bold;
position: absolute;
@ -34,7 +34,7 @@
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-weight: bold;
position: absolute;
@ -42,3 +42,11 @@
bottom: 5px;
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
web_dashboard_tile/static/src/xml/custom_xml.xml

@ -2,7 +2,7 @@
<templates id="template" xml:space="preserve">
<t t-extend="SearchView.addtodashboard">
<t t-jquery="form" t-operation="after">
<div>
<div class="oe_dashboard_tile_form">
<label for="dashboard_tile_new_name">Tile:</label>
<input id="dashboard_tile_new_name" />
<button id="add_dashboard_tile">Create</button>

2
web_dashboard_tile/views/tile.xml

@ -61,7 +61,7 @@
<field name="helper" />
<templates>
<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">
<a type="object" name="open_link" args="[]" t-attf-style="color:#{record.font_color.raw_value};">
<div class="tile_label">

Loading…
Cancel
Save