]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/templates/profile_edit.tpl
vier: fix little misspelling
[friendica.git] / view / theme / vier / templates / profile_edit.tpl
1 <script>
2         $(document).ready(function() {
3                 
4                 $('.toggle-section-content').hide();
5                 $('.js-section-toggler').click(function(){
6                         $('.toggle-section-content').hide();
7                         $(this).next('.toggle-section-content').toggle();
8                 });
9
10         });
11 </script>
12
13 <h1>{{$banner}}</h1>
14
15 <div id="profile-edit-links">
16 <ul>
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>
21   {{/if}}
22 </ul>
23 </div>
24 <div id="profile-edit-links-end"></div>
25
26 {{$default}}
27
28 <div id="profile-edit-wrapper" >
29
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}}" />
33   
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}} &raquo;</a>
38     <div class="js-section toggle-section-content hidden">
39 {{/if}}
40       
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" />
44       </div>
45
46       <div class="profile-edit-submit-wrapper" >
47         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
48       </div>
49       <div class="profile-edit-submit-end"></div>
50     
51 {{if $detailled_profile}}
52     </div>
53   </div>
54 {{/if}}
55 </form>
56
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}}'>
59
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}} &raquo;</a>
64     <div class="js-section toggle-section-content hidden">
65       
66       {{include file="field_yesno.tpl" field=$details}}
67
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" >{{$lbl_profname}} </label>
71           <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" /><div class="required">*</div>
72         </div>
73         <div id="profile-edit-profile-name-end"></div>
74       {{else}}
75         <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" />
76       {{/if}}
77       
78       <div id="profile-edit-name-wrapper" >
79         <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
80         <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name}}" />
81       </div>
82       <div id="profile-edit-name-end"></div>
83       
84       <div id="profile-edit-gender-wrapper" >
85         <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
86         {{$gender}}
87       </div>
88       <div id="profile-edit-gender-end"></div>
89       
90       <div id="profile-edit-pdesc-wrapper" >
91         <label id="profile-edit-pdesc-label" for="profile-edit-pdesc" >{{$lbl_title}} </label>
92         <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
93       </div>
94       <div id="profile-edit-pdesc-end"></div>
95       
96       <div id="profile-edit-homepage-wrapper" >
97         <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
98         <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
99       </div>
100       <div id="profile-edit-homepage-end"></div>
101       
102       <div id="profile-edit-dob-wrapper" >
103         <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}}</label>
104         <div id="profile-edit-dob" >
105           {{$dob}} {{$age}}
106         </div>
107       </div>
108       <div id="profile-edit-dob-end"></div>
109       
110       {{$hide_friends}}
111       
112       <div id="about-jot-wrapper">
113         <div id="about-jot-desc">{{$lbl_about}}</div>
114         <textarea rows="10" cols="72" id="profile-about-text" name="about" style="width:599px;">{{$about}}</textarea>
115       </div>
116       <div id="about-jot-end"></div>
117       
118       <div id="contact-jot-wrapper" >
119         <div id="contact-jot-desc">{{$lbl_social}}</div>
120         <textarea rows="10" cols="72" id="contact-jot-text" name="contact" style="width:599px;">{{$contact}}</textarea>
121       </div>
122       <div id="contact-jot-end"></div>
123       
124       <div id="profile-edit-pubkeywords-wrapper" >
125         <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
126         <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords}}" />
127       </div>
128       <div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
129       <div id="profile-edit-pubkeywords-end"></div>
130       
131       <div id="profile-edit-prvkeywords-wrapper" >
132         <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
133         <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords}}" />
134       </div>
135       <div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
136       <div id="profile-edit-prvkeywords-end"></div>
137       
138       <div class="profile-edit-submit-wrapper" >
139         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
140       </div>
141       <div class="profile-edit-submit-end"></div>
142     
143     </div>
144   </div>
145   
146   <!-- About you -->
147   <div class="toggle-section js-toggle-section">
148     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} &raquo;</a>
149     <div class="js-section toggle-section-content hidden">
150       
151       <div><b>{{$lbl_location_section}}</b></div>
152       
153       <div id="profile-edit-address-wrapper" >
154         <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
155         <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address}}" />
156       </div>
157       <div id="profile-edit-address-end"></div>
158       
159       <div id="profile-edit-locality-wrapper" >
160         <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
161         <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality}}" />
162       </div>
163       <div id="profile-edit-locality-end"></div>
164       
165       <div id="profile-edit-postal-code-wrapper" >
166         <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
167         <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code}}" />
168       </div>
169       <div id="profile-edit-postal-code-end"></div>
170       
171       <div id="profile-edit-country-name-wrapper" >
172         <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
173         <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
174           <option selected="selected" >{{$country_name}}</option>
175         </select>
176       </div>
177       <div id="profile-edit-country-name-end"></div>
178       
179       <div id="profile-edit-region-wrapper" >
180         <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
181         <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
182           <option selected="selected" >{{$region}}</option>
183         </select>
184       </div>
185       <div id="profile-edit-region-end"></div>
186       
187       <div id="profile-edit-hometown-wrapper" >
188         <label id="profile-edit-hometown-label" for="profile-edit-hometown" >{{$lbl_hometown}} </label>
189         <input type="text" size="32" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
190       </div>
191       <div id="profile-edit-hometown-end"></div>
192       
193       <br>
194       
195       <div><b>{{$lbl_preferences_section}}</b></div>
196       
197       <div id="profile-edit-sexual-wrapper" >
198         <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
199         {{$sexual}}
200       </div>
201       <div id="profile-edit-sexual-end"></div>
202       
203       <div id="profile-edit-politic-wrapper" >
204         <label id="profile-edit-politic-label" for="profile-edit-politic" >{{$lbl_politic}} </label>
205         <input type="text" size="32" name="politic" id="profile-edit-politic" value="{{$politic}}" />
206       </div>
207       <div id="profile-edit-politic-end"></div>
208       
209       <div id="profile-edit-religion-wrapper" >
210         <label id="profile-edit-religion-label" for="profile-edit-religion" >{{$lbl_religion}} </label>
211         <input type="text" size="32" name="religion" id="profile-edit-religion" value="{{$religion}}" />
212       </div>
213       <div id="profile-edit-religion-end"></div>
214       
215       <div id="likes-jot-wrapper">
216         <div id="likes-jot-desc">{{$lbl_likes}}</div>
217         <textarea rows="10" cols="72" id="likes-jot-text" name="likes" style="width:599px;">{{$likes}}</textarea>
218       </div>
219       <div id="likes-jot-end"></div>
220       
221       <div id="dislikes-jot-wrapper">
222         <div id="dislikes-jot-desc">{{$lbl_dislikes}}</div>
223         <textarea rows="10" cols="72" id="dislikes-jot-text" name="dislikes" style="width:599px;">{{$dislikes}}</textarea>
224       </div>
225       <div id="dislikes-jot-end"></div>
226       
227       <div class="profile-edit-submit-wrapper" >
228         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
229       </div>
230       <div class="profile-edit-submit-end"></div>
231       
232     </div>
233   </div>
234   
235   <!-- Status -->
236   <div class="toggle-section js-toggle-section">
237     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} &raquo;</a>
238     <div class="js-section toggle-section-content hidden">
239       
240       <div id="profile-edit-marital-wrapper" >
241         <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
242         {{$marital}}
243       </div>
244       <label id="profile-edit-with-label" for="profile-edit-with" > {{$lbl_with}} </label>
245       <input type="text" size="32" name="with" id="profile-edit-with" title="{{$lbl_ex1}}" value="{{$with}}" />
246       <label id="profile-edit-howlong-label" for="profile-edit-howlong" > {{$lbl_howlong}} </label>
247       <input type="text" size="32" name="howlong" id="profile-edit-howlong" title="{{$lbl_howlong}}" value="{{$howlong}}" />
248       <div id="profile-edit-marital-end"></div>
249       
250       <div id="romance-jot-wrapper" >
251         <div id="romance-jot-desc">{{$lbl_love}}</div>
252         <textarea rows="10" cols="72" id="romance-jot-text" name="romance" style="width:599px;">{{$romance}}</textarea>
253       </div>
254       <div id="romance-jot-end"></div>
255       
256       <div id="work-jot-wrapper">
257         <div id="work-jot-desc">{{$lbl_work}}</div>
258         <textarea rows="10" cols="72" id="work-jot-text" name="work" style="width:599px;">{{$work}}</textarea>
259       </div>
260       <div id="work-jot-end"></div>
261       
262       <div id="education-jot-wrapper" >
263         <div id="education-jot-desc">{{$lbl_school}}</div>
264         <textarea rows="10" cols="72" id="education-jot-text" name="education" style="width:599px;">{{$education}}</textarea>
265       </div>
266       <div id="education-jot-end"></div>
267       
268       <div class="profile-edit-submit-wrapper" >
269         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
270       </div>
271       <div class="profile-edit-submit-end"></div>
272       
273     </div>
274   </div>
275   
276   <!-- Interests -->
277   <div class="toggle-section js-toggle-section">
278     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} &raquo;</a>
279     <div class="js-section toggle-section-content hidden">
280       
281       <div id="interest-jot-wrapper">
282         <div id="interest-jot-desc">{{$lbl_hobbies}}</div>
283         <textarea rows="10" cols="72" id="interest-jot-text" name="interest" style="width:599px;">{{$interest}}</textarea>
284       </div>
285       <div id="interest-jot-end"></div>
286       
287       <div id="music-jot-wrapper">
288         <div id="music-jot-desc">{{$lbl_music}}</div>
289         <textarea rows="10" cols="72" id="music-jot-text" name="music" style="width:599px;">{{$music}}</textarea>
290       </div>
291       <div id="music-jot-end"></div>
292
293       <div id="book-jot-wrapper">
294         <div id="book-jot-desc">{{$lbl_book}}</div>
295         <textarea rows="10" cols="72" id="book-jot-text" name="book" style="width:599px;">{{$book}}</textarea>
296       </div>
297       <div id="book-jot-end"></div>
298       
299       <div id="tv-jot-wrapper">
300         <div id="tv-jot-desc">{{$lbl_tv}}</div>
301         <textarea rows="10" cols="72" id="tv-jot-text" name="tv" style="width:599px;">{{$tv}}</textarea>
302       </div>
303       <div id="tv-jot-end"></div>
304       
305       <div id="film-jot-wrapper">
306         <div id="film-jot-desc">{{$lbl_film}}</div>
307         <textarea rows="10" cols="72" id="film-jot-text" name="film" style="width:599px;">{{$film}}</textarea>
308       </div>
309       <div id="film-jot-end"></div>
310       
311       <div class="profile-edit-submit-wrapper" >
312         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
313       </div>
314       <div class="profile-edit-submit-end"></div>
315       
316     </div>
317   </div>
318 {{else}}
319
320 {{if $personal_account}}
321 {{include file="field_yesno.tpl" field=$details}}
322 {{/if}}
323 <div id="profile-edit-profile-name-wrapper" >
324 <label id="profile-edit-profile-name-label" for="profile-edit-profile-name" >{{$lbl_profname}} </label>
325 <input type="text" size="32" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name|escape:'html'}}" /><div class="required">*</div>
326 </div>
327 <div id="profile-edit-profile-name-end"></div>
328
329 <div id="profile-edit-name-wrapper" >
330 <label id="profile-edit-name-label" for="profile-edit-name" >{{$lbl_fullname}} </label>
331 <input type="text" size="32" name="name" id="profile-edit-name" value="{{$name|escape:'html'}}" />
332 </div>
333 <div id="profile-edit-name-end"></div>
334
335 {{if $personal_account}}
336 <div id="profile-edit-gender-wrapper" >
337 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
338 {{$gender}}
339 </div>
340 <div id="profile-edit-gender-end"></div>
341
342 <div id="profile-edit-dob-wrapper" >
343 <label id="profile-edit-dob-label" for="dob-select" >{{$lbl_bd}} </label>
344 <div id="profile-edit-dob" >
345 {{$dob}} {{$age}}
346 </div>
347 </div>
348 <div id="profile-edit-dob-end"></div>
349 {{/if}}
350
351       <div id="profile-edit-homepage-wrapper" >
352         <label id="profile-edit-homepage-label" for="profile-edit-homepage" >{{$lbl_homepage}} </label>
353         <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage}}" />
354       </div>
355       <div id="profile-edit-homepage-end"></div>
356
357 {{$hide_friends}}
358
359 <div id="profile-edit-address-wrapper" >
360 <label id="profile-edit-address-label" for="profile-edit-address" >{{$lbl_address}} </label>
361 <input type="text" size="32" name="address" id="profile-edit-address" value="{{$address|escape:'html'}}" />
362 </div>
363 <div id="profile-edit-address-end"></div>
364
365 <div id="profile-edit-locality-wrapper" >
366 <label id="profile-edit-locality-label" for="profile-edit-locality" >{{$lbl_city}} </label>
367 <input type="text" size="32" name="locality" id="profile-edit-locality" value="{{$locality|escape:'html'}}" />
368 </div>
369 <div id="profile-edit-locality-end"></div>
370
371
372 <div id="profile-edit-postal-code-wrapper" >
373 <label id="profile-edit-postal-code-label" for="profile-edit-postal-code" >{{$lbl_zip}} </label>
374 <input type="text" size="32" name="postal_code" id="profile-edit-postal-code" value="{{$postal_code|escape:'html'}}" />
375 </div>
376 <div id="profile-edit-postal-code-end"></div>
377
378 <div id="profile-edit-country-name-wrapper" >
379 <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$lbl_country}} </label>
380 <select name="country_name" id="profile-edit-country-name" onChange="Fill_States('{{$region}}');">
381 <option selected="selected" >{{$country_name}}</option>
382 <option>temp</option>
383 </select>
384 </div>
385 <div id="profile-edit-country-name-end"></div>
386 <div id="profile-edit-region-wrapper" >
387 <label id="profile-edit-region-label" for="profile-edit-region" >{{$lbl_region}} </label>
388 <select name="region" id="profile-edit-region" onChange="Update_Globals();" >
389 <option selected="selected" >{{$region}}</option>
390 <option>temp</option>
391 </select>
392 </div>
393 <div id="profile-edit-region-end"></div>
394
395 <div id="profile-edit-pubkeywords-wrapper" >
396 <label id="profile-edit-pubkeywords-label" for="profile-edit-pubkeywords" >{{$lbl_pubkey}} </label>
397 <input type="text" size="32" name="pub_keywords" id="profile-edit-pubkeywords" title="{{$lbl_ex2}}" value="{{$pub_keywords|escape:'html'}}" />
398 </div><div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
399 <div id="profile-edit-pubkeywords-end"></div>
400
401 <div id="profile-edit-prvkeywords-wrapper" >
402 <label id="profile-edit-prvkeywords-label" for="profile-edit-prvkeywords" >{{$lbl_prvkey}} </label>
403 <input type="text" size="32" name="prv_keywords" id="profile-edit-prvkeywords" title="{{$lbl_ex2}}" value="{{$prv_keywords|escape:'html'}}" />
404 </div><div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
405 <div id="profile-edit-prvkeywords-end"></div>
406
407 <div id="about-jot-wrapper" >
408 <p id="about-jot-desc" >
409 {{$lbl_about}}
410 </p>
411
412 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about}}</textarea>
413
414 </div>
415 <div id="about-jot-end"></div>
416
417 <div class="profile-edit-submit-wrapper" >
418 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
419 </div>
420 <div class="profile-edit-submit-end"></div>
421
422         <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc}}" />
423         <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact}}" />
424         <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown}}" />
425         <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic}}" />
426         <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion}}" />
427         <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes}}" />
428         <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes}}" />
429         <input type="hidden" name="with" id="profile-edit-with" value="{{$with}}" />
430         <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong}}" />
431         <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance}}" />
432         <input type="hidden" id="work-jot-text" name="work" value="{{$work}}" />
433         <input type="hidden" id="education-jot-text" name="education" value="{{$education}}" />
434         <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest}}" />
435         <input type="hidden" id="music-jot-text" name="music" value="{{$music}}" />
436         <input type="hidden" id="book-jot-text" name="book" value="{{$book}}" />
437         <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv}}" />
438         <input type="hidden" id="film-jot-text" name="film" value="{{$film}}" />
439
440 {{/if}}
441   
442 </form>
443 </div>
444 <script type="text/javascript">Fill_Country('{{$country_name}}');Fill_States('{{$region}}');</script>