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

69 lines
1.6 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>
2017-03-17 12:42:10 +00:00
<h1 id="title">
<t>Addresses</t>
</h1>
2015-09-16 16:11:15 +00:00
<div id="actions">
2016-09-19 06:40:18 +00:00
<htk-bar-button
icon="add"
2015-09-16 16:11:15 +00:00
tip="_AddAddress"
2016-09-19 06:40:18 +00:00
on-click="onAddAddressClick"/>
</div>
2017-03-23 16:20:51 +00:00
<div id="main" class="address-list">
2016-12-23 08:57:49 +00:00
<div class="card list">
2015-12-02 17:26:58 +00:00
<htk-radio-group
id="default-address"
2017-04-05 14:06:07 +00:00
lot="user-form"
name="default_address"/>
2016-12-23 08:57:49 +00:00
<htk-repeater model="addresses" form-id="iter" renderer="repeaterFunc">
2015-12-02 17:26:58 +00:00
<custom>
2016-12-23 08:57:49 +00:00
<a id="link" class="list-row" title="_EditAddress">
2015-12-02 17:26:58 +00:00
<div class="actions">
<htk-radio
2017-04-05 14:06:07 +00:00
lot="iter"
name="id"
2015-12-02 17:26:58 +00:00
radio-group="default-address"
tip="_SetAsDefault"/>
<htk-button
2017-04-05 14:06:07 +00:00
lot="iter"
name="id"
2015-12-02 17:26:58 +00:00
tip="_RemoveAddress"
2016-09-26 09:28:47 +00:00
icon="delete"
2015-12-02 17:26:58 +00:00
on-click="onRemoveAddressClick"/>
2015-11-09 08:14:33 +00:00
</div>
2015-12-02 17:26:58 +00:00
<p class="important">
2017-04-05 14:06:07 +00:00
<htk-text lot="iter" name="consignee"/>
2015-12-02 17:26:58 +00:00
</p>
<p>
2017-04-05 14:06:07 +00:00
<htk-text lot="iter" name="name"/>
2015-12-02 17:26:58 +00:00
</p>
<p>
2017-04-05 14:06:07 +00:00
<htk-text lot="iter" name="zip_code"/>,
<htk-text lot="iter" name="city"/>
2015-12-02 17:26:58 +00:00
</p>
2016-12-23 08:57:49 +00:00
</a>
2015-12-02 17:26:58 +00:00
</custom>
</htk-repeater>
2015-07-23 15:58:48 +00:00
</div>
</div>
</vn>