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">
|
|
|
|
<htk-button
|
|
|
|
image="image/dark/preferences.svg"
|
|
|
|
tip="_ConfigureOrder"
|
|
|
|
on-click="onConfigureClick"
|
2015-11-26 12:30:04 +00:00
|
|
|
show-text="true"/>
|
2015-09-16 16:11:15 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/view-dual.svg"
|
|
|
|
tip="_Catalog"
|
|
|
|
on-click="onCatalogClick"
|
2015-11-26 12:30:04 +00:00
|
|
|
show-text="true"/>
|
2015-09-16 16:11:15 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/ok.svg"
|
|
|
|
tip="_Checkout"
|
|
|
|
on-click="onCheckoutClick"
|
2015-11-26 12:30:04 +00:00
|
|
|
show-text="true"/>
|
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">
|
2015-02-01 03:21:54 +00:00
|
|
|
<div>
|
2015-11-30 16:46:24 +00:00
|
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
2015-11-17 10:34:33 +00:00
|
|
|
<db-model id="items" property="model" updatable="true">
|
|
|
|
<custom>
|
|
|
|
SELECT i.id, i.amount, i.price, a.Article, a.Categoria,
|
|
|
|
a.Medida, a.Tallos, a.Color, o.Abreviatura, a.Foto
|
|
|
|
FROM basket_item i
|
|
|
|
JOIN vn2008.Articles a ON a.Id_Article = i.item_id
|
|
|
|
LEFT JOIN vn2008.Origen o ON a.id_origen = o.id
|
|
|
|
</custom>
|
2015-01-23 13:09:30 +00:00
|
|
|
</db-model>
|
2015-11-30 16:46:24 +00:00
|
|
|
<custom>
|
|
|
|
<div class="basket-line">
|
|
|
|
<htk-button
|
|
|
|
form="iter"
|
|
|
|
column="ticket_id"
|
|
|
|
class="delete"
|
|
|
|
tip="_SeeOrder"
|
|
|
|
image="image/delete.svg"
|
|
|
|
on-click="onDeleteClick"/>
|
|
|
|
<htk-image
|
|
|
|
form="iter"
|
|
|
|
column="Foto"
|
|
|
|
class="photo"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="50x50"
|
|
|
|
show-full="true"
|
|
|
|
full-dir="900x900"/>
|
|
|
|
<p class="concept">
|
|
|
|
<htk-text form="iter" column="Article"/>
|
|
|
|
<htk-text form="iter" column="Medida"/>
|
|
|
|
<htk-text form="iter" column="Categoria"/>
|
|
|
|
</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 class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-07-07 15:27:47 +00:00
|
|
|
<div class="form">
|
|
|
|
<p>
|
|
|
|
<t>OrderTotal</t>
|
|
|
|
<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>
|
2015-01-23 13:09:30 +00:00
|
|
|
</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>
|