forked from verdnatura/hedera-web
80 lines
1.9 KiB
XML
Executable File
80 lines
1.9 KiB
XML
Executable File
<vn>
|
|
<div id="title">
|
|
<h1><t>ShoppingBasket</t></h1>
|
|
</div>
|
|
<div id="actions">
|
|
<htk-button
|
|
image="image/dark/preferences.svg"
|
|
tip="_ConfigureOrder"
|
|
on-click="onConfigureClick"
|
|
show-text="true"/>
|
|
<htk-button
|
|
image="image/dark/view-dual.svg"
|
|
tip="_Catalog"
|
|
on-click="onCatalogClick"
|
|
show-text="true"/>
|
|
<htk-button
|
|
image="image/dark/ok.svg"
|
|
tip="_Checkout"
|
|
on-click="onCheckoutClick"
|
|
show-text="true"/>
|
|
</div>
|
|
<div id="form" class="basket">
|
|
<div class="box">
|
|
<div>
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
<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>
|
|
</db-model>
|
|
<custom>
|
|
<div class="basket-line">
|
|
<htk-button
|
|
form="iter"
|
|
column="ticket_id"
|
|
class="delete"
|
|
tip="_Remove"
|
|
image="image/delete.svg"
|
|
on-click="onDeleteClick"/>
|
|
<htk-image
|
|
form="iter"
|
|
column="Foto"
|
|
class="photo"
|
|
directory="catalog"
|
|
subdir="200x200"
|
|
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>
|
|
<div class="form">
|
|
<p>
|
|
<t>OrderTotal</t>
|
|
<htk-text format="%.2d€">
|
|
<db-calc-sum property="param" func="subtotal" model="items"/>
|
|
</htk-text>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|