]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/templates/profile_edit.tpl
wrapping up 2019.12
[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 nofilter}}
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 nofilter}}
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-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}}" />
99       </div>
100       <div id="profile-edit-xmpp-desc">{{$xmpp.3}}</div>
101       <div id="profile-edit-xmpp-end"></div>
102
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}}" />
106       </div>
107       <div id="profile-edit-homepage-end"></div>
108       
109       <div id="profile-edit-dob-wrapper" >
110         {{$dob nofilter}}
111       </div>
112       <div id="profile-edit-dob-end"></div>
113       
114       {{$hide_friends nofilter}}
115       
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>
119       </div>
120       <div id="about-jot-end"></div>
121       
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>
125       </div>
126       <div id="contact-jot-end"></div>
127       
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}}" />
131       </div>
132       <div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
133       <div id="profile-edit-pubkeywords-end"></div>
134       
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}}" />
138       </div>
139       <div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
140       <div id="profile-edit-prvkeywords-end"></div>
141       
142       <div class="profile-edit-submit-wrapper" >
143         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
144       </div>
145       <div class="profile-edit-submit-end"></div>
146     
147     </div>
148   </div>
149   
150   <!-- About you -->
151   <div class="toggle-section js-toggle-section">
152     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} &raquo;</a>
153     <div class="js-section toggle-section-content hidden">
154       
155       <div><b>{{$lbl_location_section}}</b></div>
156       
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}}" />
160       </div>
161       <div id="profile-edit-address-end"></div>
162       
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}}" />
166       </div>
167       <div id="profile-edit-locality-end"></div>
168       
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}}" />
172       </div>
173       <div id="profile-edit-postal-code-end"></div>
174       
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>
179         </select>
180       </div>
181       <div id="profile-edit-country-name-end"></div>
182       
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>
187         </select>
188       </div>
189       <div id="profile-edit-region-end"></div>
190       
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}}" />
194       </div>
195       <div id="profile-edit-hometown-end"></div>
196       
197       <br>
198       
199       <div><b>{{$lbl_preferences_section}}</b></div>
200       
201       <div id="profile-edit-sexual-wrapper" >
202         <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
203         {{$sexual nofilter}}
204       </div>
205       <div id="profile-edit-sexual-end"></div>
206       
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}}" />
210       </div>
211       <div id="profile-edit-politic-end"></div>
212       
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}}" />
216       </div>
217       <div id="profile-edit-religion-end"></div>
218       
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>
222       </div>
223       <div id="likes-jot-end"></div>
224       
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>
228       </div>
229       <div id="dislikes-jot-end"></div>
230       
231       <div class="profile-edit-submit-wrapper" >
232         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
233       </div>
234       <div class="profile-edit-submit-end"></div>
235       
236     </div>
237   </div>
238   
239   <!-- Status -->
240   <div class="toggle-section js-toggle-section">
241     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} &raquo;</a>
242     <div class="js-section toggle-section-content hidden">
243       
244       <div id="profile-edit-marital-wrapper" >
245         <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital nofilter}} </label>
246         {{$marital nofilter}}
247       </div>
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>
253       
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>
257       </div>
258       <div id="romance-jot-end"></div>
259       
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>
263       </div>
264       <div id="work-jot-end"></div>
265       
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>
269       </div>
270       <div id="education-jot-end"></div>
271       
272       <div class="profile-edit-submit-wrapper" >
273         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
274       </div>
275       <div class="profile-edit-submit-end"></div>
276       
277     </div>
278   </div>
279   
280   <!-- Interests -->
281   <div class="toggle-section js-toggle-section">
282     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} &raquo;</a>
283     <div class="js-section toggle-section-content hidden">
284       
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>
288       </div>
289       <div id="interest-jot-end"></div>
290       
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>
294       </div>
295       <div id="music-jot-end"></div>
296
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>
300       </div>
301       <div id="book-jot-end"></div>
302       
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>
306       </div>
307       <div id="tv-jot-end"></div>
308       
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>
312       </div>
313       <div id="film-jot-end"></div>
314       
315       <div class="profile-edit-submit-wrapper" >
316         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
317       </div>
318       <div class="profile-edit-submit-end"></div>
319       
320     </div>
321   </div>
322 {{else}}
323
324 {{if $personal_account}}
325 {{include file="field_yesno.tpl" field=$details}}
326 {{/if}}
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}}" /><div class="required">*</div>
330 </div>
331 <div id="profile-edit-profile-name-end"></div>
332
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}}" />
336 </div>
337 <div id="profile-edit-name-end"></div>
338
339 {{if $personal_account}}
340 <div id="profile-edit-gender-wrapper" >
341 <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
342 {{$gender nofilter}}
343 </div>
344 <div id="profile-edit-gender-end"></div>
345
346 <div id="profile-edit-dob-wrapper" >
347 {{$dob nofilter}}
348 </div>
349 <div id="profile-edit-dob-end"></div>
350 {{/if}}
351
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}}" />
355       </div>
356       <div id="profile-edit-xmpp-desc">{{$xmpp.3}}</div>
357       <div id="profile-edit-xmpp-end"></div>
358
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}}" />
362       </div>
363       <div id="profile-edit-homepage-end"></div>
364
365 {{$hide_friends nofilter}}
366
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}}" />
370 </div>
371 <div id="profile-edit-address-end"></div>
372
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}}" />
376 </div>
377 <div id="profile-edit-locality-end"></div>
378
379
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}}" />
383 </div>
384 <div id="profile-edit-postal-code-end"></div>
385
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>
391 </select>
392 </div>
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>
399 </select>
400 </div>
401 <div id="profile-edit-region-end"></div>
402
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}}" />
406 </div><div id="profile-edit-pubkeywords-desc">{{$pub_keywords.3}}</div>
407 <div id="profile-edit-pubkeywords-end"></div>
408
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}}" />
412 </div><div id="profile-edit-prvkeywords-desc">{{$prv_keywords.3}}</div>
413 <div id="profile-edit-prvkeywords-end"></div>
414
415 <div id="about-jot-wrapper" >
416 <p id="about-jot-desc" >
417 {{$about.1}}
418 </p>
419
420 <textarea rows="10" cols="72" id="profile-about-text" name="about" >{{$about.2}}</textarea>
421
422 </div>
423 <div id="about-jot-end"></div>
424
425 <div class="profile-edit-submit-wrapper" >
426 <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
427 </div>
428 <div class="profile-edit-submit-end"></div>
429
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}}" />
449
450 {{/if}}
451   
452 </form>
453 </div>
454 <script type="text/javascript">Fill_Country('{{$country_name.2}}');Fill_States('{{$region.2}}');</script>