2016-05-02 06:13:44 +00:00
|
|
|
{% from "erpnext/templates/includes/cart/cart_macros.html" import show_address %}
|
2015-09-16 13:22:52 +00:00
|
|
|
<div class="row">
|
2016-02-10 07:03:44 +00:00
|
|
|
{% if addresses|length == 1%}
|
|
|
|
{% set select_address = True %}
|
|
|
|
{% endif %}
|
2015-09-16 13:22:52 +00:00
|
|
|
<div class="col-sm-6">
|
2016-05-02 06:13:44 +00:00
|
|
|
<div class="h6 text-uppercase">{{ _("Shipping Address") }}</div>
|
2015-09-16 13:22:52 +00:00
|
|
|
<div id="cart-shipping-address" class="panel-group"
|
|
|
|
data-fieldname="shipping_address_name">
|
|
|
|
{% for address in addresses %}
|
2016-02-10 07:03:44 +00:00
|
|
|
{{ show_address(address, doc, "shipping_address_name", select_address) }}
|
2015-09-16 13:22:52 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<a class="btn btn-default btn-sm" href="/addresses">
|
|
|
|
{{ _("Manage Addresses") }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2016-05-02 06:13:44 +00:00
|
|
|
<div class="h6 text-uppercase">Billing Address</div>
|
2015-09-16 13:22:52 +00:00
|
|
|
<div id="cart-billing-address" class="panel-group"
|
|
|
|
data-fieldname="customer_address">
|
|
|
|
{% for address in addresses %}
|
2016-02-10 07:03:44 +00:00
|
|
|
{{ show_address(address, doc, "customer_address", select_address) }}
|
2015-09-16 13:22:52 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|