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

133 lines
3.2 KiB
XML

<vn>
<vn-group>
<vn-param id="ticket-id" on-changed="onTicketChange"/>
<vn-hash-param key="ticket" param="ticket-id"/>
<sql-batch id="batch">
<custom>
<item name="ticket" param="ticket-id"/>
</custom>
</sql-batch>
<db-form id="ticket" on-ready="onTicketReady">
<db-model id="ticket-data" property="model" batch="batch">
<custom>
CALL myTicketGet (#ticket)
</custom>
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>OrderDetail</t></h1>
</div>
<div id="actions" class="action-bar">
<htk-bar-button
icon="print"
tip="_Print delivery note"
on-click="onPrintClick"/>
</div>
<div id="form" class="ticket">
<div class="box">
<htk-loader class="head" form="ticket">
<div>
<p class="important ticket-id">
@<htk-text column="id" form="ticket"/>
</p>
<p>
<htk-text form="ticket" column="landed" format="%D"/>
</p>
<p>
<span id="method"></span> <htk-text form="ticket" column="agency"/>
</p>
</div>
<div class="address">
<p>
<htk-text form="ticket" column="nickname"/>
</p>
<p>
<htk-text form="ticket" column="street"/>
</p>
<p>
<htk-text form="ticket" column="postalCode"/>
<htk-text form="ticket" column="city"/>
(<htk-text form="ticket" column="province"/>)
</p>
</div>
<div class="total">
<p class="important total">
<t>Total</t>
<htk-text format="%.2d€" form="ticket" column="taxBase"/>
</p>
<p class="important total">
<t>Total + tax</t>
<htk-text format="%.2d€" form="ticket" column="total"/>
</p>
</div>
</htk-loader>
<htk-repeater form-id="iter" renderer="repeaterFunc">
<db-model
property="model"
id="movements"
batch="batch">
<custom>
CALL myTicketGetRows (#ticket)
</custom>
</db-model>
<custom>
<div class="line">
<htk-image
form="iter"
column="image"
class="photo"
directory="catalog"
subdir="200x200"
full-dir="900x900"/>
<p class="concept">
<htk-text form="iter" column="concept"/>
<htk-text form="iter" column="size"/>
<htk-text form="iter" column="category"/>
</p>
<p class="amount">
<htk-text form="iter" column="quantity"/> x
<htk-text form="iter" column="price" format="%.2d€"/>
</p>
<p class="subtotal">
<htk-text id="subtotal" format="%.2d€"/>
</p>
<div class="clear"/>
</div>
</custom>
</htk-repeater>
<htk-repeater form-id="iter" id="packages" class="packages">
<db-model
property="model"
on-status-changed="onPackagesChanged"
batch="batch">
<custom>
CALL myTicketGetPackages (#ticket)
</custom>
</db-model>
<custom>
<div class="line">
<htk-image
form="iter"
column="image"
class="photo"
directory="catalog"
subdir="200x200"
full-dir="900x900"/>
<p class="subtotal">
<htk-text form="iter" column="quantity"/>
</p>
<p class="concept">
<htk-text form="iter" column="name"/>
</p>
<p class="amount">
@<htk-text form="iter" column="id"/>
</p>
<div class="clear"/>
</div>
</custom>
</htk-repeater>
</div>
</div>
</vn>