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

79 lines
1.9 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<div id="title">
<h1><t>ShoppingBasket</t></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"
on-click="onConfigureClick"/>
2016-09-19 06:40:18 +00:00
<htk-bar-button
2022-05-21 21:31:56 +00:00
icon="local_florist"
2015-09-16 16:11:15 +00:00
tip="_Catalog"
2016-09-19 06:40:18 +00:00
on-click="onCatalogClick"/>
<htk-bar-button
2022-05-21 21:31:56 +00:00
icon="shopping_cart_checkout"
tip="_Checkout"
on-click="onCheckoutClick"/>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="basket">
2015-09-16 16:11:15 +00:00
<div class="box">
<div class="head">
2015-07-07 15:27:47 +00:00
<p>
<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>
<div class="lines">
2022-05-24 10:18:44 +00:00
<htk-repeater form-id="iter">
<db-model id="items" property="model" 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
2018-03-27 15:26:17 +00:00
FROM myBasketItem bi
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
</db-model>
<custom>
<div class="line">
<htk-button
form="iter"
2018-03-27 15:26:17 +00:00
column="id"
class="delete"
tip="_Remove"
2016-09-19 06:40:18 +00:00
icon="delete"
on-click="onDeleteClick"/>
<htk-image
form="iter"
2018-03-27 15:26:17 +00:00
column="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">
<h2>
<htk-text form="iter" column="item"/>
</h2>
<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>
<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
<span class="subtotal">
2022-05-24 10:18:44 +00:00
{{Vn.Value.format(iter.price * iter.amount, '%.2d€')}}
2018-03-27 15:26:17 +00:00
</span>
</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>