forked from verdnatura/hedera-web
72 lines
1.7 KiB
XML
Executable File
72 lines
1.7 KiB
XML
Executable File
<vn>
|
|
<h1 id="title">
|
|
<t>ShoppingBasket</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="ok"
|
|
tip="_Checkout"
|
|
on-click="onCheckoutClick"/>
|
|
<htk-bar-button
|
|
icon="view-dual"
|
|
tip="_Catalog"
|
|
on-click="onCatalogClick"/>
|
|
<htk-bar-button
|
|
icon="preferences"
|
|
tip="_ConfigureOrder"
|
|
on-click="onConfigureClick"/>
|
|
</div>
|
|
<div id="main" class="basket">
|
|
<div class="card form">
|
|
<div class="head">
|
|
<p>
|
|
<t>Total</t>
|
|
<htk-text format="%.2d€">
|
|
<db-calc-sum property="param" func="subtotal" model="items"/>
|
|
</htk-text>
|
|
</p>
|
|
</div>
|
|
<htk-repeater form-id="iter" renderer="repeaterFunc">
|
|
<db-model id="items" property="model" updatable="true">
|
|
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
|
|
</db-model>
|
|
<custom>
|
|
<div class="line">
|
|
<htk-button
|
|
lot="iter"
|
|
name="ticket_id"
|
|
class="delete"
|
|
tip="_Remove"
|
|
icon="delete"
|
|
on-click="onDeleteClick"/>
|
|
<htk-image
|
|
lot="iter"
|
|
name="Foto"
|
|
class="photo"
|
|
directory="catalog"
|
|
subdir="200x200"
|
|
full-dir="900x900"/>
|
|
<p class="concept">
|
|
<htk-text lot="iter" name="Article"/>
|
|
<htk-text lot="iter" name="Medida"/>
|
|
<htk-text lot="iter" name="Categoria"/>
|
|
</p>
|
|
<p class="amount">
|
|
<htk-text lot="iter" name="amount"/> x
|
|
<htk-text lot="iter" name="price" format="%.2d€"/>
|
|
<span class="subtotal">
|
|
<htk-text id="subtotal" format="%.2d€"/>
|
|
</span>
|
|
</p>
|
|
<div class="clear"/>
|
|
</div>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
</vn>
|