hedera-web/forms/ecomerce/basket/ui.xml

109 lines
3.0 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<div id="title">
2023-01-30 10:08:26 +00:00
<h1>{{_(params.$.id ? 'Order' : 'ShoppingBasket')}}</h1>
</div>
2015-09-16 16:11:15 +00:00
<div id="actions">
2016-09-19 06:40:18 +00:00
<htk-bar-button
2022-05-21 21:31:56 +00:00
icon="settings"
tip="_ConfigureOrder"
2022-05-26 06:08:31 +00:00
on-click="this.onConfigureClick()"/>
2016-09-19 06:40:18 +00:00
<htk-bar-button
icon="shopping_bag"
2015-09-16 16:11:15 +00:00
tip="_Catalog"
2023-02-15 13:07:09 +00:00
on-click="this.onCatalogClick()"/>
2016-09-19 06:40:18 +00:00
<htk-bar-button
2022-05-21 21:31:56 +00:00
icon="shopping_cart_checkout"
tip="_Checkout"
2023-01-30 10:08:26 +00:00
on-click="this.onConfirmClick()"/>
</div>
2023-01-30 10:08:26 +00:00
<vn-group>
<vn-lot-query id="params" on-change="this.onHashChange()">
<vn-spec name="id" type="Number"/>
</vn-lot-query>
2023-02-15 13:07:09 +00:00
<vn-lot id="lot"/>
2023-02-23 13:32:13 +00:00
<db-form v-model="order" on-ready="onOrderReady">
2023-02-15 13:07:09 +00:00
<db-model property="model" lot="lot">
2023-01-30 10:08:26 +00:00
SELECT o.id, o.sent,
2023-02-23 13:32:13 +00:00
ag.description agency, v.code method,
ad.nickname, ad.postalCode, ad.city, ad.street
2023-01-30 10:08:26 +00:00
FROM myOrder o
2023-02-23 13:32:13 +00:00
JOIN vn.agencyMode ag ON ag.id = o.agencyModeFk
LEFT JOIN myAddress ad ON ad.id = o.addressFk
2023-01-30 10:08:26 +00:00
JOIN vn.deliveryMethod v ON v.id = o.deliveryMethodFk
WHERE o.id = #id;
</db-model>
</db-form>
</vn-group>
<div id="form" class="hedera-basket">
2022-05-26 06:08:31 +00:00
<div class="box vn-w-sm vn-pa-lg">
<div class="head vn-pb-lg">
2023-01-30 10:08:26 +00:00
<h5>#{{order.id}}</h5>
2023-02-23 13:32:13 +00:00
<div class="delivery">
2023-01-30 10:08:26 +00:00
<h6><t>ShippingInformation</t></h6>
2023-02-23 13:32:13 +00:00
<p>{{order.nickname}}</p>
<p>
<t>Delivery at</t> {{Vn.Value.format(order.sent, _('%D'))}}
</p>
<p>
<span id="method"><t>Agency</t></span> {{order.agency}}
</p>
</div>
<div id="address" class="address vn-mt-md">
<h6><t>DeliveryAddress</t></h6>
<p>{{order.street}}</p>
<p>{{order.postalCode}}, {{order.city}}</p>
2023-01-30 10:08:26 +00:00
</div>
<p class="total">
<t>Total</t>
2015-07-07 15:27:47 +00:00
<htk-text format="%.2d€">
<db-calc-sum property="param" func="subtotal" model="items"/>
2015-07-07 15:27:47 +00:00
</htk-text>
</p>
</div>
2022-11-15 21:26:48 +00:00
<div class="lines vn-pt-lg">
2022-05-24 10:18:44 +00:00
<htk-repeater form-id="iter">
2023-02-15 13:07:09 +00:00
<db-model id="items" property="model" lot="lot" updatable="true">
2019-05-27 13:38:06 +00:00
SELECT bi.id, bi.amount, bi.price, i.longName item,
i.tag5, i.value5, i.tag6, i.value6, i.tag7, i.value7,
i.image, im.updated
2023-01-30 10:08:26 +00:00
FROM myOrderRow bi
2018-03-27 15:26:17 +00:00
JOIN vn.item i ON i.id = bi.itemFk
2019-05-27 13:38:06 +00:00
LEFT JOIN image im
ON im.collectionFk = 'catalog'
AND im.name = i.image
2023-01-30 10:08:26 +00:00
WHERE orderFk = #id
</db-model>
<custom>
<div class="line">
<htk-button
class="delete"
tip="_Remove"
2016-09-19 06:40:18 +00:00
icon="delete"
2022-06-18 21:04:34 +00:00
on-click="this.onDeleteClick($iter)"/>
<htk-image
2022-06-18 21:04:34 +00:00
value="{{iter.image}}"
2019-05-27 13:38:06 +00:00
stamp-column="updated"
class="photo"
directory="catalog"
subdir="200x200"
full-dir="1600x900"/>
2018-03-27 15:26:17 +00:00
<div class="info">
2022-06-18 21:04:34 +00:00
<h2>{{iter.item}}</h2>
2018-03-27 15:26:17 +00:00
<p class="tags">
2022-05-24 10:18:44 +00:00
{{iter.value5}} {{iter.value6}} {{iter.value7}}
2018-03-27 15:26:17 +00:00
</p>
<span class="subtotal">
{{Vn.Value.format(iter.price * iter.amount, '%.2d€')}}
</span>
2018-03-27 15:26:17 +00:00
<p class="amount">
2022-05-24 10:18:44 +00:00
{{iter.amount}} x {{Vn.Value.format(iter.price, '%.2d€')}}
2018-03-27 15:26:17 +00:00
</p>
</div>
</div>
</custom>
</htk-repeater>
</div>
2015-09-16 16:11:15 +00:00
</div>
</div>
2015-03-06 23:33:54 +00:00
</vn>