-
Notifications
You must be signed in to change notification settings - Fork 27
/
identity.tpl
166 lines (162 loc) · 7.5 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{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='Your personal information'}</span>
{/capture}
<div class="box">
<h1 class="page-subheading">{l s='Your personal information'}</h1>
{include file="$tpl_dir./errors.tpl"}
{if isset($confirmation) && $confirmation}
<div class="alert alert-success">
{l s='Your personal information has been successfully updated.'}
{if isset($pwd_changed)}<br>{l s='Your password has been sent to your email:'} {$email}{/if}
</div>
{else}
<p>
<b>{l s='Please be sure to update your personal information if it has changed.'}</b>
</p>
<p class="required">
<sup>*</sup>{l s='Required field'}
</p>
<form action="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" method="post" class="std">
<fieldset>
<div class="form-group">
<label>{l s='Social title'}</label>
<div>
{foreach from=$genders key=k item=gender}
<label for="id_gender{$gender->id}" class="radio-inline">
<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}>
{$gender->name}
</label>
{/foreach}
</div>
</div>
<div class="required form-group">
<label for="firstname" class="required">{l s='First name'}</label>
<input class="is_required validate form-control" data-validate="isName" type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" required>
</div>
<div class="required form-group">
<label for="lastname" class="required">{l s='Last name'}</label>
<input class="is_required validate form-control" data-validate="isName" type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" required>
</div>
<div class="required form-group">
<label for="email" class="required">{l s='E-mail address'}</label>
<input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" required>
</div>
<div class="form-group date-select">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select name="days" id="days" class="form-control">
<option value="">-</option>
{foreach from=$days item=v}
<option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v} </option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
{*
{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" class="form-control">
<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>
</div>
<div class="col-xs-4">
<select id="years" name="years" class="form-control">
<option value="">-</option>
{foreach from=$years item=v}
<option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v} </option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="required form-group">
<label for="old_passwd" class="required">{l s='Current Password'}</label>
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="old_passwd" id="old_passwd" required>
</div>
<div class="password form-group">
<label for="passwd">{l s='New Password'}</label>
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="passwd" id="passwd">
</div>
<div class="password form-group">
<label for="confirmation">{l s='Confirmation'}</label>
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="confirmation" id="confirmation">
</div>
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if}>
{l s='Sign up for our newsletter!'}
{if isset($required_fields) && array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</label>
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}>
{l s='Receive special offers from our partners!'}
{if isset($required_fields) && array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</label>
</div>
{/if}
{if $b2b_enable}
<h1 class="page-subheading">{l s='Your company information'}</h1>
<div class="form-group">
<label for="company">{l s='Company'}</label>
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}">
</div>
<div class="form-group">
<label for="siret">{l s='SIRET'}</label>
<input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}">
</div>
<div class="form-group">
<label for="ape">{l s='APE'}</label>
<input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}">
</div>
<div class="form-group">
<label for="website">{l s='Website'}</label>
<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}">
</div>
{/if}
{if isset($HOOK_CUSTOMER_IDENTITY_FORM)}
{$HOOK_CUSTOMER_IDENTITY_FORM}
{/if}
<div class="form-group">
<button type="submit" name="submitIdentity" class="btn btn-lg btn-success">
<span>{l s='Save'} <i class="icon icon-chevron-right"></i></span>
</button>
</div>
</fieldset>
</form>
{/if}
</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>