-
Notifications
You must be signed in to change notification settings - Fork 277
Expand file tree
/
Copy pathuser-profile.tpl
More file actions
92 lines (85 loc) · 3.23 KB
/
user-profile.tpl
File metadata and controls
92 lines (85 loc) · 3.23 KB
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
{include file="$template/includes/flashmessage.tpl"}
<h2>{$LANG.userProfile.profile}</h2>
<form method="post" action="{routePath('user-profile-save')}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="inputFirstName" class="control-label">
{$LANG.clientareafirstname}
</label>
<input
type="text"
name="firstname"
id="inputFirstName"
value="{$user->firstName}"
class="form-control"
{if in_array('firstname', $uneditableFields)}disabled="disabled"{/if}
>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="inputLastName" class="control-label">
{$LANG.clientarealastname}
</label>
<input
type="text"
name="lastname"
id="inputLastName"
value="{$user->lastName}"
class="form-control"
{if in_array('lastname', $uneditableFields)}disabled="disabled"{/if}
>
</div>
</div>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</div>
</form>
<br>
<h2>{$LANG.userProfile.changeEmail}</h2>
<p>
{if $user->needsToCompleteEmailVerification()}
<span class="label label-default">{$LANG.userProfile.notVerified}</span>
{elseif $user->emailVerified()}
<span class="label label-success">{$LANG.userProfile.verified}</span>
{/if}
</p>
<form method="post" action="{routePath('user-profile-email-save')}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="inputEmail" class="control-label">
{$LANG.clientareaemail}
</label>
<input
type="email"
name="email"
id="inputEmail"
value="{$user->email}"
class="form-control"
{if in_array('email', $uneditableFields)}disabled="disabled"{/if}
>
</div>
{if !in_array('email', $uneditableFields)}
<div class="form-group">
<label for="emailChangePasswordConfirmation" class="control-label">
{lang key='existingpassword'}
</label>
<input
type="password"
name="existing_password"
id="emailChangePasswordConfirmation"
class="form-control"
>
</div>
{/if}
</div>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" name="save" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</div>
</form>