0
1
Fork 0
hedera-web-mindshore/forms/account/address/ui.xml

88 lines
1.9 KiB
XML
Raw Normal View History

<vn>
<vn-group>
2022-05-30 01:30:33 +00:00
<vn-lot-query id="params">
<vn-spec name="address" type="Number"/>
</vn-lot-query>
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-30 01:30:33 +00:00
lot="params"
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
</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-30 01:30:33 +00:00
on-click="window.history.back()"/>
2022-05-21 21:31:56 +00:00
<htk-bar-button
icon="check"
tip="_Accept"
2022-06-18 21:04:34 +00:00
on-click="iter.performOperations()"/>
</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"
2022-10-03 12:49:41 +00:00
form="iter" column="nickname"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<htk-entry
placeholder="_Address"
2022-10-03 12:49:41 +00:00
form="iter" column="street"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<htk-entry
placeholder="_City"
2022-10-03 12:49:41 +00:00
form="iter" column="city"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<htk-entry
placeholder="_ZipCode"
2022-10-03 12:49:41 +00:00
form="iter" column="postalCode"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<htk-combo
2022-06-06 12:49:18 +00:00
placeholder="_Country"
2022-10-03 12:49:41 +00:00
form="iter" column="countryFk"
2022-06-06 12:49:18 +00:00
id="country"
2022-10-03 12:49:41 +00:00
one-way="true"
one-time="true">
2022-05-26 06:08:31 +00:00
<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">
2022-06-06 12:49:18 +00:00
<db-model property="model" lot="country">
2022-05-26 06:08:31 +00:00
SELECT id, name FROM vn.province
2022-06-06 12:49:18 +00:00
WHERE countryFk = #id
2022-05-26 06:08:31 +00:00
ORDER BY name
</db-model>
</htk-combo>
</div>
</div>
</div>
</vn>