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-homepage-wrapper" >
97 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$homepage.1}} </label>
98 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage.2}}" />
100 <div id="profile-edit-homepage-end"></div>
102 <div id="profile-edit-dob-wrapper" >
105 <div id="profile-edit-dob-end"></div>
109 <div id="about-jot-wrapper">
110 <div id="about-jot-desc">{{$about.1}}</div>
111 <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about.2}}</textarea>
113 <div id="about-jot-end"></div>
115 <div id="contact-jot-wrapper" >
116 <div id="contact-jot-desc">{{$contact.1}}</div>
117 <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact.2}}</textarea>
119 <div id="contact-jot-end"></div>
121 <div id="profile-edit-pubkeywords-wrapper" >
122 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$pub_keywords.1}} </label>
123 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords.2}}" />
125 <div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
126 <div id="profile-edit-pubkeywords-end"></div>
128 <div id="profile-edit-prvkeywords-wrapper" >
129 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$prv_keywords.1}} </label>
130 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords.2}}" />
132 <div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
133 <div id="profile-edit-prvkeywords-end"></div>
135 <div class="profile-edit-submit-wrapper" >
136 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
138 <div class="profile-edit-submit-end"></div>
144 <div class="toggle-section js-toggle-section">
145 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} »</a>
146 <div class="js-section toggle-section-content hidden">
148 <div><b>{{$lbl_location_section}}</b></div>
150 <div id="profile-edit-address-wrapper" >
151 <label id="profile-edit-address-label" for="profile-edit-address" >{{$address.1}} </label>
152 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address.2}}" />
154 <div id="profile-edit-address-end"></div>
156 <div id="profile-edit-locality-wrapper" >
157 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$locality.1}} </label>
158 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality.2}}" />
160 <div id="profile-edit-locality-end"></div>
162 <div id="profile-edit-postal-code-wrapper" >
163 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$postal_code.1}} </label>
164 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code.2}}" />
166 <div id="profile-edit-postal-code-end"></div>
168 <div id="profile-edit-country-name-wrapper" >
169 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
170 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region.2}}');">
171 <option selected="selected" >{{$country_name.2}}</option>
174 <div id="profile-edit-country-name-end"></div>
176 <div id="profile-edit-region-wrapper" >
177 <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.2}} </label>
178 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
179 <option selected="selected" >{{$region.2}}</option>
182 <div id="profile-edit-region-end"></div>
184 <div id="profile-edit-hometown-wrapper" >
185 <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$hometown.1}} </label>
186 <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown.2}}" />
188 <div id="profile-edit-hometown-end"></div>
192 <div><b>{{$lbl_preferences_section}}</b></div>
194 <div id="profile-edit-sexual-wrapper" >
195 <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
198 <div id="profile-edit-sexual-end"></div>
200 <div id="profile-edit-politic-wrapper" >
201 <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$politic.1}} </label>
202 <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic.2}}" />
204 <div id="profile-edit-politic-end"></div>
206 <div id="profile-edit-religion-wrapper" >
207 <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$religion.1}} </label>
208 <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion.2}}" />
210 <div id="profile-edit-religion-end"></div>
212 <div id="likes-jot-wrapper">
213 <div id="likes-jot-desc">{{$likes.1}}</div>
214 <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes.2}}</textarea>
216 <div id="likes-jot-end"></div>
218 <div id="dislikes-jot-wrapper">
219 <div id="dislikes-jot-desc">{{$dislikes.1}}</div>
220 <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes.2}}</textarea>
222 <div id="dislikes-jot-end"></div>
224 <div class="profile-edit-submit-wrapper" >
225 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
227 <div class="profile-edit-submit-end"></div>
233 <div class="toggle-section js-toggle-section">
234 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} »</a>
235 <div class="js-section toggle-section-content hidden">
237 <div id="profile-edit-marital-wrapper" >
238 <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
241 <label id="profile-edit-with-label" for="profile-edit-with" > {{$with.1}} </label>
242 <input type="text" size="32" name="with" id="profile-edit-with" title="{{$with.3}}" value="{{$with.2}}" />
243 <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$howlong.1}} </label>
244 <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$howlong.1}}" value="{{$howlong.2}}" />
245 <div id="profile-edit-marital-end"></div>
247 <div id="romance-jot-wrapper" >
248 <div id="romance-jot-desc">{{$romance.1}}</div>
249 <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance.2}}</textarea>
251 <div id="romance-jot-end"></div>
253 <div id="work-jot-wrapper">
254 <div id="work-jot-desc">{{$work.1}}</div>
255 <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work.2}}</textarea>
257 <div id="work-jot-end"></div>
259 <div id="education-jot-wrapper" >
260 <div id="education-jot-desc">{{$education.1}}</div>
261 <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education.2}}</textarea>
263 <div id="education-jot-end"></div>
265 <div class="profile-edit-submit-wrapper" >
266 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
268 <div class="profile-edit-submit-end"></div>
274 <div class="toggle-section js-toggle-section">
275 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} »</a>
276 <div class="js-section toggle-section-content hidden">
278 <div id="interest-jot-wrapper">
279 <div id="interest-jot-desc">{{$interest.1}}</div>
280 <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest.2}}</textarea>
282 <div id="interest-jot-end"></div>
284 <div id="music-jot-wrapper">
285 <div id="music-jot-desc">{{$music.1}}</div>
286 <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music.2}}</textarea>
288 <div id="music-jot-end"></div>
290 <div id="book-jot-wrapper">
291 <div id="book-jot-desc">{{$book.1}}</div>
292 <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book.2}}</textarea>
294 <div id="book-jot-end"></div>
296 <div id="tv-jot-wrapper">
297 <div id="tv-jot-desc">{{$tv.1}}</div>
298 <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv.2}}</textarea>
300 <div id="tv-jot-end"></div>
302 <div id="film-jot-wrapper">
303 <div id="film-jot-desc">{{$film.1}}</div>
304 <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film.2}}</textarea>
306 <div id="film-jot-end"></div>
308 <div class="profile-edit-submit-wrapper" >
309 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
311 <div class="profile-edit-submit-end"></div>
317 {{if $personal_account}}
318 {{include file="field_yesno.tpl" field=$details}}
320 <div id="profile-edit-profile-name-wrapper" >
321 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$profile_name.1}} </label>
322 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name.2|escape:'html'}}" /><div class="required">*</div>
324 <div id="profile-edit-profile-name-end"></div>
326 <div id="profile-edit-name-wrapper" >
327 <label id="profile-edit-name-label" for="profile-edit-name" >{{$name.1}} </label>
328 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name.2|escape:'html'}}" />
330 <div id="profile-edit-name-end"></div>
332 {{if $personal_account}}
333 <div id="profile-edit-gender-wrapper" >
334 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
337 <div id="profile-edit-gender-end"></div>
339 <div id="profile-edit-dob-wrapper" >
342 <div id="profile-edit-dob-end"></div>
345 <div id="profile-edit-homepage-wrapper" >
346 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$homepage.1}} </label>
347 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage.2}}" />
349 <div id="profile-edit-homepage-end"></div>
353 <div id="profile-edit-address-wrapper" >
354 <label id="profile-edit-address-label" for="profile-edit-address" >{{$address.1}} </label>
355 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address.2|escape:'html'}}" />
357 <div id="profile-edit-address-end"></div>
359 <div id="profile-edit-locality-wrapper" >
360 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$locality.1}} </label>
361 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality.2|escape:'html'}}" />
363 <div id="profile-edit-locality-end"></div>
366 <div id="profile-edit-postal-code-wrapper" >
367 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$postal_code.1}} </label>
368 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code.2|escape:'html'}}" />
370 <div id="profile-edit-postal-code-end"></div>
372 <div id="profile-edit-country-name-wrapper" >
373 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
374 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region.2}}');">
375 <option selected="selected" >{{$country_name.2}}</option>
376 <option>temp</option>
379 <div id="profile-edit-country-name-end"></div>
380 <div id="profile-edit-region-wrapper" >
381 <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.1}} </label>
382 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
383 <option selected="selected" >{{$region.2}}</option>
384 <option>temp</option>
387 <div id="profile-edit-region-end"></div>
389 <div id="profile-edit-pubkeywords-wrapper" >
390 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$pub_keywords.1}} </label>
391 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords.2|escape:'html'}}" />
392 </div><div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
393 <div id="profile-edit-pubkeywords-end"></div>
395 <div id="profile-edit-prvkeywords-wrapper" >
396 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$prv_keywords.1}} </label>
397 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords.2|escape:'html'}}" />
398 </div><div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
399 <div id="profile-edit-prvkeywords-end"></div>
401 <div id="about-jot-wrapper" >
402 <p id="about-jot-desc" >
406 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about.2}}</textarea>
409 <div id="about-jot-end"></div>
411 <div class="profile-edit-submit-wrapper" >
412 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
414 <div class="profile-edit-submit-end"></div>
416 <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc.2}}" />
417 <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact.2}}" />
418 <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown.2}}" />
419 <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic.2}}" />
420 <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion.2}}" />
421 <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes.2}}" />
422 <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes.2}}" />
423 <input type="hidden" name="with" id="profile-edit-with" value="{{$with.2}}" />
424 <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong.2}}" />
425 <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance.2}}" />
426 <input type="hidden" id="work-jot-text" name="work" value="{{$work.2}}" />
427 <input type="hidden" id="education-jot-text" name="education" value="{{$education.2}}" />
428 <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest.2}}" />
429 <input type="hidden" id="music-jot-text" name="music" value="{{$music.2}}" />
430 <input type="hidden" id="book-jot-text" name="book" value="{{$book.2}}" />
431 <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv.2}}" />
432 <input type="hidden" id="film-jot-text" name="film" value="{{$film.2}}" />
438 <script type="text/javascript">Fill_Country('{{$country_name.2}}');Fill_States('{{$region.2}}');</script>