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

69 lines
1.6 KiB
XML
Executable File

<vn>
<vn-group>
<db-form id="user-form">
<db-model property="model" id="user-model" updatable="true">
<custom>
SELECT user_id, default_address
FROM customer_view c
</custom>
</db-model>
</db-form>
<db-model id="addresses" updatable="true">
<custom>
SELECT a.id, a.consignee, p.name province, a.zip_code,
a.city, a.name, a.active, c.Pais country
FROM address_view a
LEFT JOIN vn2008.province p ON a.province_id = p.province_id
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
WHERE active != FALSE
</custom>
</db-model>
</vn-group>
<h1 id="title">
<t>Addresses</t>
</h1>
<div id="actions">
<htk-bar-button
icon="add"
tip="_AddAddress"
on-click="onAddAddressClick"/>
</div>
<div id="form" class="address-list">
<div class="card list">
<htk-radio-group
id="default-address"
column="default_address"
form="user-form"/>
<htk-repeater model="addresses" form-id="iter" renderer="repeaterFunc">
<custom>
<a id="link" class="list-row" title="_EditAddress">
<div class="actions">
<htk-radio
form="iter"
column="id"
radio-group="default-address"
tip="_SetAsDefault"/>
<htk-button
form="iter"
column="id"
tip="_RemoveAddress"
icon="delete"
on-click="onRemoveAddressClick"/>
</div>
<p class="important">
<htk-text form="iter" column="consignee"/>
</p>
<p>
<htk-text form="iter" column="name"/>
</p>
<p>
<htk-text form="iter" column="zip_code"/>,
<htk-text form="iter" column="city"/>
</p>
</a>
</custom>
</htk-repeater>
</div>
</div>
</vn>