]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/templates/profile_edit.tpl
Merge pull request #1356 from silke/develop
[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   <div class="toggle-section js-toggle-section">
36     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_picture_section}} &raquo;</a>
37     <div class="js-section toggle-section-content hidden">
38       
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" />
42       </div>
43
44       <div class="profile-edit-submit-wrapper" >
45         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
46       </div>
47       <div class="profile-edit-submit-end"></div>
48     
49     </div>
50   </div>
51   
52 </form>
53
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}}'>
56   
57   <!-- Basic information -->
58   <div class="toggle-section js-toggle-section">
59     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_basic_section}} &raquo;</a>
60     <div class="js-section toggle-section-content hidden">
61       
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>
66         </div>
67         <div id="profile-edit-profile-name-end"></div>
68       {{else}}
69         <input type="hidden" name="profile_name" id="profile-edit-profile-name" value="{{$profile_name}}" />
70       {{/if}}
71       
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}}" />
75       </div>
76       <div id="profile-edit-name-end"></div>
77       
78       <div id="profile-edit-gender-wrapper" >
79         <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
80         {{$gender}}
81       </div>
82       <div id="profile-edit-gender-end"></div>
83       
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}}" />
87       </div>
88       <div id="profile-edit-pdesc-end"></div>
89       
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}}" />
93       </div>
94       <div id="profile-edit-homepage-end"></div>
95       
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" >
99           {{$dob}} {{$age}}
100         </div>
101       </div>
102       <div id="profile-edit-dob-end"></div>
103       
104       {{$hide_friends}}
105       
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>
109       </div>
110       <div id="about-jot-end"></div>
111       
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>
115       </div>
116       <div id="contact-jot-end"></div>
117       
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}}" />
121       </div>
122       <div id="profile-edit-pubkeywords-desc">{{$lbl_pubdsc}}</div>
123       <div id="profile-edit-pubkeywords-end"></div>
124       
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}}" />
128       </div>
129       <div id="profile-edit-prvkeywords-desc">{{$lbl_prvdsc}}</div>
130       <div id="profile-edit-prvkeywords-end"></div>
131       
132       <div class="profile-edit-submit-wrapper" >
133         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
134       </div>
135       <div class="profile-edit-submit-end"></div>
136     
137     </div>
138   </div>
139   
140   <!-- About you -->
141   <div class="toggle-section js-toggle-section">
142     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_about_section}} &raquo;</a>
143     <div class="js-section toggle-section-content hidden">
144       
145       <div><b>{{$lbl_location_section}}</b></div>
146       
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}}" />
150       </div>
151       <div id="profile-edit-address-end"></div>
152       
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}}" />
156       </div>
157       <div id="profile-edit-locality-end"></div>
158       
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}}" />
162       </div>
163       <div id="profile-edit-postal-code-end"></div>
164       
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>
169         </select>
170       </div>
171       <div id="profile-edit-country-name-end"></div>
172       
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>
177         </select>
178       </div>
179       <div id="profile-edit-region-end"></div>
180       
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}}" />
184       </div>
185       <div id="profile-edit-hometown-end"></div>
186       
187       <br>
188       
189       <div><b>{{$lbl_preferences_section}}</b></div>
190       
191       <div id="profile-edit-sexual-wrapper" >
192         <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}} </label>
193         {{$sexual}}
194       </div>
195       <div id="profile-edit-sexual-end"></div>
196       
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}}" />
200       </div>
201       <div id="profile-edit-politic-end"></div>
202       
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}}" />
206       </div>
207       <div id="profile-edit-religion-end"></div>
208       
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>
212       </div>
213       <div id="likes-jot-end"></div>
214       
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>
218       </div>
219       <div id="dislikes-jot-end"></div>
220       
221       <div class="profile-edit-submit-wrapper" >
222         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
223       </div>
224       <div class="profile-edit-submit-end"></div>
225       
226     </div>
227   </div>
228   
229   <!-- Status -->
230   <div class="toggle-section js-toggle-section">
231     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_status_section}} &raquo;</a>
232     <div class="js-section toggle-section-content hidden">
233       
234       <div id="profile-edit-marital-wrapper" >
235         <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}} </label>
236         {{$marital}}
237       </div>
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>
243       
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>
247       </div>
248       <div id="romance-jot-end"></div>
249       
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>
253       </div>
254       <div id="work-jot-end"></div>
255       
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>
259       </div>
260       <div id="education-jot-end"></div>
261       
262       <div class="profile-edit-submit-wrapper" >
263         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
264       </div>
265       <div class="profile-edit-submit-end"></div>
266       
267     </div>
268   </div>
269   
270   <!-- Interests -->
271   <div class="toggle-section js-toggle-section">
272     <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_interests_section}} &raquo;</a>
273     <div class="js-section toggle-section-content hidden">
274       
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>
278       </div>
279       <div id="interest-jot-end"></div>
280       
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>
284       </div>
285       <div id="music-jot-end"></div>
286
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>
290       </div>
291       <div id="book-jot-end"></div>
292       
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>
296       </div>
297       <div id="tv-jot-end"></div>
298       
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>
302       </div>
303       <div id="film-jot-end"></div>
304       
305       <div class="profile-edit-submit-wrapper" >
306         <input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />
307       </div>
308       <div class="profile-edit-submit-end"></div>
309       
310     </div>
311   </div>
312   
313 </form>
314 </div>
315 <script type="text/javascript">Fill_Country('{{$country_name}}');Fill_States('{{$region}}');</script>