1 <div class="generic-page-wrapper">
4 <div id="settings-nick-wrapper">
5 <div id="settings-nickname-desc" class="info-message">{{$desc nofilter}}</div>
7 <div id="settings-nick-end"></div>
9 <div id="settings-form">
10 {{* We organize the settings in collapsable panel-groups *}}
11 <div class="panel-group panel-group-settings" id="settings" role="tablist" aria-multiselectable="true">
12 {{* The password setting section *}}
13 <form action="settings/account/password" method="post" autocomplete="off" class="panel" >
14 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
15 <div class="section-subtitle-wrapper panel-heading" role="tab" id="password-settings">
17 <button class="btn-link accordion-toggle{{if $open !== 'password'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#password-settings-collapse" aria-expanded="false" aria-controls="password-settings-collapse">
22 <div id="password-settings-collapse" class="panel-collapse collapse{{if $open == 'password'}} in{{/if}}" role="tabpanel" aria-labelledby="password-settings">
23 <div class="panel-body">
24 {{include file="field_password.tpl" field=$password1}}
25 {{include file="field_password.tpl" field=$password2}}
26 {{include file="field_password.tpl" field=$password3}}
28 <div class="panel-footer">
29 <button type="submit" name="password-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
34 {{* The basic setting section *}}
35 <form action="settings/account/basic" method="post" autocomplete="off" class="panel">
36 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
37 <div class="section-subtitle-wrapper panel-heading" role="tab" id="basic-settings">
39 <button class="btn-link accordion-toggle{{if $open !== 'basic'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#basic-settings-collapse" aria-expanded="false" aria-controls="basic-settings-collapse">
44 <div id="basic-settings-collapse" class="panel-collapse collapse{{if $open == 'basic'}} in{{/if}}" role="tabpanel" aria-labelledby="basic-settings">
45 <div class="panel-body">
46 {{include file="field_input.tpl" field=$username}}
47 {{include file="field_input.tpl" field=$email}}
48 {{include file="field_password.tpl" field=$password4}}
51 {{include file="field_input.tpl" field=$openid}}
52 {{include file="field_checkbox.tpl" field=$delete_openid}}
55 {{include file="field_custom.tpl" field=$timezone}}
56 {{include file="field_select.tpl" field=$language}}
57 {{include file="field_input.tpl" field=$default_location}}
58 {{include file="field_checkbox.tpl" field=$allow_location}}
60 <div class="panel-footer">
61 <button type="submit" name="basic-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
66 {{* The privacity setting section *}}
67 <form action="settings/account/privacy" method="post" autocomplete="off" class="panel">
68 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
69 <div class="section-subtitle-wrapper panel-heading" role="tab" id="privacy-settings">
71 <button class="btn-link accordion-toggle{{if $open !== 'privacy'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#privacy-settings-collapse" aria-expanded="false" aria-controls="privacy-settings-collapse">
76 <div id="privacy-settings-collapse" class="panel-collapse collapse{{if $open == 'privacy'}} in{{/if}}" role="tabpanel" aria-labelledby="privacy-settings">
77 <div class="panel-body">
78 {{include file="field_input.tpl" field=$maxreq}}
80 {{$profile_in_dir nofilter}}
82 {{include file="field_checkbox.tpl" field=$profile_in_net_dir}}
83 {{if not $is_community}}{{include file="field_checkbox.tpl" field=$hide_friends}}{{/if}}
84 {{include file="field_checkbox.tpl" field=$hide_wall}}
85 {{if not $is_community}}{{include file="field_checkbox.tpl" field=$unlisted}}{{/if}}
86 {{include file="field_checkbox.tpl" field=$accessiblephotos}}
87 {{if not $is_community}}
88 {{include file="field_checkbox.tpl" field=$blockwall}}
89 {{include file="field_checkbox.tpl" field=$blocktags}}
91 {{include file="field_checkbox.tpl" field=$unkmail}}
92 {{include file="field_input.tpl" field=$cntunkmail}}
94 {{$group_select nofilter}}
96 {{if not $is_community}}
97 <h3>{{$permissions}}</h3>
99 {{$aclselect nofilter}}
102 <div class="panel-footer">
103 <button type="submit" name="privacy-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
108 <form action="settings/account/expire" method="post" autocomplete="off" class="panel">
109 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
110 <div class="section-subtitle-wrapper panel-heading" role="tab" id="expire-settings">
112 <button class="btn-link accordion-toggle{{if $open !== 'expire'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#expire-settings-collapse" aria-expanded="false" aria-controls="expire-settings-collapse">
117 <div id="expire-settings-collapse" class="panel-collapse collapse{{if $open == 'expire'}} in{{/if}}" role="tabpanel" aria-labelledby="expire-settings">
118 <div class="panel-body">
119 {{include file="field_input.tpl" field=$expire.days}}
121 {{include file="field_checkbox.tpl" field=$expire.items}}
122 {{include file="field_checkbox.tpl" field=$expire.notes}}
123 {{include file="field_checkbox.tpl" field=$expire.starred}}
124 {{include file="field_checkbox.tpl" field=$expire.network_only}}
126 <div class="panel-footer">
127 <button type="submit" name="expire-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
132 {{* The notification setting section *}}
133 <form action="settings/account/notification" method="post" autocomplete="off" class="panel">
134 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
135 <div class="section-subtitle-wrapper panel-heading" role="tab" id="notification-settings">
137 <button class="btn-link accordion-toggle{{if $open !== 'notification'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#notification-settings-collapse" aria-expanded="false" aria-controls="notification-settings-collapse">
142 <div id="notification-settings-collapse" class="panel-collapse collapse{{if $open == 'notification'}} in{{/if}}" role="tabpanel" aria-labelledby="notification-settings">
143 <div id="settings-notifications" class="panel-body">
145 <div id="settings-notification-desc">{{$lbl_not}}</div>
148 {{include file="field_intcheckbox.tpl" field=$notify1}}
149 {{include file="field_intcheckbox.tpl" field=$notify2}}
150 {{include file="field_intcheckbox.tpl" field=$notify3}}
151 {{include file="field_intcheckbox.tpl" field=$notify4}}
152 {{include file="field_intcheckbox.tpl" field=$notify5}}
153 {{include file="field_intcheckbox.tpl" field=$notify6}}
154 {{include file="field_intcheckbox.tpl" field=$notify7}}
157 <div id="settings-notify-desc">{{$lbl_notify}}</div>
160 {{include file="field_checkbox.tpl" field=$notify_tagged}}
161 {{include file="field_checkbox.tpl" field=$notify_direct_comment}}
162 {{include file="field_checkbox.tpl" field=$notify_like}}
163 {{include file="field_checkbox.tpl" field=$notify_announce}}
164 {{include file="field_checkbox.tpl" field=$notify_thread_comment}}
165 {{include file="field_checkbox.tpl" field=$notify_comment_participation}}
166 {{include file="field_checkbox.tpl" field=$notify_activity_participation}}
169 {{include file="field_checkbox.tpl" field=$email_textonly}}
170 {{include file="field_checkbox.tpl" field=$detailed_notif}}
172 {{include file="field_checkbox.tpl" field=$notify_ignored}}
174 {{* commented out because it was commented out in the original template
176 <button type="button" onclick="javascript:Notification.requestPermission(function(perm){if(perm === 'granted')alert('{{$desktop_notifications_success_message}}');});">{{$desktop_notifications}}</button>
177 <span class="field_help">{{$desktop_notifications_note}}</span>
181 {{include file="field_checkbox.tpl" field=$desktop_notifications}}
182 <script type="text/javascript">
184 let $notificationField = $("#div_id_{{$desktop_notifications.0}}");
185 let $notificationCheckbox = $("#id_{{$desktop_notifications.0}}");
187 if (getNotificationPermission() === 'granted') {
188 $notificationCheckbox.prop('checked', true);
190 if (getNotificationPermission() === null) {
191 $notificationField.hide();
194 $notificationCheckbox.on('change', function(e){
195 if (Notification.permission === 'granted') {
196 localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
197 } else if (Notification.permission === 'denied') {
198 localStorage.setItem('notification-permissions', 'denied');
200 $notificationCheckbox.prop('checked', false);
201 } else if (Notification.permission === 'default') {
202 Notification.requestPermission(function(choice) {
203 if (choice === 'granted') {
204 localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
206 localStorage.setItem('notification-permissions', 'denied');
207 $notificationCheckbox.prop('checked', false);
215 <div class="panel-footer">
216 <button type="submit" name="notification-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
221 {{* The additional account setting section *}}
222 <form action="settings/account/advanced" method="post" autocomplete="off" class="panel">
223 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
224 <div class="section-subtitle-wrapper panel-heading" role="tab" id="advanced-account-settings">
226 <button class="btn-link accordion-toggle{{if $open !== 'advanced'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#advanced-account-settings-collapse" aria-expanded="false" aria-controls="advanced-account-settings-collapse">
231 <div id="advanced-account-settings-collapse" class="panel-collapse collapse{{if $open == 'advanced'}} in{{/if}}" role="tabpanel" aria-labelledby="advanced-account-settings">
232 <div class="panel-body">
233 <div id="settings-pagetype-desc">{{$h_descadvn}}</div>
235 {{$pagetype nofilter}}
237 <div class="panel-footer">
238 <button type="submit" name="advanced-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
243 {{* Import contacts CSV *}}
244 <form action="settings/account/importcontact" method="post" autocomplete="off" class="panel" enctype="multipart/form-data">
245 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
246 <div class="section-subtitle-wrapper panel-heading" role="tab" id="importcontact-settings">
248 <button class="btn-link accordion-toggle{{if $open !== 'importcontact'}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings" href="#importcontact-settings-collapse" aria-expanded="false" aria-controls="importcontact-settings-collapse">
253 <div id="importcontact-settings-collapse" class="panel-collapse collapse{{if $open == 'importcontact'}} in{{/if}}" role="tabpanel" aria-labelledby="importcontact-settings">
254 <div class="panel-body">
255 <div id="importcontact-relocate-desc">{{$importcontact_text}}</div>
256 <input type="hidden" name="MAX_FILE_SIZE" value="{{$importcontact_maxsize}}" />
257 <input type="file" name="importcontact-filename" />
259 <div class="panel-footer">
260 <button type="submit" name="importcontact-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
265 {{* The relocate setting section *}}
266 <form action="settings/account/relocate" method="post" autocomplete="off" class="panel">
267 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
268 <div class="section-subtitle-wrapper panel-heading" role="tab" id="relocate-settings">
270 <button class="btn-link accordion-toggle" data-toggle="collapse" data-parent="#settings" href="#relocate-settings-collapse" aria-expanded="false" aria-controls="relocate-settings-collapse">
275 <div id="relocate-settings-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="relocate-settings">
276 <div class="panel-body">
277 <div id="settings-relocate-desc">{{$relocate_text}}</div>
279 <div class="panel-footer">
280 <button type="submit" name="relocate-submit" class="btn btn-primary" value="{{$relocate_button}}">{{$relocate_button}}</button>