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

78 lines
1.8 KiB
XML
Raw Normal View History

2015-07-23 15:58:48 +00:00
<vn>
<vn-group>
<db-form id="user-form">
2015-11-09 08:14:33 +00:00
<db-model property="model" id="user-model" updatable="true">
<custom>
SELECT user_id, default_address
FROM customer_view c
</custom>
2015-07-23 15:58:48 +00:00
</db-model>
</db-form>
<db-model id="addresses" updatable="true">
2015-11-09 08:14:33 +00:00
<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>
2015-07-23 15:58:48 +00:00
</db-model>
</vn-group>
<div id="title">
<h1><t>Addresses</t></h1>
</div>
2015-09-16 16:11:15 +00:00
<div id="actions">
<htk-button
image="image/dark/add.svg"
tip="_AddAddress"
on-click="onAddAddressClick"
showText="true"/>
</div>
2015-07-23 15:58:48 +00:00
<div id="form" class="address-list">
<div class="box">
<div class="form">
<htk-radio-group
id="default-address"
column="default_address"
form="user-form"/>
<htk-repeater model="addresses" form-id="iter">
2015-11-09 08:14:33 +00:00
<custom>
<div class="address">
<p class="consignee">
<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>
<div class="actions">
<htk-radio
form="iter"
column="id"
radio-group="default-address"
tip="_SetAsDefault"/>
<htk-button
form="iter"
column="id"
tip="_RemoveAddress"
image="image/delete.svg"
on-click="onRemoveAddressClick"/>
<htk-button
form="iter"
column="id"
tip="_EditAddress"
image="image/edit.svg"
on-click="onEditAddressClick"/>
2015-07-23 15:58:48 +00:00
</div>
2015-11-09 08:14:33 +00:00
</div>
</custom>
2015-07-23 15:58:48 +00:00
</htk-repeater>
</div>
</div>
</div>
</vn>