-
Notifications
You must be signed in to change notification settings - Fork 57
/
edit.tpl
157 lines (140 loc) · 5.64 KB
/
edit.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
<!-- IMPORT partials/breadcrumbs.tpl -->
<div class="account edit-account">
<!-- IMPORT partials/account/header.tpl -->
<div class="row">
<div class="col-md-2">
<div class="account-picture-block text-center">
<!-- IF picture -->
<img id="user-current-picture" class="user-profile-picture" src="{picture}" />
<!-- ELSE -->
<div class="user-icon user-profile-picture" style="background-color: {icon:bgColor};">{icon:text}</div>
<!-- ENDIF picture -->
<br /><br />
<li class="dropdown">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">
<span>Options</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<!-- IF allowProfilePicture -->
<li><a id="changePictureBtn" href="#">[[user:change_picture]]</a></li>
<!-- ENDIF allowProfilePicture -->
<!-- IF !username:disableEdit -->
<li><a href="{config.relative_path}/user/{userslug}/edit/username">[[user:change_username]]</a></li>
<!-- ENDIF !username:disableEdit -->
<!-- IF !email:disableEdit -->
<li><a href="{config.relative_path}/user/{userslug}/edit/email">[[user:change_email]]</a></li>
<!-- ENDIF !email:disableEdit -->
<!-- IF canChangePassword -->
<li><a href="{config.relative_path}/user/{userslug}/edit/password">[[user:change_password]]</a></li>
<!-- ENDIF canChangePassword -->
<!-- BEGIN editButtons -->
<li><a href="{config.relative_path}{editButtons.link}">{editButtons.text}</a></li>
<!-- END editButtons -->
</ul>
</li>
<br />
<!-- IF config.requireEmailConfirmation -->
<!-- IF email -->
<!-- IF isSelf -->
<a id="confirm-email" href="#" class="btn btn-warning <!-- IF email:confirmed -->hide<!-- ENDIF email:confirmed -->">[[user:confirm_email]]</a>
<!-- ENDIF isSelf -->
<!-- ENDIF email -->
<!-- ENDIF config.requireEmailConfirmation -->
<!-- IF allowAccountDelete -->
<!-- IF isSelf -->
<a id="deleteAccountBtn" href="#" class="btn btn-danger">[[user:delete_account]]</a><br/><br/>
<!-- ENDIF isSelf -->
<!-- ENDIF allowAccountDelete -->
</div>
</div>
<div class="col-md-10">
<div class="card">
<form class="form-horizontal" role="form">
<div class="card-body card-padding">
<div class="form-group">
<div class="fg-line">
<label>[[user:fullname]]</label>
<input class="form-control" type="text" id="inputFullname" value="{fullname}">
</div>
</div>
<!-- IF allowWebsite -->
<div class="form-group">
<div class="fg-line">
<label>[[user:website]]</label>
<input class="form-control" type="text" id="inputWebsite" value="{website}">
</div>
</div>
<!-- ENDIF allowWebsite -->
<div class="form-group">
<div class="fg-line">
<label>[[user:location]]</label>
<input class="form-control" type="text" id="inputLocation" value="{location}">
</div>
</div>
<div class="form-group">
<div class="fg-line">
<label>[[user:birthday]]</label>
<input class="form-control" id="inputBirthday" value="{birthday}" placeholder="yyyy-mm-dd">
</div>
</div>
<div class="form-group fg-line">
<div class="select">
<label for="grouptitle">[[user:grouptitle]]</label>
<select class="form-control" id="groupTitle" data-property="groupTitle" <!-- IF allowMultipleBadges --> multiple<!-- ENDIF allowMutlipleBadges -->>
<option value="">[[user:no-group-title]]</option>
<!-- BEGIN groups -->
<!-- IF groups.userTitleEnabled -->
<option value="{groups.name}" <!-- IF groups.selected -->selected<!-- ENDIF groups.selected -->>{groups.userTitle}</option>
<!-- ENDIF groups.userTitleEnabled -->
<!-- END groups -->
</select>
</div>
</div>
<!-- IF allowAboutMe -->
<div class="form-group">
<div class="fg-line">
<label>[[user:aboutme]]</label> <small><label id="aboutMeCharCountLeft"></label></small>
<textarea class="form-control" id="inputAboutMe" rows="5">{aboutme}</textarea>
</div>
</div>
<!-- ENDIF allowAboutMe -->
<!-- IF allowSignature -->
<!-- IF !disableSignatures -->
<div class="form-group">
<div class="fg-line">
<label>[[user:signature]]</label> <small><label id="signatureCharCountLeft"></label></small>
<textarea class="form-control" id="inputSignature" rows="5">{signature}</textarea>
</div>
</div>
<!-- ENDIF !disableSignatures -->
<!-- ENDIF allowSignature -->
<input type="hidden" id="inputUID" value="{uid}"><br />
<div class="form-actions">
<a id="submitBtn" href="#" class="btn btn-primary">[[global:save_changes]]</a>
</div>
</div>
</form>
</div>
<!-- IF sso.length -->
<div class="card">
<div class="card-header">[[user:sso.title]]</div>
<div class="card-body card-padding">
<!-- BEGIN sso -->
<div class="list-group-item">
<!-- IF ../deauthUrl -->
<a class="btn btn-default btn-xs pull-right" href="{../deauthUrl}">[[user:sso.dissociate]]</a>
<!-- END -->
<a href="{../url}" target="<!-- IF ../associated -->_blank<!-- ELSE -->_top<!-- ENDIF ../associated -->">
<!-- IF ../icon --><i class="fa {../icon}"></i><!-- ENDIF ../icon -->
<!-- IF ../associated -->[[user:sso.associated]]<!-- ELSE -->[[user:sso.not-associated]]<!-- ENDIF ../associated -->
{../name}
</a>
</div>
<!-- END sso -->
</div>
</div>
<!-- ENDIF sso.length -->
</div>
</div>
</div>