details.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <div if="isAddressDetailsVisible() && currentBillingAddress()" class="billing-address-details">
  8. <text args="currentBillingAddress().prefix"/> <text args="currentBillingAddress().firstname"/> <text args="currentBillingAddress().middlename"/>
  9. <text args="currentBillingAddress().lastname"/> <text args="currentBillingAddress().suffix"/><br/>
  10. <text args="_.values(currentBillingAddress().street).join(', ')"/><br/>
  11. <text args="currentBillingAddress().city "/>, <span text="currentBillingAddress().region"></span> <text args="currentBillingAddress().postcode"/><br/>
  12. <text args="getCountryName(currentBillingAddress().countryId)"/><br/>
  13. <a if="currentBillingAddress().telephone" attr="'href': 'tel:' + currentBillingAddress().telephone" text="currentBillingAddress().telephone"></a><br/>
  14. <each args="data: currentBillingAddress().customAttributes, as: 'element'">
  15. <each args="data: Object.keys(element), as: 'attribute'">
  16. <if args="typeof element[attribute] === 'object'">
  17. <if args="element[attribute].label">
  18. <text args="element[attribute].label"/>
  19. </if>
  20. <ifnot args="element[attribute].label">
  21. <if args="element[attribute].value">
  22. <text args="element[attribute].value"/>
  23. </if>
  24. </ifnot>
  25. </if>
  26. <if args="typeof element[attribute] === 'string'">
  27. <text args="element[attribute]"/>
  28. </if><br/>
  29. </each>
  30. </each>
  31. <button visible="!isAddressSameAsShipping()"
  32. type="button"
  33. class="action action-edit-address"
  34. click="editAddress">
  35. <span translate="'Edit'"></span>
  36. </button>
  37. </div>