Tower: upload laundry_management 19.0.19.0.4 (via marketplace)
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="laundry_management.LaundryOrderContextPanel">
|
||||
<div class="laundry-context-panel"
|
||||
t-if="isFeatureEnabled and order"
|
||||
t-att-data-empty="hasContent ? '0' : '1'"
|
||||
t-att-data-delivery="isDelivery ? '1' : '0'">
|
||||
|
||||
<div class="laundry-context-panel__header">
|
||||
<span class="laundry-context-panel__title">
|
||||
<i class="fa fa-tshirt me-2" title="Laundry Order"/>
|
||||
<span>Laundry Order</span>
|
||||
</span>
|
||||
<button t-if="hasContent"
|
||||
class="laundry-context-panel__edit"
|
||||
t-on-click="onClickEdit"
|
||||
title="Edit order type">
|
||||
<i class="fa fa-pencil" title="Edit"/>
|
||||
<span class="laundry-context-panel__edit-label">Edit</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<t t-if="!hasContent">
|
||||
<button class="laundry-context-panel__cta"
|
||||
t-on-click="onClickEdit">
|
||||
<i class="fa fa-plus-circle me-2" title="Set order type"/>
|
||||
<span>Set Order Type</span>
|
||||
</button>
|
||||
</t>
|
||||
|
||||
<t t-else="">
|
||||
<t t-if="orderType">
|
||||
<div class="laundry-context-panel__row">
|
||||
<span class="laundry-pill laundry-pill--type"
|
||||
t-att-data-priority="orderType.priority"
|
||||
t-att-style="typeStyle">
|
||||
<i t-attf-class="fa #{typeIcon(orderType)} me-1"
|
||||
t-att-title="orderType.name"/>
|
||||
<t t-esc="orderType.name"/>
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-if="attributes.length">
|
||||
<div class="laundry-context-panel__row laundry-context-panel__attrs">
|
||||
<t t-foreach="attributes" t-as="attr" t-key="attr.id">
|
||||
<span class="laundry-pill laundry-pill--attr"
|
||||
t-att-data-delivery="attr.is_delivery_related ? '1' : '0'"
|
||||
t-att-data-priority="attr.is_priority_related ? 'urgent' : 'normal'"
|
||||
t-att-style="attrStyle(attr)">
|
||||
<t t-esc="attr.name"/>
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-if="isDelivery">
|
||||
<div class="laundry-context-panel__delivery">
|
||||
<div t-if="deliveryAddress" class="laundry-context-panel__delivery-row">
|
||||
<i class="fa fa-map-marker" title="Address"/>
|
||||
<span t-esc="deliveryAddress"/>
|
||||
</div>
|
||||
<div t-if="deliveryScheduledAt" class="laundry-context-panel__delivery-row">
|
||||
<i class="fa fa-clock-o" title="Time"/>
|
||||
<span t-esc="deliveryScheduledAt"/>
|
||||
</div>
|
||||
<div t-if="!deliveryAddress and !deliveryScheduledAt"
|
||||
class="laundry-context-panel__delivery-row text-muted">
|
||||
<i class="fa fa-truck" title="Delivery"/>
|
||||
<span>Delivery</span>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user