2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
2015-09-11 09:37:16 +00:00
|
|
|
<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
|
|
|
|
icon="ok"
|
2016-01-07 12:58:29 +00:00
|
|
|
tip="_Checkout"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onCheckoutClick"/>
|
|
|
|
<htk-bar-button
|
|
|
|
icon="view-dual"
|
2015-09-16 16:11:15 +00:00
|
|
|
tip="_Catalog"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onCatalogClick"/>
|
|
|
|
<htk-bar-button
|
|
|
|
icon="preferences"
|
2016-01-07 12:58:29 +00:00
|
|
|
tip="_ConfigureOrder"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onConfigureClick"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
</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">
|
2016-01-08 21:00:02 +00:00
|
|
|
<div class="head">
|
2015-07-07 15:27:47 +00:00
|
|
|
<p>
|
2016-01-08 21:00:02 +00:00
|
|
|
<t>Total</t>
|
2015-07-07 15:27:47 +00:00
|
|
|
<htk-text format="%.2d€">
|
2015-11-26 12:30:04 +00:00
|
|
|
<db-calc-sum property="param" func="subtotal" model="items"/>
|
2015-07-07 15:27:47 +00:00
|
|
|
</htk-text>
|
|
|
|
</p>
|
|
|
|
</div>
|
2016-01-08 21:00:02 +00:00
|
|
|
<div class="lines">
|
|
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
|
|
<db-model id="items" property="model" updatable="true">
|
2018-07-20 14:30:29 +00:00
|
|
|
SELECT bi.id, bi.amount, bi.price, i.longName item, i.image,
|
|
|
|
i.tag5, i.value5, i.tag6, i.value6, i.tag7, i.value7
|
2018-03-27 15:26:17 +00:00
|
|
|
FROM myBasketItem bi
|
|
|
|
JOIN vn.item i ON i.id = bi.itemFk
|
2016-01-08 21:00:02 +00:00
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="line">
|
|
|
|
<htk-button
|
|
|
|
form="iter"
|
2018-03-27 15:26:17 +00:00
|
|
|
column="id"
|
2016-01-08 21:00:02 +00:00
|
|
|
class="delete"
|
|
|
|
tip="_Remove"
|
2016-09-19 06:40:18 +00:00
|
|
|
icon="delete"
|
2016-01-08 21:00:02 +00:00
|
|
|
on-click="onDeleteClick"/>
|
|
|
|
<htk-image
|
|
|
|
form="iter"
|
2018-03-27 15:26:17 +00:00
|
|
|
column="image"
|
2016-01-08 21:00:02 +00:00
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
2018-07-20 14:30:29 +00:00
|
|
|
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">
|
2019-03-13 08:57:18 +00:00
|
|
|
<htk-text form="iter" column="value5"/>
|
|
|
|
<htk-text form="iter" column="value6"/>
|
2018-07-20 14:30:29 +00:00
|
|
|
<htk-text form="iter" column="value7"/>
|
2018-03-27 15:26:17 +00:00
|
|
|
</p>
|
|
|
|
<p class="amount">
|
|
|
|
<htk-text form="iter" column="amount"/> x
|
|
|
|
<htk-text form="iter" column="price" format="%.2d€"/>
|
|
|
|
<span class="subtotal">
|
|
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2016-01-08 21:00:02 +00:00
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
|
|
|
</div>
|
2015-09-16 16:11:15 +00:00
|
|
|
</div>
|
2015-01-23 13:09:30 +00:00
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
</vn>
|