]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/profile_edit.tpl
Merge branch 'master'
[friendica.git] / view / theme / frio / templates / profile_edit.tpl
1
2 <div class="generic-page-wrapper">
3         {{include file="section_title.tpl" title=$banner}}
4
5         {{* The actions dropdown which can performed to the current profile *}}
6         <div id="profile-edit-links">
7                 <ul class="nav nav-pills preferences">
8                         <li class="dropdown pull-right">
9                                 <a class="btn btn-link btn-sm dropdown-toggle" type="button" id="profile-edit-links-dropdown" data-toggle="dropdown" aria-expanded="true">
10                                                         <i class="fa fa-angle-down"  aria-hidden="true"></i>&nbsp;{{$profile_action}}
11                                 </a>
12                                 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="profile-edit-links-dropdown">
13                                         <li role="menuitem"><a href="profile_photo" id="profile-photo_upload-link" title="{{$profpic|escape:'html'}}"><i class="fa fa-user"  aria-hidden="true"></i>&nbsp;{{$profpic}}</a></li>
14                                         <li role="menuitem"><a id="profile-photo_upload-link" title="{{$profpic|escape:'html'}}" onclick="openClose('profile-photo-upload-section');"><i class="fa fa-user"  aria-hidden="true"></i>&nbsp;{{$profpic}}</a></li>
15                                         {{if ! $is_default}}
16                                         <li class="nav-item"><a href="profperm/{{$profile_id}}" id="profile-edit-visibility-link" title="{{$editvis}}"><i class="fa fa-pencil"  aria-hidden="true"></i>&nbsp;{{$editvis}}</a>
17                                         </li>
18                                         {{/if}}
19                                         <li role="separator" class="divider"></li>
20                                         <li role="menuitem"><a href="profile/{{$profile_id}}/view?tab=profile" id="profile-edit-view-link" title="{{$viewprof|escape:'html'}}">{{$viewprof}}</a></li>
21                                         {{if $profile_clone_link}}
22                                         <li role="separator"class="divider"></li>
23                                         <li role="menuitem"><a href="{{$profile_clone_link}}" id="profile-edit-clone-link" title="{{$cr_prof|escape:'html'}}">{{$cl_prof}}</a></li>
24                                         {{/if}}
25                                         {{if !$is_default}}
26                                         <li role="separator" class="divider"></li>
27                                         <li role="menuitem"><a href="{{$profile_drop_link}}" id="profile-edit-drop-link" title="{{$del_prof|escape:'html'}}"><i class="fa fa-trash" aria-hidden="true"></i>&nbsp;{{$del_prof}}</a></li>
28                                         {{/if}}
29                                 </ul>
30                         </li>
31
32                 </ul>
33         </div>
34
35         <div id="profile-edit-links-end"></div>
36
37         <form enctype="multipart/form-data" action="profile_photo" method="post">
38                 <input type='hidden' name='form_security_token' value='{{$form_security_token_photo}}'>
39                 <input type="hidden" name="profile" value="{{$profile_name.2}}" />
40
41                 <div id="profile-photo-upload-section" class="panel">
42                         <a id="profile-photo-upload-close" class="close pull-right" onclick="openClose('profile-photo-upload-section');"><i class="fa fa-times" aria-hidden="true"></i></a>
43                         <div id="profile-photo-upload-wrapper">
44                                 <label id="profile-photo-upload-label" for="profile-photo-upload">{{$lbl_profile_photo}}:</label>
45                                 <input name="userfile" type="file" id="profile-photo-upload" size="48" />
46                         </div>
47
48                         <div class="profile-edit-submit-wrapper pull-right" >
49                                 <button type="submit" name="submit" class="profile-edit-submit-butto btn btn-primary" value="{{$submit}}">{{$submit}}</button>
50                         </div>
51                         <div class="clear"></div>
52                 </div>
53         </form>
54
55         {{* Most of the Variables used below are arrays in the following style
56                 0 => Some kind of identifier (e.g. for the ID)
57                 1 => The label description
58                 2 => The input values
59                 3 => The additional help text (if available)
60         *}}
61
62         <form id="profile-edit-form" name="form1" action="profiles/{{$profile_id}}" method="post" >
63                 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
64
65                 {{* Some hints to characteristics of the current profile (if available) *}}
66                 {{if $is_default}}
67                 <div class="section-content-info-wrapper">{{$default}}</div>
68                 {{/if}}
69
70                 {{* friendica differs in $detailled_profile (all fields available and a short Version if this is variable false *}}
71                 {{if $detailled_profile}}
72                 <div class="panel-group panel-group-settings" id="profile-edit-wrapper" role="tablist" aria-multiselectable="true">
73                         {{* The personal settings *}}
74                         <div class="panel">
75                                 <div class="section-subtitle-wrapper" role="tab" id="personal">
76                                         <h4>
77                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#personal-collapse" aria-expanded="true" aria-controls="personal-collapse">
78                                                         {{$lbl_personal_section}}
79                                                 </a>
80                                         </h4>
81                                 </div>
82                                 {{* for the $detailled_profile we use bootstraps collapsable panel-groups to have expandable groups *}}
83                                 <div id="personal-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="personal">
84                                         <div class="section-content-tools-wrapper">
85                                                 {{include file="field_yesno.tpl" field=$details}}
86
87                                                 {{include file="field_input.tpl" field=$profile_name}}
88
89                                                 {{include file="field_input.tpl" field=$name}}
90
91                                                 {{include file="field_input.tpl" field=$pdesc}}
92
93
94                                                 <div id="profile-edit-gender-wrapper" class="form-group field select">
95                                                         <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
96                                                         {{$gender}}
97                                                 </div>
98                                                 <div class="clear"></div>
99
100                                                 {{$dob}}
101
102                                                 {{$hide_friends}}
103
104                                                 <div class="form-group pull-right" >
105                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
106                                                 </div>
107                                                 <div class="clear"></div>
108                                         </div>
109                                 </div>
110                         </div>
111
112                         {{* The location settings *}}
113                         <div class="panel">
114                                 <div class="section-subtitle-wrapper" role="tab" id="location">
115                                         <h4>
116                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#location-collapse" aria-expanded="true" aria-controls="location-collapse">
117                                                         {{$lbl_location_section}}
118                                                 </a>
119                                         </h4>
120                                 </div>
121                                 <div id="location-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="location">
122                                         <div class="section-content-tools-wrapper">
123                                                 {{include file="field_input.tpl" field=$address}}
124
125                                                 {{include file="field_input.tpl" field=$locality}}
126
127
128                                                 {{include file="field_input.tpl" field=$postal_code}}
129
130                                                 <div id="profile-edit-country-name-wrapper" class="form-group field select">
131                                                         <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
132                                                         <select name="country_name" id="profile-edit-country-name" class="form-control" onChange="Fill_States('{{$region.2}}');">
133                                                                 <option selected="selected" >{{$country_name.2}}</option>
134                                                                 <option>temp</option>
135                                                         </select>
136                                                 </div>
137                                                 <div class="clear"></div>
138
139                                                 <div id="profile-edit-region-wrapper" class="form-group field select">
140                                                         <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.1}} </label>
141                                                         <select name="region" id="profile-edit-region" class="form-control" onChange="Update_Globals();" >
142                                                                 <option selected="selected" >{{$region.2}}</option>
143                                                                 <option>temp</option>
144                                                         </select>
145                                                 </div>
146                                                 <div class="clear"></div>
147
148                                                 {{include file="field_input.tpl" field=$hometown}}
149
150                                                 <div class="form-group pull-right" >
151                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
152                                                 </div>
153                                                 <div class="clear"></div>
154                                         </div>
155                                 </div>
156                         </div>
157
158                         {{* The settings for relations *}}
159                         <div class="panel">
160                                 <div class="section-subtitle-wrapper" role="tab" id="relation">
161                                         <h4>
162                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#relation-collapse" aria-expanded="true" aria-controls="relation-collapse">
163                                                         {{$lbl_relation_section}}
164                                                 </a>
165                                         </h4>
166                                 </div>
167                                 <div id="relation-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="relation">
168                                         <div class="section-content-tools-wrapper">
169                                                 <div id="profile-edit-marital-wrapper" class="form-group field select" >
170                                                                 <label id="profile-edit-marital-label" for="profile-edit-marital" >{{$lbl_marital}}</label>
171                                                                 {{$marital}}
172                                                 </div>
173                                                 <div class="clear"></div>
174
175                                                 {{include file="field_input.tpl" field=$with}}
176
177                                                 {{include file="field_input.tpl" field=$howlong}}
178
179                                                 <div id="profile-edit-sexual-wrapper" class="form-group field select" >
180                                                         <label id="profile-edit-sexual-label" for="sexual-select" >{{$lbl_sexual}}</label>
181                                                         {{$sexual}}
182                                                 </div>
183                                                 <div class="clear"></div>
184
185                                                 <div class="form-group pull-right" >
186                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
187                                                 </div>
188                                                 <div class="clear"></div>
189                                         </div>
190                                 </div>
191                         </div>
192
193                         {{* The miscellanous other settings *}}
194                         <div class="panel">
195                                 <div class="section-subtitle-wrapper" role="tab" id="miscellaneous">
196                                         <h4>
197                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#profile-edit-wrapper" href="#miscellaneous-collapse" aria-expanded="true" aria-controls="miscellaneous-collapse">
198                                                         {{$lbl_miscellaneous_section}}
199                                                 </a>
200                                         </h4>
201                                 </div>
202                                 <div id="miscellaneous-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="miscellaneous">
203                                         <div class="section-content-tools-wrapper">
204                                                 {{include file="field_input.tpl" field=$homepage}}
205
206                                                 {{include file="field_input.tpl" field=$pub_keywords}}
207
208                                                 {{include file="field_input.tpl" field=$prv_keywords}}
209
210                                                 {{include file="field_input.tpl" field=$politic}}
211
212                                                 {{include file="field_input.tpl" field=$religion}}
213
214
215                                                 {{include file="field_textarea.tpl" field=$about}}
216
217                                                 {{include file="field_textarea.tpl" field=$contact}}
218
219                                                 {{include file="field_textarea.tpl" field=$interest}}
220
221                                                 {{include file="field_textarea.tpl" field=$likes}}
222
223                                                 {{include file="field_textarea.tpl" field=$dislikes}}
224
225                                                 {{include file="field_textarea.tpl" field=$music}}
226
227                                                 {{include file="field_textarea.tpl" field=$book}}
228
229                                                 {{include file="field_textarea.tpl" field=$tv}}
230
231                                                 {{include file="field_textarea.tpl" field=$film}}
232
233                                                 {{include file="field_textarea.tpl" field=$romance}}
234
235                                                 {{include file="field_textarea.tpl" field=$work}}
236
237                                                 {{include file="field_textarea.tpl" field=$education}}
238
239                                                 <div class="form-group pull-right" >
240                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
241                                                 </div>
242                                                 <div class="clear"></div>
243                                         </div>
244                                 </div>
245                         </div>
246                 </div>
247
248                 {{else}}
249                 {{* if $detailled_profile not available a short version of the setting page is displayed *}}
250                 {{if $personal_account}}
251                 {{include file="field_yesno.tpl" field=$details}}
252                 {{/if}}
253
254                 {{include file="field_input.tpl" field=$profile_name}}
255
256                 {{include file="field_input.tpl" field=$name}}
257
258                 {{if $personal_account}}
259                 <div id="profile-edit-gender-wrapper" class="form-group field select">
260                         <label id="profile-edit-gender-label" for="gender-select" >{{$lbl_gender}} </label>
261                         {{$gender}}
262                 </div>
263                 <div class="clear"></div>
264
265                 {{$dob}}
266
267                 {{/if}}
268
269                 {{include file="field_input.tpl" field=$homepage}}
270
271                 {{$hide_friends}}
272
273                 {{include file="field_input.tpl" field=$address}}
274
275                 {{include file="field_input.tpl" field=$locality}}
276
277
278                 {{include file="field_input.tpl" field=$postal_code}}
279
280                 <div id="profile-edit-country-name-wrapper" class="form-group field select">
281                         <label id="profile-edit-country-name-label" for="profile-edit-country-name" >{{$country_name.1}} </label>
282                         <select name="country_name" id="profile-edit-country-name" class="form-control" onChange="Fill_States('{{$region.2}}');">
283                                 <option selected="selected" >{{$country_name.2}}</option>
284                                 <option>temp</option>
285                         </select>
286                 </div>
287                 <div class="clear"></div>
288
289                 <div id="profile-edit-region-wrapper" class="form-group field select">
290                         <label id="profile-edit-region-label" for="profile-edit-region" >{{$region.1}} </label>
291                         <select name="region" id="profile-edit-region" class="form-control" onChange="Update_Globals();" >
292                                 <option selected="selected" >{{$region.2}}</option>
293                                 <option>temp</option>
294                         </select>
295                 </div>
296                 <div class="clear"></div>
297
298                 {{include file="field_input.tpl" field=$pub_keywords}}
299
300                 {{include file="field_input.tpl" field=$prv_keywords}}
301
302                 {{include file="field_textarea.tpl" field=$about}}
303
304                 <div class="form-group pull-right" >
305                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
306                 </div>
307                 <div class="clear"></div>
308
309                 <input type="hidden" name="pdesc" id="profile-edit-pdesc" value="{{$pdesc.2}}" />
310                 <input type="hidden" id="contact-jot-text" name="contact" value="{{$contact.2}}" />
311                 <input type="hidden" name="hometown" id="profile-edit-hometown" value="{{$hometown.2}}" />
312                 <input type="hidden" name="politic" id="profile-edit-politic" value="{{$politic.2}}" />
313                 <input type="hidden" name="religion" id="profile-edit-religion" value="{{$religion.2}}" />
314                 <input type="hidden" id="likes-jot-text" name="likes" value="{{$likes.2}}" />
315                 <input type="hidden" id="dislikes-jot-text" name="dislikes" value="{{$dislikes.2}}" />
316                 <input type="hidden" name="with" id="profile-edit-with" value="{{$with.2}}" />
317                 <input type="hidden" name="howlong" id="profile-edit-howlong" value="{{$howlong.2}}" />
318                 <input type="hidden" id="romance-jot-text" name="romance" value="{{$romance.2}}" />
319                 <input type="hidden" id="work-jot-text" name="work" value="{{$work.2}}" />
320                 <input type="hidden" id="education-jot-text" name="education" value="{{$education.2}}" />
321                 <input type="hidden" id="interest-jot-text" name="interest" value="{{$interest.2}}" />
322                 <input type="hidden" id="music-jot-text" name="music" value="{{$music.2}}" />
323                 <input type="hidden" id="book-jot-text" name="book" value="{{$book.2}}" />
324                 <input type="hidden" id="tv-jot-text" name="tv" value="{{$tv.2}}" />
325                 <input type="hidden" id="film-jot-text" name="film" value="{{$film.2}}" />
326
327                 {{/if}}
328         </form>
329 </div>
330
331 <script language="javascript" type="text/javascript">
332         Fill_Country('{{$country_name.2}}');
333         Fill_States('{{$region.2}}');
334
335         // initiale autosize for the textareas
336         autosize($("textarea.text-autosize"));
337 </script>