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