-
Notifications
You must be signed in to change notification settings - Fork 27
/
addresses.tpl
64 lines (58 loc) · 2.93 KB
/
addresses.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='My addresses'}</span>{/capture}
<h1 class="page-heading">{l s='My addresses'}</h1>
<p>{l s='Please configure your default billing and delivery addresses when placing an order. You may also add additional addresses, which can be useful for sending gifts or receiving an order at your office.'}</p>
{if !empty($multipleAddresses)}
<div class="addresses">
<p><strong>{l s='Your addresses are listed below.'}</strong></p>
<p class="p-indent">{l s='Be sure to update your personal information if it has changed.'}</p>
{assign var="adrs_style" value=$addresses_style}
<div class="bloc_adresses row">
{foreach from=$multipleAddresses item=address name=myLoop}
<div class="col-xs-12 col-sm-6 address">
<ul class="box">
<li><h3 class="page-subheading">{$address.object.alias}</h3></li>
{foreach from=$address.ordered name=adr_loop item=pattern}
{assign var=addressKey value=" "|explode:$pattern}
<li>
{foreach from=$addressKey item=key name="word_loop"}
<span {if isset($addresses_style[$key])} class="{$addresses_style[$key]}"{/if}>
{$address.formated[$key|replace:',':'']|escape:'html':'UTF-8'}
</span>
{/foreach}
</li>
{/foreach}
<li class="address_update">
<a class="btn btn-success" href="{$link->getPageLink('address', true, null, "id_address={$address.object.id|intval}")|escape:'html':'UTF-8'}" title="{l s='Update'}">
<span>{l s='Update'} <i class="icon icon-refresh"></i></span>
</a>
<a class="btn btn-danger" href="{$link->getPageLink('address', true, null, "id_address={$address.object.id|intval}&delete")|escape:'html':'UTF-8'}" data-id="addresses_confirm" title="{l s='Delete'}">
<span>{l s='Delete'} <i class="icon icon-remove"></i></span>
</a>
</li>
</ul>
</div>
{if $smarty.foreach.myLoop.index % 2 && !$smarty.foreach.myLoop.last}
</div>
<div class="bloc_adresses row">
{/if}
{/foreach}
</div>
</div>
{else}
<div class="alert alert-warning">{l s='No addresses are available.'}</div>
{/if}
<div class="clearfix form-group">
<a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Add an address'}" class="btn btn-success">
<span><i class="icon icon-plus"></i> {l s='Add a new address'}</span>
</a>
</div>
<nav>
<ul class="pager">
<li class="previous">
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
{if $isRtl}→{else}←{/if} {l s='Back to your account'}
</a>
</li>
</ul>
</nav>
{addJsDefL name=addressesConfirm}{l s='Are you sure?' js=1}{/addJsDefL}