forked from verdnatura/hedera-web
80 lines
1.8 KiB
XML
Executable File
80 lines
1.8 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<vn-param id="address"/>
|
|
<vn-hash-param key="address" param="address"/>
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
|
<db-model
|
|
id="model"
|
|
property="model"
|
|
updatable="true"
|
|
mode="ON_DEMAND"
|
|
lot="hash"
|
|
on-operations-done="onOperationsDone">
|
|
SELECT a.id, a.name, a.consignee, a.city, a.zip_code, a.province_id, c.Id country
|
|
FROM address_view a
|
|
LEFT JOIN vn2008.province p ON p.province_id = a.province_id
|
|
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
|
|
WHERE active != FALSE AND a.id = #address
|
|
</db-model>
|
|
</db-form>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>AddEditAddress</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="ok"
|
|
tip="_Accept"
|
|
on-click="onAcceptClick"/>
|
|
<htk-bar-button
|
|
icon="close"
|
|
tip="_Return"
|
|
on-click="onReturnClick"/>
|
|
</div>
|
|
<div id="main" class="address">
|
|
<div class="card form">
|
|
<div>
|
|
<label><t>Name</t></label>
|
|
<htk-entry lot="iter" name="consignee"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Address</t></label>
|
|
<htk-entry lot="iter" name="name"/>
|
|
</div>
|
|
<div>
|
|
<label><t>City</t></label>
|
|
<htk-entry lot="iter" name="city"/>
|
|
</div>
|
|
<div>
|
|
<label><t>ZipCode</t></label>
|
|
<htk-entry lot="iter" name="zip_code"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Country</t></label>
|
|
<htk-combo>
|
|
<vn-param
|
|
id="country"
|
|
property="param"
|
|
lot="iter"
|
|
name="country"
|
|
one-way="true"/>
|
|
<db-model property="model">
|
|
SELECT Id, Pais FROM vn2008.Paises
|
|
ORDER BY Pais
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>Province</t></label>
|
|
<htk-combo lot="iter" name="province_id">
|
|
<db-model property="model" lot="iter">
|
|
SELECT province_id, name FROM vn2008.province
|
|
WHERE Paises_Id = #country
|
|
ORDER BY name
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|