vendor/shopware/storefront/Resources/views/storefront/page/account/address.html.twig line 1

Open in your IDE?
  1. {% block page_account_overview_addresses %}
  2.     <div class="row js-account-overview-addresses">
  3.         {% block page_account_overview_addresses_inner %}
  4.             {% block page_account_overview_billing_address %}
  5.                 <div class="col-lg-6 card-col account-overview-card overview-billing-address">
  6.                     {% block page_account_overview_billing_address_card %}
  7.                         <div class="card">
  8.                             <div class="card-body">
  9.                                 {% block page_account_overview_billing_address_title %}
  10.                                     <h2 class="card-title">
  11.                                         {{ "account.overviewBillingHeader"|trans|sw_sanitize }}
  12.                                     </h2>
  13.                                 {% endblock %}
  14.                                 {% block page_account_overview_billing_address_content %}
  15.                                     {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': context.customer.defaultBillingAddress} %}
  16.                                 {% endblock %}
  17.                                 {% block page_account_overview_billing_address_actions %}
  18.                                     <div class="card-actions">
  19.                                         {# @deprecated tag:v6.5.0 - Option addressEditorOptions.csrfToken will be removed. #}
  20.                                         {% set addressEditorOptions = {
  21.                                             changeBilling: true,
  22.                                             csrfToken: sw_csrf("frontend.account.addressbook", {"mode": "token"})
  23.                                         } %}
  24.                                         {% block page_account_overview_billing_address_actions_link %}
  25.                                             <a href="{{ path('frontend.account.address.edit.page', {'addressId': context.customer.defaultBillingAddress.id}) }}"
  26.                                                title="{{ "account.overviewChangeBilling"|trans|striptags }}"
  27.                                                class="btn btn-light"
  28.                                                data-address-editor="true"
  29.                                                data-address-editor-options='{{ addressEditorOptions|json_encode }}'>
  30.                                                 {{ "account.overviewChangeBilling"|trans|sw_sanitize }}
  31.                                             </a>
  32.                                         {% endblock %}
  33.                                     </div>
  34.                                 {% endblock %}
  35.                             </div>
  36.                         </div>
  37.                     {% endblock %}
  38.                 </div>
  39.             {% endblock %}
  40.             {% block page_account_overview_shipping_address %}
  41.                 <div class="col-lg-6 card-col account-overview-card overview-shipping-address">
  42.                     {% block page_account_overview_shipping_address_card %}
  43.                         <div class="card">
  44.                             <div class="card-body">
  45.                                 {% block page_account_overview_shipping_address_title %}
  46.                                     <h2 class="card-title">
  47.                                         {{ "account.overviewShippingHeader"|trans|sw_sanitize }}
  48.                                     </h2>
  49.                                 {% endblock %}
  50.                                 {% block page_account_overview_shipping_address_content %}
  51.                                     {% if context.customer.defaultBillingAddress.id is same as(context.customer.defaultShippingAddress.id) %}
  52.                                         <p>{{ "account.overviewAddressEqual"|trans|sw_sanitize }}</p>
  53.                                     {% else %}
  54.                                         {% sw_include '@Storefront/storefront/component/address/address.html.twig' with {'address': context.customer.defaultShippingAddress} %}
  55.                                     {% endif %}
  56.                                 {% endblock %}
  57.                                 {% block page_account_overview_shipping_address_actions %}
  58.                                     <div class="card-actions">
  59.                                         {# @deprecated tag:v6.5.0 - Option addressEditorOptions.csrfToken will be removed. #}
  60.                                         {% set addressEditorOptions = {
  61.                                             changeShipping: true,
  62.                                             csrfToken: sw_csrf("frontend.account.addressbook", {"mode": "token"})
  63.                                         } %}
  64.                                         {% block page_account_overview_shipping_address_actions_link %}
  65.                                             <a href="{{ path('frontend.account.address.edit.page', {'addressId': context.customer.defaultShippingAddress.id}) }}"
  66.                                                title="{{ "account.overviewChangeShipping"|trans|striptags }}"
  67.                                                class="btn btn-light"
  68.                                                data-address-editor="true"
  69.                                                data-address-editor-options='{{ addressEditorOptions|json_encode }}'>
  70.                                                 {{ "account.overviewChangeShipping"|trans|sw_sanitize }}
  71.                                             </a>
  72.                                         {% endblock %}
  73.                                     </div>
  74.                                 {% endblock %}
  75.                             </div>
  76.                         </div>
  77.                     {% endblock %}
  78.                 </div>
  79.             {% endblock %}
  80.         {% endblock %}
  81.     </div>
  82. {% endblock %}