brotherton-erpnext/erpnext/templates/includes/cart/cart_address.html

27 lines
1.0 KiB
HTML
Raw Normal View History

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">
{% 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 shipping_addresses %}
{{ 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">
<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 billing_addresses %}
{{ show_address(address, doc, "customer_address", select_address) }}
2015-09-16 13:22:52 +00:00
{% endfor %}
</div>
</div>
</div>