-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
46 lines (44 loc) · 1.94 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="shipping-address-item" css="'selected-item' : isSelected() , 'not-selected-item':!isSelected()">
<text args="address().prefix"/> <text args="address().firstname"/> <text args="address().middlename"/>
<text args="address().lastname"/> <text args="address().suffix"/><br/>
<if args="address().company">
<text args="address().company"/><br/>
</if>
<text args="_.values(address().street).join(', ')"/><br/>
<text args="address().city "/>, <span text="address().region"></span> <text args="address().postcode"/><br/>
<text args="getCountryName(address().countryId)"/><br/>
<a if="address().telephone" attr="'href': 'tel:' + address().telephone" text="address().telephone"></a><br/>
<each args="data: address().customAttributes, as: 'element'">
<each args="data: Object.keys(element), as: 'attribute'">
<if args="typeof element[attribute] === 'object'">
<if args="element[attribute].label">
<text args="element[attribute].label"/>
</if>
<ifnot args="element[attribute].label">
<if args="element[attribute].value">
<text args="element[attribute].value"/>
</if>
</ifnot>
</if>
<if args="typeof element[attribute] === 'string'">
<text args="element[attribute]"/>
</if><br/>
</each>
</each>
<button visible="address().isEditable()" type="button"
class="action edit-address-link"
click="editAddress">
<span translate="'Edit'"></span>
</button>
<!-- ko if: (!isSelected()) -->
<button type="button" click="selectAddress" class="action action-select-shipping-item">
<span translate="'Ship Here'"></span>
</button>
<!-- /ko -->
</div>