2015-08-25 12:33:31 +00:00
|
|
|
<div class="clearfix"></div>
|
2014-11-24 08:46:51 +00:00
|
|
|
{% for(var i=0, l=addr_list.length; i<l; i++) { %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<div class="address-box">
|
2015-08-25 12:33:31 +00:00
|
|
|
<p class="h6">
|
2017-04-18 10:35:50 +00:00
|
|
|
{%= i+1 %}. {%= addr_list[i].address_type!="Other" ? __(addr_list[i].address_type) : addr_list[i].address_title %}
|
2015-08-25 12:33:31 +00:00
|
|
|
{% if(addr_list[i].is_primary_address) { %}
|
|
|
|
<span class="text-muted">({%= __("Primary") %})</span>{% } %}
|
|
|
|
{% if(addr_list[i].is_shipping_address) { %}
|
|
|
|
<span class="text-muted">({%= __("Shipping") %})</span>{% } %}
|
|
|
|
|
2016-01-09 21:05:45 +00:00
|
|
|
<a href="#Form/Address/{%= encodeURIComponent(addr_list[i].name) %}"
|
2017-06-21 11:52:38 +00:00
|
|
|
class="btn btn-default btn-xs pull-right"
|
|
|
|
style="margin-top:-3px; margin-right: -5px;">
|
2015-08-25 12:33:31 +00:00
|
|
|
{%= __("Edit") %}</a>
|
2017-06-21 11:52:38 +00:00
|
|
|
</p>
|
|
|
|
<p>{%= addr_list[i].display %}</p>
|
2014-11-24 08:46:51 +00:00
|
|
|
</div>
|
|
|
|
{% } %}
|
|
|
|
{% if(!addr_list.length) { %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<p class="text-muted small">{%= __("No address added yet.") %}</p>
|
2014-11-24 08:46:51 +00:00
|
|
|
{% } %}
|
2017-06-21 11:52:38 +00:00
|
|
|
<p><button class="btn btn-xs btn-default btn-address">{{ __("New Address") }}</button></p>
|
|
|
|
|