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}}" />
34 <!-- Profile picture -->
35 <div class="toggle-section js-toggle-section">
36 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_picture_section}} »</a>
37 <div class="js-section toggle-section-content hidden">
39 <div id="profile-photo-upload-wrapper">
40 <label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
41 <input name="userfile" type="file" id="profile-photo-upload" size="48" />
44 <div class="profile-edit-submit-wrapper" >
45 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
47 <div class="profile-edit-submit-end"></div>
54 <form id="profile-edit-form" name="form1" action="profiles/{{$profile_id}}" method="post" >
55 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
57 <!-- Basic information -->
58 <div class="toggle-section js-toggle-section">
59 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_basic_section}} »</a>
60 <div class="js-section toggle-section-content hidden">
62 {{if $multi_profiles}}
63 <div id="profile-edit-profile-name-wrapper" >
64 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
65 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" /><div class="required">*</div>
67 <div id="profile-edit-profile-name-end"></div>
69 <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" />
72 <div id="profile-edit-name-wrapper" >
73 <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
74 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name}}" />
76 <div id="profile-edit-name-end"></div>
78 <div id="profile-edit-gender-wrapper" >
79 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
82 <div id="profile-edit-gender-end"></div>
84 <div id="profile-edit-pdesc-wrapper" >
85 <label id="profile-edit-pdesc-label" for="profile-edit-pdesc" >{{$lbl_title}} </label>
86 <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
88 <div id="profile-edit-pdesc-end"></div>
90 <div id="profile-edit-homepage-wrapper" >
91 <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
92 <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
94 <div id="profile-edit-homepage-end"></div>
96 <div id="profile-edit-dob-wrapper" >
97 <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}}</label>
98 <div id="profile-edit-dob" >
102 <div id="profile-edit-dob-end"></div>
106 <div id="about-jot-wrapper">
107 <div id="about-jot-desc">{{$lbl_about}}</div>
108 <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about}}</textarea>
110 <div id="about-jot-end"></div>
112 <div id="contact-jot-wrapper" >
113 <div id="contact-jot-desc">{{$lbl_social}}</div>
114 <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact}}</textarea>
116 <div id="contact-jot-end"></div>
118 <div id="profile-edit-pubkeywords-wrapper" >
119 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
120 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords}}" />
122 <div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
123 <div id="profile-edit-pubkeywords-end"></div>
125 <div id="profile-edit-prvkeywords-wrapper" >
126 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
127 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords}}" />
129 <div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
130 <div id="profile-edit-prvkeywords-end"></div>
132 <div class="profile-edit-submit-wrapper" >
133 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
135 <div class="profile-edit-submit-end"></div>
141 <div class="toggle-section js-toggle-section">
142 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} »</a>
143 <div class="js-section toggle-section-content hidden">
145 <div><b>{{$lbl_location_section}}</b></div>
147 <div id="profile-edit-address-wrapper" >
148 <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
149 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address}}" />
151 <div id="profile-edit-address-end"></div>
153 <div id="profile-edit-locality-wrapper" >
154 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
155 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality}}" />
157 <div id="profile-edit-locality-end"></div>
159 <div id="profile-edit-postal-code-wrapper" >
160 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
161 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code}}" />
163 <div id="profile-edit-postal-code-end"></div>
165 <div id="profile-edit-country-name-wrapper" >
166 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
167 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
168 <option selected="selected" >{{$country_name}}</option>
171 <div id="profile-edit-country-name-end"></div>
173 <div id="profile-edit-region-wrapper" >
174 <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
175 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
176 <option selected="selected" >{{$region}}</option>
179 <div id="profile-edit-region-end"></div>
181 <div id="profile-edit-hometown-wrapper" >
182 <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$lbl_hometown}} </label>
183 <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
185 <div id="profile-edit-hometown-end"></div>
189 <div><b>{{$lbl_preferences_section}}</b></div>
191 <div id="profile-edit-sexual-wrapper" >
192 <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
195 <div id="profile-edit-sexual-end"></div>
197 <div id="profile-edit-politic-wrapper" >
198 <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$lbl_politic}} </label>
199 <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic}}" />
201 <div id="profile-edit-politic-end"></div>
203 <div id="profile-edit-religion-wrapper" >
204 <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$lbl_religion}} </label>
205 <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion}}" />
207 <div id="profile-edit-religion-end"></div>
209 <div id="likes-jot-wrapper">
210 <div id="likes-jot-desc">{{$lbl_likes}}</div>
211 <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes}}</textarea>
213 <div id="likes-jot-end"></div>
215 <div id="dislikes-jot-wrapper">
216 <div id="dislikes-jot-desc">{{$lbl_dislikes}}</div>
217 <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes}}</textarea>
219 <div id="dislikes-jot-end"></div>
221 <div class="profile-edit-submit-wrapper" >
222 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
224 <div class="profile-edit-submit-end"></div>
230 <div class="toggle-section js-toggle-section">
231 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} »</a>
232 <div class="js-section toggle-section-content hidden">
234 <div id="profile-edit-marital-wrapper" >
235 <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
238 <label id="profile-edit-with-label" for="profile-edit-with" > {{$lbl_with}} </label>
239 <input type="text" size="32" name="with" id="profile-edit-with" title="{{$lbl_ex1}}" value="{{$with}}" />
240 <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$lbl_howlong}} </label>
241 <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$lbl_howlong}}" value="{{$howlong}}" />
242 <div id="profile-edit-marital-end"></div>
244 <div id="romance-jot-wrapper" >
245 <div id="romance-jot-desc">{{$lbl_love}}</div>
246 <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance}}</textarea>
248 <div id="romance-jot-end"></div>
250 <div id="work-jot-wrapper">
251 <div id="work-jot-desc">{{$lbl_work}}</div>
252 <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work}}</textarea>
254 <div id="work-jot-end"></div>
256 <div id="education-jot-wrapper" >
257 <div id="education-jot-desc">{{$lbl_school}}</div>
258 <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education}}</textarea>
260 <div id="education-jot-end"></div>
262 <div class="profile-edit-submit-wrapper" >
263 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
265 <div class="profile-edit-submit-end"></div>
271 <div class="toggle-section js-toggle-section">
272 <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} »</a>
273 <div class="js-section toggle-section-content hidden">
275 <div id="interest-jot-wrapper">
276 <div id="interest-jot-desc">{{$lbl_hobbies}}</div>
277 <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest}}</textarea>
279 <div id="interest-jot-end"></div>
281 <div id="music-jot-wrapper">
282 <div id="music-jot-desc">{{$lbl_music}}</div>
283 <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music}}</textarea>
285 <div id="music-jot-end"></div>
287 <div id="book-jot-wrapper">
288 <div id="book-jot-desc">{{$lbl_book}}</div>
289 <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book}}</textarea>
291 <div id="book-jot-end"></div>
293 <div id="tv-jot-wrapper">
294 <div id="tv-jot-desc">{{$lbl_tv}}</div>
295 <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv}}</textarea>
297 <div id="tv-jot-end"></div>
299 <div id="film-jot-wrapper">
300 <div id="film-jot-desc">{{$lbl_film}}</div>
301 <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film}}</textarea>
303 <div id="film-jot-end"></div>
305 <div class="profile-edit-submit-wrapper" >
306 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
308 <div class="profile-edit-submit-end"></div>
315 <script type="text/javascript">Fill_Country('{{$country_name}}');Fill_States('{{$region}}');</script>