-
Notifications
You must be signed in to change notification settings - Fork 7
/
identity.tpl
executable file
·112 lines (107 loc) · 4.17 KB
/
identity.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{*
*
*
*}
{capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Your personal information'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Your personal information'}</h1>
{include file="$tpl_dir./errors.tpl"}
{if isset($confirmation) && $confirmation}
<p class="success">
{l s='Your personal information has been successfully updated.'}
{if isset($pwd_changed)}<br />{l s='Your password has been sent to your e-mail:'} {$email}{/if}
</p>
{else}
<h3>{l s='Please be sure to update your personal information if it has changed.'}</h3>
<p class="required"><sup>*</sup>{l s='Required field'}</p>
<form action="{$link->getPageLink('identity', true)}" method="post" class="std">
<fieldset>
<p class="radio">
<span>{l s='Title'}</span>
{foreach from=$genders key=k item=gender}
<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id|intval}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
<label for="id_gender{$gender->id}" class="top">{$gender->name}</label>
{/foreach}
</p>
<p class="required text">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" />
</p>
<p class="required text">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" />
</p>
<p class="required text">
<label for="email">{l s='E-mail'} <sup>*</sup></label>
<input type="text" name="email" id="email" value="{$smarty.post.email}" />
</p>
<p class="required text">
<label for="old_passwd">{l s='Current Password'} <sup>*</sup></label>
<input type="password" name="old_passwd" id="old_passwd" />
</p>
<p class="password">
<label for="passwd">{l s='New Password'}</label>
<input type="password" name="passwd" id="passwd" />
</p>
<p class="password">
<label for="confirmation">{l s='Confirmation'}</label>
<input type="password" name="confirmation" id="confirmation" />
</p>
<p class="select">
<label>{l s='Date of Birth'}</label>
<select name="days" id="days">
<option value="">-</option>
{foreach from=$days item=v}
<option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v} </option>
{/foreach}
</select>
{*
{l s='January'}
{l s='February'}
{l s='March'}
{l s='April'}
{l s='May'}
{l s='June'}
{l s='July'}
{l s='August'}
{l s='September'}
{l s='October'}
{l s='November'}
{l s='December'}
*}
<select id="months" name="months">
<option value="">-</option>
{foreach from=$months key=k item=v}
<option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
{/foreach}
</select>
<select id="years" name="years">
<option value="">-</option>
{foreach from=$years item=v}
<option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v} </option>
{/foreach}
</select>
</p>
{if $newsletter}
<p class="checkbox">
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if} />
<label for="newsletter">{l s='Sign up for our newsletter'}</label>
</p>
<p class="checkbox">
<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if} />
<label for="optin">{l s='Receive special offers from our partners'}</label>
</p>
{/if}
<p class="submit">
<input type="submit" class="button" name="submitIdentity" value="{l s='Save'}" />
</p>
<p id="security_informations">
{l s='[Insert customer data privacy clause or law here, if applicable]'}
</p>
</fieldset>
</form>
{/if}
<ul class="footer_links">
<li><a href="{$link->getPageLink('my-account', true)}">{l s='Back to your account'}</a></li>
<li><a href="{$base_dir}">{l s='Home'}</a></li>
</ul>