dc8ba35eccbd227c07d377e89a0c4ebd82a6f4fb
[odoo/odoo.git] / addons / pos_restaurant / static / src / xml / floors.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates id="template" xml:space="preserve">
3
4     <t t-extend="XmlReceipt">
5         <t t-jquery='.cashier' t-operation='append'>
6             <t t-if='receipt.table'>
7                 at table <t t-esc='receipt.table' />
8             </t>
9         </t>
10     </t>
11
12     <t t-extend="BillReceipt">
13         <t t-jquery='.cashier' t-operation='append'>
14             <t t-if='receipt.table'>
15                 at table <t t-esc='receipt.table' />
16             </t>
17         </t>
18     </t>
19
20     <t t-name="TableWidget">
21         <t t-if='!widget.selected'>
22             <div class='table' t-att-style='widget.table_style_str()'>
23                 <t t-if='widget.order_count'>
24                     <span t-att-class='"order-count " + (widget.notifications.printing ? "notify-printing":"")'><t t-esc='widget.order_count'/></span>
25                 </t>
26                 <span class='label'>
27                     <t t-esc='widget.table.name' />
28                 </span>
29             </div>
30         </t>
31         <t t-if='widget.selected'>
32             <div class='table selected' t-att-style='widget.table_style_str()'>
33                 <span class='label'>
34                     <t t-esc='widget.table.name' />
35                 </span>
36                 <span class='table-handle top'></span>
37                 <span class='table-handle bottom'></span>
38                 <span class='table-handle left'></span>
39                 <span class='table-handle right'></span>
40                 <span class='table-handle top right'></span>
41                 <span class='table-handle top left'></span>
42                 <span class='table-handle bottom right'></span>
43                 <span class='table-handle bottom left'></span>
44             </div>
45         </t>
46     </t>
47
48     <t t-name="BackToFloorButton">
49         <span class="order-button floor-button">
50             <i class='fa fa-angle-double-left'/>
51             <t t-esc="floor.name"/>
52             <span class='table-name'>
53                 ( <t t-esc="table.name" /> )
54             </span>
55         </span>
56     </t>
57
58     <t t-name="FloorScreenWidget">
59         <div class='floor-screen screen'>
60             <div class='screen-content-flexbox'>
61                 <t t-if='widget.pos.floors.length > 1'>
62                     <div class='floor-selector'>
63                         <t t-foreach="widget.pos.floors" t-as="floor">
64                             <t t-if="floor.id === widget.floor.id">
65                                 <span class='button button-floor active' t-att-data-id="floor.id"><t t-esc="floor.name" /></span>
66                             </t>
67                             <t t-if="floor.id !== widget.floor.id">
68                                 <span class='button button-floor' t-att-data-id="floor.id"><t t-esc="floor.name" /></span>
69                             </t>
70                         </t>
71                     </div>
72                 </t>
73                 <div class='floor-map' t-att-style='widget.floor.background_image ? ("background-image:url("+widget.background_image_url(widget.floor)+");") :"" '>
74                     <span class='edit-button editing'><i class='fa fa-pencil'></i></span>
75                     <div class='edit-bar oe_hidden'>
76                         <span class='edit-button new-table'>
77                             <i class='fa fa-plus'></i>
78                         </span>
79                         <span class='edit-button dup-table needs-selection'>
80                             <i class='fa fa-copy'></i>
81                         </span>
82                         <span class='edit-button rename needs-selection'>
83                             <i class='fa fa-font'></i>
84                         </span>
85                         <span class='edit-button shape needs-selection'>
86                             <span class='button-option square'><i class='fa fa-square-o'></i></span>
87                             <span class='button-option round oe_hidden'><i class='fa fa-circle-o'></i></span>
88                         </span> 
89                         <span class='edit-button color needs-selection'>
90                             <i class='fa fa-tint'></i>
91                             <div class='color-picker oe_hidden'>
92                                 <div  class='close-picker'>
93                                     <i class='fa fa-times' />
94                                 </div>
95                                 <span class='color tl'  style='background-color:#EB6D6D'    />
96                                 <span class='color'     style='background-color:#35D374'  />
97                                 <span class='color tr'  style='background-color:#6C6DEC'   />
98                                 <span class='color'     style='background-color:#EBBF6D' />
99                                 <span class='color'     style='background-color:#EBEC6D' />
100                                 <span class='color'     style='background-color:#AC6DAD' />
101                                 <span class='color bl'  style='background-color:#6C6D6D'  />
102                                 <span class='color'     style='background-color:#ACADAD'   />
103                                 <span class='color br'  style='background-color:#4ED2BE'   />
104                             </div>
105                         </span>
106                         <span class='edit-button trash needs-selection'>
107                             <i class='fa fa-trash'></i>
108                         </span>
109                     </div>
110                     
111                 </div>
112             </div>
113         </div>
114     </t>
115 </templates>