2016-01-04 10:18:37 +00:00
|
|
|
<p><button class="btn btn-xs btn-default btn-address">{{ __("New Address") }}</button></p>
|
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++) { %}
|
2015-08-25 12:33:31 +00:00
|
|
|
<p class="h6">
|
|
|
|
{%= i+1 %}. {%= addr_list[i].address_type %}
|
|
|
|
{% 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) %}"
|
2015-08-25 12:33:31 +00:00
|
|
|
class="btn btn-default btn-xs pull-right">
|
|
|
|
{%= __("Edit") %}</a>
|
|
|
|
</p>
|
2014-11-24 08:46:51 +00:00
|
|
|
<div style="padding-left: 15px;">
|
2015-08-25 12:33:31 +00:00
|
|
|
<p style="margin-top: 5px; font-size: 12px;">
|
|
|
|
{%= addr_list[i].display %}</p>
|
2014-11-24 08:46:51 +00:00
|
|
|
</div>
|
|
|
|
{% } %}
|
|
|
|
{% if(!addr_list.length) { %}
|
|
|
|
<p class="text-muted">{%= __("No address added yet.") %}</p>
|
|
|
|
{% } %}
|