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

78 lines
2.2 KiB
XML
Raw Normal View History

<vn>
<vn-group>
<vn-param id="address">
<vn-hash-param key="address"/>
</vn-param>
2015-07-03 05:49:45 +00:00
<db-form id="iter" on-status-changed="onStatusChange">
<db-param id="country" one-way="true" column="country_id"/>
2015-07-10 12:30:08 +00:00
<db-model id="model" updatable="true" mode="ON_DEMAND" on-operations-done="onOperationsDone">
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
<sql-batch property="batch">
<item name="address" param="address"/>
</sql-batch>
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>AddEditAddress</t></h1>
</div>
<div id="actions" class="action-bar">
<button on-click="onReturnClick">
<img src="image/dark/go-previous.svg" alt=""/>
<t>Return</t>
</button>
<button on-click="onAcceptClick">
<img src="image/dark/ok.svg" alt=""/>
<t>Accept</t>
</button>
</div>
<div id="form" class="address">
<div class="box">
<div class="body">
<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-07-03 05:49:45 +00:00
<htk-combo param="country">
<db-model property="model">
SELECT Id, Pais FROM vn2008.Paises
ORDER BY Pais
</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">
SELECT province_id, name FROM vn2008.province
WHERE Paises_Id = #country
ORDER BY name
<sql-batch property="batch">
<item name="country" param="country"/>
</sql-batch>
</db-model>
</htk-combo>
</div>
</div>
</div>
</div>
</vn>