[FIX] pos_restaurant: show occupation on round tables

On square tables we graphically display how many people are currently on
the table by making part of the table on the floor screen darker. On
round tables we didn't do this.
This commit is contained in:
Darshan Kalola
2015-11-24 13:38:50 +01:00
committed by Joren Van Onder
parent 8d305ba9cd
commit bb1958b5ff
2 changed files with 3 additions and 2 deletions
@@ -76,6 +76,7 @@
cursor: pointer;
box-shadow: 0px 3px rgba(0,0,0,0.07);
transition: background, background-color 300ms ease-in-out;
overflow: hidden;
}
.floor-map .table .table-cover {
display: block;
@@ -240,7 +241,7 @@
left: 50%;
background: black;
width: 20px;
margin-top: -10px;
margin-top: 1px;
margin-left: -10px;
height: 20px;
line-height: 20px;
@@ -30,7 +30,7 @@
<t t-if='!widget.selected'>
<div class='table' t-att-style='widget.table_style_str()'>
<span
t-if="widget.table.shape !== 'round'"
t-if="widget.table.shape"
t-att-class='"table-cover " + (widget.fill >= 1 ? "full" : "")'
t-att-style='"height: " + Math.ceil(widget.fill * 100) + "%;"'
></span>