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

98 lines
2.2 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"/>
2022-05-24 21:11:12 +00:00
<db-form id="iter" on-status-changed="this.onStatusChange()">
2015-12-10 13:48:43 +00:00
<db-model
id="model"
property="model"
updatable="true"
mode="ON_DEMAND"
2022-05-24 21:11:12 +00:00
on-operations-done="this.onOperationsDone()">
2018-05-16 15:21:15 +00:00
SELECT a.id, a.street, a.nickname, a.city,
a.postalCode, a.provinceFk, p.countryFk
2018-05-16 15:21:15 +00:00
FROM myAddress a
LEFT JOIN vn.province p ON p.id = a.provinceFk
WHERE a.id = #address
<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">
2022-05-21 21:31:56 +00:00
<h1><t>Configuration</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="close"
tip="_Return"
2022-05-24 21:11:12 +00:00
on-click="this.onReturnClick()"/>
2022-05-21 21:31:56 +00:00
<htk-bar-button
icon="check"
tip="_Accept"
2022-05-24 21:11:12 +00:00
on-click="this.onAcceptClick()"/>
</div>
<div id="form" class="address">
2022-05-26 06:08:31 +00:00
<div class="form box vn-w-sm vn-pa-lg">
<h5 class="vn-mb-md">
<t>AddEditAddress</t>
</h5>
<div class="form-group">
<htk-entry
placeholder="_Name"
column="nickname" form="iter"/>
</div>
<div class="form-group">
<htk-entry
placeholder="_Address"
column="street" form="iter"/>
</div>
<div class="form-group">
<htk-entry
placeholder="_City"
column="city" form="iter"/>
</div>
<div class="form-group">
<htk-entry
placeholder="_ZipCode"
column="postalCode" form="iter"/>
</div>
<div class="form-group">
<htk-combo
placeholder="_Country">
<db-param
id="country"
property="param"
form="iter"
column="countryFk"
one-way="true"/>
<db-model property="model">
SELECT id, country FROM vn.country
ORDER BY country
</db-model>
</htk-combo>
</div>
<div class="form-group">
<htk-combo
placeholder="_Province"
column="provinceFk"
form="iter">
<db-model property="model">
SELECT id, name FROM vn.province
WHERE countryFk = #country
ORDER BY name
<sql-batch property="batch">
<custom>
<item name="country" param="country"/>
</custom>
</sql-batch>
</db-model>
</htk-combo>
</div>
</div>
</div>
</vn>