forked from NeonSwan/nexudus-spaces-default-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.htm
316 lines (300 loc) · 17.7 KB
/
profile.htm
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
{% extends master.master %}
{% block content %}
<div id="wrapper">
<!-- CONTAINER -->
<div id="main" class="container">
<!-- BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="{% Url PublicHome, Index %}">{% T Home %}</a> <span class="divider">/</span></li>
<li class="active">{% T My account %}</li>
</ul>
<!-- END BREADCRUMB -->
<div class="row">
<h2 class="page-title span12">{% T My account at {0} || data.Business.Name %}</h2>
<!-- CONTENT -->
<section id="content" class="span12">
<ul class="nav nav-pills">
<li><a href="#personal-details"><i class="icon-user"></i> {% T Personal Details %}</a></li>
{% if data.Local.HasCustomFields %}
<li><a href="#other-details"><i class="icon-list"></i> {% T Other Details %}</a></li>
{% endif %}
<li><a href="#account-details"><i class="icon-briefcase"></i> {% T Account details %}</a></li>
<li><a href="#location"><i class="icon-home"></i> {% T Your location %}</a></li>
<li><a href="#public-profile"><i class="icon-tags"></i> {% T Public profile %}</a></li>
<li><a href="#notifications"><i class="icon-bullhorn"></i> {% T Notifications %}</a></li>
</ul>
<hr/>
{% if data.Coworker.Active == false %}
<div class="alert alert-error text-center">
<b>{% T Your account is currently on hold. Contact us for more information %}</b>
</div>
{% endif %}
{% if data.Coworker.Tariff.Id != data.Coworker.NextTariff.Id %}
<div class="alert alert-warning text-center">
<h4>{% T Your price plan is about to change. %}</h4>
{% assign renewDateFormated = data.Coworker.NextInvoice | Date: 'D' %}
{% if data.Coworker.NextTariff != null %}
{% T Your price plan will change to "{1}" on {0} || renewDateFormated || data.Coworker.NextTariff.Name %}
{% else %}
{% T Your price will be cancelled on {0} || renewDateFormated %}
{% endif %}
</div>
{% endif %}
<form action="{% Url Profile, Index %}" method="POST" enctype="multipart/form-data" id="profile-form">
<h3 id="personal-details">{% T Personal Details %}</h3>
<div class="well">
<div class="row-fluid">
<div class="span9">
<div class="row-fluid">
<div class="span4">
<label for="Coworker_FullName">{% T Fullname %}</label>
<input type="text" id="Coworker_FullName" name="Coworker.FullName" value="{{ data.Coworker.FullName }}" required="required" class="span12">
</div>
<div class="span8">
<label for="Coworker_Salutation">{% T What should we call you? %} <span class="muted hidden-tablet">{% T (for example, when we send you mail?) %}</span></label>
<input class="span6" type="text" id="Coworker_Salutation" name="Coworker.Salutation" value="{{ data.Coworker.Salutation }}" required="required" class="span12">
</div>
</div>
<div class="row-fluid">
<div class="span12">
<label for="Coworker_Email">{% T Email %}</label>
<input type="text" id="Coworker_Email" name="Coworker.Email" value="{{ data.Coworker.Email }}" class="span12">
</div>
</div>
<div class="row-fluid">
<div class="span12">
<label for="Coworker_Gender">{% T Gender %}</label>
<select id="Coworker_Gender" name="Coworker.Gender">
<option>-</option>
<option value="2" {% if (data.Coworker.Gender == 'Male' %} selected="selected" {% endif %}>{% T Male %}</option>
<option value="3" {% if (data.Coworker.Gender == 'Female' %} selected="selected" {% endif %}>{% T Female %}</option>
</select>
</div>
</div>
</div>
<div class="span3">
<label for="Coworker_Avatar">{% T Avatar %}</label>
{% if data.Coworker.HasAvatar %}
<img class="img-polaroid" src="{% Url Coworker, GetAvatar, id: data.Coworker.Id, h:140, w:140 %}" />
<br/>
{% endif %}
<input type="file" name="Coworker_Avatar" id="Coworker_Avatar" class="span12" />
</div>
</div>
<div class="row-fluid">
<a target="blank" href="/Login/ResetPassword?lang=en&email={{ data.Coworker.User.Email }}" class="btn btn-grey">{% T Change password %}</a>
</div>
</div>
{% if data.Local.HasCustomFields %}
<h3 id="other-details">{% T Other Details %}</h3>
<div class="well">
{% for field in data.Local.CustomFields %}
{% capture customFieldName %}Custom{{ field.CustomFieldIndex}}{%endcapture%}
<div class="row-fluid">
{% if field.FieldType == 'Text' %}
<div class="span12">
<label for="Coworker_Custom{{ customFieldName }}">{% T field.Name %}</label>
<input type="text" id="Coworker_Custom{{ customFieldName }}" name="Coworker.{{ customFieldName }}" value="{{data.Coworker[customFieldName]}}" class="span12">
</div>
{% elseif field.FieldType == 'LongText' %}
<div class="span12">
<label for="Coworker_{{ customFieldName }}">{% T field.Name %}</label>
<textarea id="Coworker_{{ customFieldName }}" name="Coworker.{{ customFieldName }}" class="span12">{{data.Coworker[customFieldName]}}</textarea>
</div>
{% elseif field.FieldType == 'Boolean' %}
<div class="span12">
<label for="Coworker_Custom{{ customFieldName }}" class="checkbox">
<input id="Checkbox1" name="Coworker.{{ customFieldName }}" type="checkbox" {% if data.Coworker[customFieldName] == 'true' %}checked="checked"{% endif %} value="true" >
<input id="Coworker_Custom{{ customFieldName }}_Hidden" name="Coworker.{{ customFieldName }}" type="hidden" value="false">
{% T field.Name %}
</label>
</div>
{% elseif field.FieldType == 'Dropdown' %}
<div class="span12">
<label>{% T field.Name %}</label>
<div class="input-append date">
<input type="text" name="Coworker.{{ customFieldName }}"/>
<span class="add-on"><i class="icon-th icon-calendar"></i></span>
</div>
</div>
{% elseif field.FieldType == 'Date' %}
<div class="span12">
<label for="Coworker_Custom{{ customFieldName }}">{% T field.Name %}</label>
<div class="input-append date">
<input type="text" id="Text1" name="Coworker.{{ customFieldName }}"/>
<span class="add-on"><i class="icon-th icon-calendar"></i></span>
</div>
</div>
{% else %}
<div class="span12">
<label for="Coworker_Custom{{ customFieldName }}">{% T field.Name %}</label>
<input type="text" id="Coworker_Custom{{ field.CustomFieldIndex }}" name="Coworker.Custom{{ field.CustomFieldIndex }}" value="{{data.Coworker[customFieldName]}}" class="span2">
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
<h3 id="account-details">{% T Account details %}</h3>
<div class="well">
<div class="row-fluid">
<div class="span12">
<label for="Coworker_Address">{% T Address %}</label>
<textarea rows="5" id="Coworker_Address" name="Coworker.Address" type="text" class="span12">{{ data.Coworker.Address }}</textarea>
</div>
</div>
<div class="row-fluid">
<div class="span3">
<label for="Coworker_PostCode">{% T Postcode / Zip code %}</label>
<input value="{{ data.Coworker.PostCode }}" type="text" name="Coworker.PostCode" id="Coworker_PostCode" class="span12">
</div>
<div class="span3">
<label for="Coworker_CityName">{% T Town %}</label>
<input value="{{ data.Coworker.CityName }}" class="full-width" type="text" name="Coworker.CityName" id="Coworker_CityName" class="span12">
</div>
<div class="span3">
<label for="Coworker_State">{% T State / Province %}</label>
<input value="{{ data.Coworker.State }}" class="full-width" type="text" name="Coworker.State" id="Coworker_State" class="span12">
</div>
<div class="span3">
<label>{% T Price Plan %}</label>
<input value="{{ data.Coworker.Tariff.Name }}" type="text" disabled="disabled" class="uneditable-input">
<small><a href="{% Url Profile, Tariff %}">{% T Change your price plan %}</a></small>
</div>
</div>
<a class="btn btn-grey" href="{% Url Profile, Tariff %}">{% T Change your price plan %}</a>
</div>
<h3 id="location">{% T Your location %}</h3>
<div class="well">
<div class="row-fluid">
<div class="span6">
<label>{% T Country %}</label>
{% CountriesDropdown data.Coworker.Country.Id, Coworker.Country %}
</div>
<div class="span6">
<label>{% T Timezone %}</label>
{% TimeZonesDropdown data.Coworker.SimpleTimeZone.Id, Coworker.SimpleTimeZone %}
</div>
</div>
</div>
<h3 id="public-profile">{% T Public profile %}</h3>
<div class="well">
<div class="row-fluid">
<div class="span3">
<label for="Coworker_NickName">{% T Nickname %}</label>
<input value="{{ data.Coworker.NickName }}" type="text" name="Coworker.NickName" id="Coworker_NickName" class="span12">
</div>
<div class="span3">
<label for="Coworker_CompanyName">{% T Company %}</label>
<input value="{{ data.Coworker.CompanyName }}" type="text" name="Coworker.CompanyName" id="Coworker_CompanyName" class="span12">
</div>
<div class="span3">
<label for="Coworker_BusinessArea">{% T Business area %}</label>
<input value="{{ data.Coworker.BusinessArea }}" type="text" name="Coworker.BusinessArea" id="Coworker_BusinessArea" class="span12">
</div>
<div class="span3">
<label for="Coworker_ProfileWebsite">{% T Web %}</label>
<input value="{{ data.Coworker.ProfileWebsite }}" type="text" name="Coworker.ProfileWebsite" id="Coworker_ProfileWebsite" class="span12">
</div>
</div>
<div class="row-fluid">
<div class="span12">
<textarea rows="5" id="Coworker_ProfileSummary" name="Coworker.ProfileSummary" class="span12" type="text">{{ data.Coworker.ProfileSummary }}</textarea>
</div>
</div>
<div class="row-fluid">
<div class="span3">
<label for="Coworker_Twitter">Twitter</label>
<input value="{{ data.Coworker.Twitter }}" type="text" name="Coworker.Twitter" id="Coworker_Twitter" class="span12" placeholder="@twitter">
</div>
<div class="span3">
<label for="Coworker_Facebook">Facebook</label>
<input value="{{ data.Coworker.Facebook }}" type="text" name="Coworker.Facebook" id="Coworker_Facebook" class="span12" placeholder="https://www.facebook.com/zuck">
</div>
<div class="span3">
<label for="Coworker_Linkedin">Linkedin</label>
<input value="{{ data.Coworker.Linkedin }}" type="text" name="Coworker.Linkedin" id="Coworker_Linkedin" class="span12" placeholder="http://www.linkedin.com/in/jeffweiner08">
</div>
<div class="span3">
<label for="Coworker_Skype">Skype</label>
<input value="{{ data.Coworker.Skype }}" type="text" name="Coworker.Skype" id="Coworker_Skype" class="span12" placeholder="skype">
</div>
</div>
<div class="row-fluid">
<div class="span12">
<label for="Coworker_ProfileTags">{% T Skills (separate by commas) %}</label>
<input id="Coworker_ProfileTags" name="Coworker.ProfileTags" type="text" value="{{ data.Coworker.ProfileTags }}" class="span12" />
</div>
</div>
<div class="row-fluid">
<div class="span12">
<label for="Coworker_ProfileIsPublic" class="checkbox">
<input id="Coworker_ProfileIsPublic" name="Coworker.ProfileIsPublic" type="checkbox" value="true" {% if !data.Coworker.ProfileIsPublic %} checked="checked" {% endif %}/>
<input id="Coworker_ProfileIsPublic_Hidden" name="Coworker.ProfileIsPublic" type="hidden" value="false" />
{% T Publish my profile %}
</label>
</div>
</div>
<a target="blank" href="{% Url Directory, Profile, Id: data.Coworker.Id, name: data.Coworker.FullName | Clean %}'" class="btn btn-grey">{% T View my profile %}</a>
</div>
<h3 id="notifications">{% T Notifications %}</h3>
<div class="well">
<div class="row-fluid">
<p>{% T Select when would you like to receive notifications: %}</p>
<label for="User_OnHelpDeskMsg" class="checkbox">
<input id="User_OnHelpDeskMsg" name="User.OnHelpDeskMsg" type="checkbox" value="true" {% if !data.Coworker.User.OnHelpDeskMsg %} checked="checked" {% endif %}/>
<input id="User_OnHelpDeskMsg_Hidden" name="User.OnHelpDeskMsg" type="hidden" value="false" />
{% T When a new message is posted in the help desk message board. %}
</label>
<label for="User_OnNewWallPost" class="checkbox">
<input id="User_OnNewWallPost" name="User.OnNewWallPost" type="checkbox" value="true" {% if !data.Coworker.User.OnNewWallPost %} checked="checked" {% endif %}/>
<input id="User_OnNewWallPost_Hidden" name="User.OnNewWallPost" type="hidden" value="false" />
{% T When a new message is posted in the home page wall. %}
</label>
<label for="User_OnNewBlogComment" class="checkbox">
<input id="User_OnNewBlogComment" name="User.OnNewBlogComment" type="checkbox" value="true" {% if !data.Coworker.User.OnNewBlogComment %} checked="checked" {% endif %}/>
<input id="User_OnNewBlogComment_Hidden" name="User.OnNewBlogComment" type="hidden" value="false" />
{% T When a new message is posted in the blog. %}
</label>
<label for="User_OnNewEventComment" class="checkbox">
<input id="User_OnNewEventComment" name="User.OnNewEventComment" type="checkbox" value="true" {% if !data.Coworker.User.OnNewEventComment %} checked="checked" {% endif %}/>
<input id="User_OnNewEventComment_Hidden" name="User.OnNewEventComment" type="hidden" value="false" />
{% T When a new message is posted in an event. %}
</label>
</div>
</div>
{% if data.Setting_PublicWebSite_CommunityBoard %}
<div class="well">
<div class="row-fluid">
<p><b>{% T How and when should we alert you about conversations in the community board? %}</b></p>
<label for="User_ReceiveCommunityDigest" class="checkbox">
<input id="User_ReceiveCommunityDigest" name="User.ReceiveCommunityDigest" type="checkbox" value="true" {% if data.Coworker.User.ReceiveCommunityDigest %} checked="checked" {% endif %}/>
<input id="User_ReceiveCommunityDigest_Hidden" name="User.ReceiveCommunityDigest" type="hidden" value="false" />
{% T Send me an update in the morning if there are new messages (~8am). %}
</label>
<label for="User_ReceiveEveryMessage" class="checkbox">
<input id="User_ReceiveEveryMessage" name="User.ReceiveEveryMessage" type="checkbox" value="true" {% if data.Coworker.User.ReceiveEveryMessage %} checked="checked" {% endif %}/>
<input id="User_ReceiveEveryMessage_Hidden" name="User.ReceiveEveryMessage" type="hidden" value="false" />
{% T Send me an notification shortly after every message. You can still mute individual conversations. %}
</label>
</div>
</div>
{% endif %}
<div class="row-fluid">
<button type="submit" class="btn pull-right btn-orange">{% T Update %}</button>
</div>
</form>
</section>
<!-- END CONTENT -->
</div>
</div>
<!-- END CONTAINER -->
</div>
{% endblock %}
{% block script %}
<script>
$(function () {
$(".date").datetimepicker({ language: '{{ data.Language }}', format: "dd MM yyyy", minuteStep: 15, showMeridian: true, autoclose: true, minView: 2, startView: 4 });
});
</script>
{% endblock %}