| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <templates xml:space="preserve"> |
| 3 | |
| 4 | <t t-inherit="delivery.locationSelector.location" t-inherit-mode="extension"> |
| 5 | <small name="location_opening_hours" position="before"> |
| 6 | <t t-if="props.additionalData and !!props.additionalData.in_store_stock_data"> |
| 7 | <t t-if="!!props.additionalData.in_store_stock_data.in_stock"> |
| 8 | <t t-if="!!props.additionalData.in_store_stock_data.show_quantity"> |
| 9 | <span class="text-warning"> |
| 10 | <i class="fa fa-circle"/> |
| 11 | Only <t t-out="props.additionalData.in_store_stock_data.quantity"/> |
| 12 | available |
| 13 | </span> |
| 14 | </t> |
| 15 | <t t-else=""> |
| 16 | <span class="text-success"> |
| 17 | <i class="fa fa-circle"/> Available |
| 18 | </span> |
| 19 | </t> |
| 20 | </t> |
| 21 | <t t-else=""> |
| 22 | <span class="text-danger"> |
| 23 | <i class="fa fa-times"/> Out of stock |
| 24 | </span> |
| 25 | </t> |
| 26 | </t> |
| 27 | </small> |
| 28 | </t> |
| 29 | |
| 30 | </templates> |