2 $(document).ready(function() {
4 $('.toggle-section-content').hide();
5 $('.js-section-toggler').click(function(){
6 $('.toggle-section-content').hide();
7 $(this).next('.toggle-section-content').toggle();
15 <div id="profile-edit-links">
17 <li><a class="btn" href="profile/{{$profile_id}}/view?tab=profile" id="profile-edit-view-link" title="{{$viewprof}}">{{$viewprof}}</a></li>
18 {{if $multi_profiles}}
19 <li><a class="btn" href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof}}">{{$cl_prof}}</a></li>
20 <li><a class="btn" href="{{$profile_drop_link}}" id="profile-edit-drop-link" title="{{$del_prof}}" {{$disabled}} >{{$del_prof}}</a></li>
24 <div id="profile-edit-links-end"></div>
28 <div id="profile-edit-wrapper" >
30 <form enctype="multipart/form-data" action="profile_photo" method="post">
31 <input type='hidden' name='form_security_token' value='{{$form_security_token_photo}}'>
32 <input type="hidden" name="profile" value="{{$profile_name.2}}" />
34 <!-- Profile picture -->
35 {{if $detailled_profile}}
36 <div class="toggle-section js-toggle-section">
37 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_picture_section}} »</a>
38 <div class="js-section toggle-section-content hidden">
41 <div id="profile-photo-upload-wrapper">
42 <label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
43 <input name="userfile" type="file" id="profile-photo-upload" size="48" />
46 <div class="profile-edit-submit-wrapper" >
47 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
49 <div class="profile-edit-submit-end"></div>
51 {{if $detailled_profile}}
57 <form id="profile-edit-form" name="form1" action="profiles/{{$profile_id}}" method="post" >
58 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
60 {{if $detailled_profile}}
61 <!-- Basic information -->
62 <div class="toggle-section js-toggle-section">
63 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_basic_section}} »</a>
64 <div class="js-section toggle-section-content hidden">
66 {{include file="field_yesno.tpl" field=$details}}
68 {{if $multi_profiles}}
69 <div id="profile-edit-profile-name-wrapper" >
70 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$profile_name.1}} </label>
71 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name.2}}" /><div class="required">*</div>
73 <div id="profile-edit-profile-name-end"></div>
75 <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name.2}}" />
78 <div id="profile-edit-name-wrapper" >
79 <label id="profile-edit-name-label" for="profile-edit-name" >{{$name.1}} </label>
80 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name.2}}" />
82 <div id="profile-edit-name-end"></div>
84 <div id="profile-edit-gender-wrapper" >
85 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
88 <div id="profile-edit-gender-end"></div>
90 <div id="profile-edit-pdesc-wrapper" >
91 <label id="profile-edit-pdesc-label" for="profile-edit-pdesc" >{{$pdesc.1}} </label>
92 <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc.2}}" />
94 <div id="profile-edit-pdesc-end"></div>
96 <div id="profile-edit-xmpp-wrapper" >
97 <label id="profile-edit-xmpp-label" for="profile-edit-xmpp" >{{$xmpp.1}} </label>
98 <input type="text" size="32" name="xmpp" id="profile-edit-xmpp" value="{{$xmpp.2}}" />
100 <div id="profile-edit-xmpp-desc">{{$xmpp.3}}</div>
101 <div id="profile-edit-xmpp-end"></div>
103 <div id="profile-edit-homepage-wrapper" >
104 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$homepage.1}} </label>
105 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage.2}}" />
107 <div id="profile-edit-homepage-end"></div>
109 <div id="profile-edit-dob-wrapper" >
112 <div id="profile-edit-dob-end"></div>
116 <div id="about-jot-wrapper">
117 <div id="about-jot-desc">{{$about.1}}</div>
118 <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about.2}}</textarea>
120 <div id="about-jot-end"></div>
122 <div id="contact-jot-wrapper" >
123 <div id="contact-jot-desc">{{$contact.1}}</div>
124 <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact.2}}</textarea>
126 <div id="contact-jot-end"></div>
128 <div id="profile-edit-pubkeywords-wrapper" >
129 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$pub_keywords.1}} </label>
130 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords.2}}" />
132 <div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
133 <div id="profile-edit-pubkeywords-end"></div>
135 <div id="profile-edit-prvkeywords-wrapper" >
136 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$prv_keywords.1}} </label>
137 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords.2}}" />
139 <div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
140 <div id="profile-edit-prvkeywords-end"></div>
142 <div class="profile-edit-submit-wrapper" >
143 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
145 <div class="profile-edit-submit-end"></div>
151 <div class="toggle-section js-toggle-section">
152 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} »</a>
153 <div class="js-section toggle-section-content hidden">
155 <div><b>{{$lbl_location_section}}</b></div>
157 <div id="profile-edit-address-wrapper" >
158 <label id="profile-edit-address-label" for="profile-edit-address" >{{$address.1}} </label>
159 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address.2}}" />
161 <div id="profile-edit-address-end"></div>
163 <div id="profile-edit-locality-wrapper" >
164 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$locality.1}} </label>
165 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality.2}}" />
167 <div id="profile-edit-locality-end"></div>
169 <div id="profile-edit-postal-code-wrapper" >
170 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$postal_code.1}} </label>
171 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code.2}}" />
173 <div id="profile-edit-postal-code-end"></div>
175 <div id="profile-edit-country-name-wrapper" >
176 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
177 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region.2}}');">
178 <option selected="selected" >{{$country_name.2}}</option>
181 <div id="profile-edit-country-name-end"></div>
183 <div id="profile-edit-region-wrapper" >
184 <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.2}} </label>
185 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
186 <option selected="selected" >{{$region.2}}</option>
189 <div id="profile-edit-region-end"></div>
191 <div id="profile-edit-hometown-wrapper" >
192 <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$hometown.1}} </label>
193 <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown.2}}" />
195 <div id="profile-edit-hometown-end"></div>
199 <div><b>{{$lbl_preferences_section}}</b></div>
201 <div id="profile-edit-sexual-wrapper" >
202 <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
205 <div id="profile-edit-sexual-end"></div>
207 <div id="profile-edit-politic-wrapper" >
208 <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$politic.1}} </label>
209 <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic.2}}" />
211 <div id="profile-edit-politic-end"></div>
213 <div id="profile-edit-religion-wrapper" >
214 <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$religion.1}} </label>
215 <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion.2}}" />
217 <div id="profile-edit-religion-end"></div>
219 <div id="likes-jot-wrapper">
220 <div id="likes-jot-desc">{{$likes.1}}</div>
221 <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes.2}}</textarea>
223 <div id="likes-jot-end"></div>
225 <div id="dislikes-jot-wrapper">
226 <div id="dislikes-jot-desc">{{$dislikes.1}}</div>
227 <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes.2}}</textarea>
229 <div id="dislikes-jot-end"></div>
231 <div class="profile-edit-submit-wrapper" >
232 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
234 <div class="profile-edit-submit-end"></div>
240 <div class="toggle-section js-toggle-section">
241 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} »</a>
242 <div class="js-section toggle-section-content hidden">
244 <div id="profile-edit-marital-wrapper" >
245 <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
248 <label id="profile-edit-with-label" for="profile-edit-with" > {{$with.1}} </label>
249 <input type="text" size="32" name="with" id="profile-edit-with" title="{{$with.3}}" value="{{$with.2}}" />
250 <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$howlong.1}} </label>
251 <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$howlong.1}}" value="{{$howlong.2}}" />
252 <div id="profile-edit-marital-end"></div>
254 <div id="romance-jot-wrapper" >
255 <div id="romance-jot-desc">{{$romance.1}}</div>
256 <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance.2}}</textarea>
258 <div id="romance-jot-end"></div>
260 <div id="work-jot-wrapper">
261 <div id="work-jot-desc">{{$work.1}}</div>
262 <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work.2}}</textarea>
264 <div id="work-jot-end"></div>
266 <div id="education-jot-wrapper" >
267 <div id="education-jot-desc">{{$education.1}}</div>
268 <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education.2}}</textarea>
270 <div id="education-jot-end"></div>
272 <div class="profile-edit-submit-wrapper" >
273 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
275 <div class="profile-edit-submit-end"></div>
281 <div class="toggle-section js-toggle-section">
282 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} »</a>
283 <div class="js-section toggle-section-content hidden">
285 <div id="interest-jot-wrapper">
286 <div id="interest-jot-desc">{{$interest.1}}</div>
287 <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest.2}}</textarea>
289 <div id="interest-jot-end"></div>
291 <div id="music-jot-wrapper">
292 <div id="music-jot-desc">{{$music.1}}</div>
293 <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music.2}}</textarea>
295 <div id="music-jot-end"></div>
297 <div id="book-jot-wrapper">
298 <div id="book-jot-desc">{{$book.1}}</div>
299 <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book.2}}</textarea>
301 <div id="book-jot-end"></div>
303 <div id="tv-jot-wrapper">
304 <div id="tv-jot-desc">{{$tv.1}}</div>
305 <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv.2}}</textarea>
307 <div id="tv-jot-end"></div>
309 <div id="film-jot-wrapper">
310 <div id="film-jot-desc">{{$film.1}}</div>
311 <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film.2}}</textarea>
313 <div id="film-jot-end"></div>
315 <div class="profile-edit-submit-wrapper" >
316 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
318 <div class="profile-edit-submit-end"></div>
324 {{if $personal_account}}
325 {{include file="field_yesno.tpl" field=$details}}
327 <div id="profile-edit-profile-name-wrapper" >
328 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$profile_name.1}} </label>
329 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name.2|escape:'html'}}" /><div class="required">*</div>
331 <div id="profile-edit-profile-name-end"></div>
333 <div id="profile-edit-name-wrapper" >
334 <label id="profile-edit-name-label" for="profile-edit-name" >{{$name.1}} </label>
335 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name.2|escape:'html'}}" />
337 <div id="profile-edit-name-end"></div>
339 {{if $personal_account}}
340 <div id="profile-edit-gender-wrapper" >
341 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
344 <div id="profile-edit-gender-end"></div>
346 <div id="profile-edit-dob-wrapper" >
349 <div id="profile-edit-dob-end"></div>
352 <div id="profile-edit-xmpp-wrapper" >
353 <label id="profile-edit-xmpp-label" for="profile-edit-xmpp" >{{$xmpp.1}} </label>
354 <input type="text" size="32" name="xmpp" id="profile-edit-xmpp" value="{{$xmpp.2}}" />
356 <div id="profile-edit-xmpp-desc">{{$xmpp.3}}</div>
357 <div id="profile-edit-xmpp-end"></div>
359 <div id="profile-edit-homepage-wrapper" >
360 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$homepage.1}} </label>
361 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage.2}}" />
363 <div id="profile-edit-homepage-end"></div>
367 <div id="profile-edit-address-wrapper" >
368 <label id="profile-edit-address-label" for="profile-edit-address" >{{$address.1}} </label>
369 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address.2|escape:'html'}}" />
371 <div id="profile-edit-address-end"></div>
373 <div id="profile-edit-locality-wrapper" >
374 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$locality.1}} </label>
375 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality.2|escape:'html'}}" />
377 <div id="profile-edit-locality-end"></div>
380 <div id="profile-edit-postal-code-wrapper" >
381 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$postal_code.1}} </label>
382 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code.2|escape:'html'}}" />
384 <div id="profile-edit-postal-code-end"></div>
386 <div id="profile-edit-country-name-wrapper" >
387 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
388 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region.2}}');">
389 <option selected="selected" >{{$country_name.2}}</option>
390 <option>temp</option>
393 <div id="profile-edit-country-name-end"></div>
394 <div id="profile-edit-region-wrapper" >
395 <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.1}} </label>
396 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
397 <option selected="selected" >{{$region.2}}</option>
398 <option>temp</option>
401 <div id="profile-edit-region-end"></div>
403 <div id="profile-edit-pubkeywords-wrapper" >
404 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$pub_keywords.1}} </label>
405 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords.2|escape:'html'}}" />
406 </div><div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
407 <div id="profile-edit-pubkeywords-end"></div>
409 <div id="profile-edit-prvkeywords-wrapper" >
410 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$prv_keywords.1}} </label>
411 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords.2|escape:'html'}}" />
412 </div><div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
413 <div id="profile-edit-prvkeywords-end"></div>
415 <div id="about-jot-wrapper" >
416 <p id="about-jot-desc" >
420 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about.2}}</textarea>
423 <div id="about-jot-end"></div>
425 <div class="profile-edit-submit-wrapper" >
426 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
428 <div class="profile-edit-submit-end"></div>
430 <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc.2}}" />
431 <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact.2}}" />
432 <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown.2}}" />
433 <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic.2}}" />
434 <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion.2}}" />
435 <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes.2}}" />
436 <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes.2}}" />
437 <input type="hidden" name="marital" id="profile-edit-marital" value="{{$marital.2}}" />
438 <input type="hidden" name="with" id="profile-edit-with" value="{{$with.2}}" />
439 <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong.2}}" />
440 <input type="hidden" name="sexual" id="profile-edit-sexual" value="{{$sexual.2}}" />
441 <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance.2}}" />
442 <input type="hidden" id="work-jot-text" name="work" value="{{$work.2}}" />
443 <input type="hidden" id="education-jot-text" name="education" value="{{$education.2}}" />
444 <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest.2}}" />
445 <input type="hidden" id="music-jot-text" name="music" value="{{$music.2}}" />
446 <input type="hidden" id="book-jot-text" name="book" value="{{$book.2}}" />
447 <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv.2}}" />
448 <input type="hidden" id="film-jot-text" name="film" value="{{$film.2}}" />
454 <script type="text/javascript">Fill_Country('{{$country_name.2}}');Fill_States('{{$region.2}}');</script>