hedera-web/forms/account/address/ui.xml

97 lines
2.3 KiB
XML
Raw Normal View History

<vn>
<vn-group>
2015-11-09 08:14:33 +00:00
<vn-param id="address"/>
<vn-hash-param key="address" param="address"/>
2015-07-03 05:49:45 +00:00
<db-form id="iter" on-status-changed="onStatusChange">
2015-12-10 13:48:43 +00:00
<db-model
id="model"
property="model"
updatable="true"
mode="ON_DEMAND"
on-operations-done="onOperationsDone">
2015-11-09 08:14:33 +00:00
<custom>
SELECT a.id, a.name, a.consignee, a.city, a.zip_code, a.province_id, c.Id country_id
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
</custom>
<sql-batch property="batch">
2015-11-09 08:14:33 +00:00
<custom>
<item name="address" param="address"/>
</custom>
</sql-batch>
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>AddEditAddress</t></h1>
</div>
2015-09-16 16:11:15 +00:00
<div id="actions">
2016-09-19 06:40:18 +00:00
<htk-bar-button
icon="ok"
2015-09-16 16:11:15 +00:00
tip="_Accept"
2016-09-19 06:40:18 +00:00
on-click="onAcceptClick"/>
<htk-bar-button
icon="close"
tip="_Return"
2016-09-19 06:40:18 +00:00
on-click="onReturnClick"/>
</div>
<div id="form" class="address">
<div class="box">
2015-12-02 17:26:58 +00:00
<div class="form">
<div class="form-group">
<label><t>Name</t></label>
<htk-entry column="consignee" form="iter"/>
</div>
<div class="form-group">
<label><t>Address</t></label>
<htk-entry column="name" form="iter"/>
</div>
<div class="form-group">
<label><t>City</t></label>
<htk-entry column="city" form="iter"/>
</div>
<div class="form-group">
<label><t>ZipCode</t></label>
<htk-entry column="zip_code" form="iter"/>
</div>
<div class="form-group">
<label><t>Country</t></label>
2015-11-09 08:14:33 +00:00
<htk-combo>
<db-param
2015-12-10 13:48:43 +00:00
id="country"
2015-11-09 08:14:33 +00:00
property="param"
form="iter"
column="country_id"
one-way="true"/>
<db-model property="model">
2015-11-09 08:14:33 +00:00
<custom>
SELECT Id, Pais FROM vn2008.Paises
ORDER BY Pais
</custom>
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>Province</t></label>
<htk-combo column="province_id" form="iter">
<db-model property="model">
2015-11-09 08:14:33 +00:00
<custom>
SELECT province_id, name FROM vn2008.province
WHERE Paises_Id = #country
ORDER BY name
</custom>
<sql-batch property="batch">
2015-11-09 08:14:33 +00:00
<custom>
<item name="country" param="country"/>
</custom>
</sql-batch>
</db-model>
</htk-combo>
</div>
</div>
</div>
</div>
</vn>