]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/templates/profile_edit.tpl
fa2cd185764e665edad79ebb7c8cc2da97d9ff01
[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.2}}" />
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" >{{$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>
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.2}}" />
76       {{/if}}
77       
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}}" />
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" >{{$pdesc.1}} </label>
92         <input type="text" size="32" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc.2}}" />
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" >{{$homepage.1}} </label>
98         <input type="text" size="32" name="homepage" id="profile-edit-homepage" value="{{$homepage.2}}" />
99       </div>
100       <div id="profile-edit-homepage-end"></div>
101       
102       <div id="profile-edit-dob-wrapper" >
103         {{$dob}}
104       </div>
105       <div id="profile-edit-dob-end"></div>
106       
107       {{$hide_friends}}
108       
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>
112       </div>
113       <div id="about-jot-end"></div>
114       
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>
118       </div>
119       <div id="contact-jot-end"></div>
120       
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}}" />
124       </div>
125       <div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
126       <div id="profile-edit-pubkeywords-end"></div>
127       
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}}" />
131       </div>
132       <div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
133       <div id="profile-edit-prvkeywords-end"></div>
134       
135       <div class="profile-edit-submit-wrapper" >
136         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
137       </div>
138       <div class="profile-edit-submit-end"></div>
139     
140     </div>
141   </div>
142   
143   <!-- About you -->
144   <div class="toggle-section js-toggle-section">
145     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} &raquo;</a>
146     <div class="js-section toggle-section-content hidden">
147       
148       <div><b>{{$lbl_location_section}}</b></div>
149       
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}}" />
153       </div>
154       <div id="profile-edit-address-end"></div>
155       
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}}" />
159       </div>
160       <div id="profile-edit-locality-end"></div>
161       
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}}" />
165       </div>
166       <div id="profile-edit-postal-code-end"></div>
167       
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>
172         </select>
173       </div>
174       <div id="profile-edit-country-name-end"></div>
175       
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>
180         </select>
181       </div>
182       <div id="profile-edit-region-end"></div>
183       
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}}" />
187       </div>
188       <div id="profile-edit-hometown-end"></div>
189       
190       <br>
191       
192       <div><b>{{$lbl_preferences_section}}</b></div>
193       
194       <div id="profile-edit-sexual-wrapper" >
195         <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
196         {{$sexual}}
197       </div>
198       <div id="profile-edit-sexual-end"></div>
199       
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}}" />
203       </div>
204       <div id="profile-edit-politic-end"></div>
205       
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}}" />
209       </div>
210       <div id="profile-edit-religion-end"></div>
211       
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>
215       </div>
216       <div id="likes-jot-end"></div>
217       
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>
221       </div>
222       <div id="dislikes-jot-end"></div>
223       
224       <div class="profile-edit-submit-wrapper" >
225         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
226       </div>
227       <div class="profile-edit-submit-end"></div>
228       
229     </div>
230   </div>
231   
232   <!-- Status -->
233   <div class="toggle-section js-toggle-section">
234     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} &raquo;</a>
235     <div class="js-section toggle-section-content hidden">
236       
237       <div id="profile-edit-marital-wrapper" >
238         <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
239         {{$marital}}
240       </div>
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>
246       
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>
250       </div>
251       <div id="romance-jot-end"></div>
252       
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>
256       </div>
257       <div id="work-jot-end"></div>
258       
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>
262       </div>
263       <div id="education-jot-end"></div>
264       
265       <div class="profile-edit-submit-wrapper" >
266         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
267       </div>
268       <div class="profile-edit-submit-end"></div>
269       
270     </div>
271   </div>
272   
273   <!-- Interests -->
274   <div class="toggle-section js-toggle-section">
275     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} &raquo;</a>
276     <div class="js-section toggle-section-content hidden">
277       
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>
281       </div>
282       <div id="interest-jot-end"></div>
283       
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>
287       </div>
288       <div id="music-jot-end"></div>
289
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>
293       </div>
294       <div id="book-jot-end"></div>
295       
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>
299       </div>
300       <div id="tv-jot-end"></div>
301       
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>
305       </div>
306       <div id="film-jot-end"></div>
307       
308       <div class="profile-edit-submit-wrapper" >
309         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
310       </div>
311       <div class="profile-edit-submit-end"></div>
312       
313     </div>
314   </div>
315 {{else}}
316
317 {{if $personal_account}}
318 {{include file="field_yesno.tpl" field=$details}}
319 {{/if}}
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>
323 </div>
324 <div id="profile-edit-profile-name-end"></div>
325
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'}}" />
329 </div>
330 <div id="profile-edit-name-end"></div>
331
332 {{if $personal_account}}
333 <div id="profile-edit-gender-wrapper" >
334 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
335 {{$gender}}
336 </div>
337 <div id="profile-edit-gender-end"></div>
338
339 <div id="profile-edit-dob-wrapper" >
340 {{$dob}}
341 </div>
342 <div id="profile-edit-dob-end"></div>
343 {{/if}}
344
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}}" />
348       </div>
349       <div id="profile-edit-homepage-end"></div>
350
351 {{$hide_friends}}
352
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'}}" />
356 </div>
357 <div id="profile-edit-address-end"></div>
358
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'}}" />
362 </div>
363 <div id="profile-edit-locality-end"></div>
364
365
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'}}" />
369 </div>
370 <div id="profile-edit-postal-code-end"></div>
371
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>
377 </select>
378 </div>
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>
385 </select>
386 </div>
387 <div id="profile-edit-region-end"></div>
388
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>
394
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>
400
401 <div id="about-jot-wrapper" >
402 <p id="about-jot-desc" >
403 {{$about.1}}
404 </p>
405
406 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about.2}}</textarea>
407
408 </div>
409 <div id="about-jot-end"></div>
410
411 <div class="profile-edit-submit-wrapper" >
412 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
413 </div>
414 <div class="profile-edit-submit-end"></div>
415
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}}" />
433
434 {{/if}}
435   
436 </form>
437 </div>
438 <script type="text/javascript">Fill_Country('{{$country_name.2}}');Fill_States('{{$region.2}}');</script>