3 {{$nickname_block nofilter}}
5 <form action="settings" id="settings-form" method="post" autocomplete="off" enctype="multipart/form-data">
6 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
8 <h2 class="settings-heading"><a href="javascript:;">{{$h_pass}}</a></h2>
9 <div class="settings-content-block">
10 {{include file="field_password.tpl" field=$password1}}
11 {{include file="field_password.tpl" field=$password2}}
12 {{include file="field_password.tpl" field=$password3}}
15 {{include file="field_input.tpl" field=$openid}}
18 <div class="settings-submit-wrapper">
19 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
23 <h2 class="settings-heading"><a href="javascript:;">{{$h_basic}}</a></h2>
24 <div class="settings-content-block">
26 {{include file="field_input.tpl" field=$username}}
27 {{include file="field_input.tpl" field=$email}}
28 {{include file="field_password.tpl" field=$password4}}
29 {{include file="field_custom.tpl" field=$timezone}}
30 {{include file="field_select.tpl" field=$language}}
31 {{include file="field_input.tpl" field=$defloc}}
32 {{include file="field_checkbox.tpl" field=$allowloc}}
35 <div class="settings-submit-wrapper">
36 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
40 <h2 class="settings-heading"><a href="javascript:;">{{$h_prv}}</a></h2>
41 <div class="settings-content-block">
42 {{include file="field_input.tpl" field=$maxreq}}
44 {{$profile_in_dir nofilter}}
46 {{include file="field_checkbox.tpl" field=$profile_in_net_dir}}
47 {{if not $is_community}}{{include file="field_checkbox.tpl" field=$hide_friends}}{{/if}}
48 {{include file="field_checkbox.tpl" field=$hide_wall}}
49 {{if not $is_community}}{{include file="field_checkbox.tpl" field=$unlisted}}{{/if}}
50 {{include file="field_checkbox.tpl" field=$accessiblephotos}}
51 {{if not $is_community}}
52 {{include file="field_checkbox.tpl" field=$blockwall}}
53 {{include file="field_checkbox.tpl" field=$blocktags}}
55 {{include file="field_checkbox.tpl" field=$unkmail}}
56 {{include file="field_input.tpl" field=$cntunkmail}}
58 {{$group_select nofilter}}
59 {{if not $is_community}}
60 <h3>{{$permissions}}</h3>
62 {{$aclselect nofilter}}
64 <div class="settings-submit-wrapper">
65 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
69 <h2 class="settings-heading"><a href="javascript:;">{{$expire.label}}</a></h2>
70 <div class="settings-content-block">
71 <div id="settings-expiry">
72 {{include file="field_input.tpl" field=$expire.days}}
73 {{include file="field_checkbox.tpl" field=$expire.items}}
74 {{include file="field_checkbox.tpl" field=$expire.notes}}
75 {{include file="field_checkbox.tpl" field=$expire.starred}}
76 {{include file="field_checkbox.tpl" field=$expire.network_only}}
78 <div class="settings-submit-wrapper">
79 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
84 <h2 class="settings-heading"><a href="javascript:;">{{$h_not}}</a></h2>
85 <div class="settings-content-block">
86 <div id="settings-notifications">
88 <div id="settings-notification-desc">{{$lbl_not}}</div>
91 {{include file="field_intcheckbox.tpl" field=$notify1}}
92 {{include file="field_intcheckbox.tpl" field=$notify2}}
93 {{include file="field_intcheckbox.tpl" field=$notify3}}
94 {{include file="field_intcheckbox.tpl" field=$notify4}}
95 {{include file="field_intcheckbox.tpl" field=$notify5}}
96 {{include file="field_intcheckbox.tpl" field=$notify6}}
97 {{include file="field_intcheckbox.tpl" field=$notify7}}
98 {{include file="field_intcheckbox.tpl" field=$notify8}}
101 <div id="settings-notify-desc">{{$lbl_notify}}</div>
104 {{include file="field_checkbox.tpl" field=$notify_like}}
105 {{include file="field_checkbox.tpl" field=$notify_announce}}
108 {{include file="field_checkbox.tpl" field=$email_textonly}}
109 {{include file="field_checkbox.tpl" field=$detailed_notif}}
111 {{include file="field_checkbox.tpl" field=$notify_ignored}}
113 {{include file="field_checkbox.tpl" field=$desktop_notifications}}
116 let $notificationField = $("#div_id_{{$desktop_notifications.0}}");
117 let $notificationCheckbox = $("#id_{{$desktop_notifications.0}}");
119 if (getNotificationPermission() === 'granted') {
120 $notificationCheckbox.prop('checked', true);
122 if (getNotificationPermission() === null) {
123 $notificationField.hide();
126 $notificationCheckbox.on('change', function (e) {
127 if (Notification.permission === 'granted') {
128 localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
129 } else if (Notification.permission === 'denied') {
130 localStorage.setItem('notification-permissions', 'denied');
132 $notificationCheckbox.prop('checked', false);
133 } else if (Notification.permission === 'default') {
134 Notification.requestPermission(function (choice) {
135 if (choice === 'granted') {
136 localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
138 localStorage.setItem('notification-permissions', 'denied');
139 $notificationCheckbox.prop('checked', false);
149 <div class="settings-submit-wrapper">
150 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
154 <h2 class="settings-heading"><a href="javascript:;">{{$h_advn}}</a></h2>
155 <div class="settings-content-block">
156 <div id="settings-pagetype-desc">{{$h_descadvn}}</div>
158 {{$pagetype nofilter}}
160 <div class="settings-submit-wrapper">
161 <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
165 <h2 class="settings-heading"><a href="javascript:;">{{$importcontact}}</a></h2>
166 <div class="settings-content-block">
167 <input type="hidden" name="MAX_FILE_SIZE" value="{{$importcontact_maxsize}}"/>
168 <div id="settings-pagetype-desc">{{$importcontact_text}}</div>
169 <input type="file" name="importcontact-filename"/>
171 <div class="settings-submit-wrapper">
172 <input type="submit" name="importcontact-submit" class="importcontact-submit" value="{{$importcontact_button}}"/>
176 <h2 class="settings-heading"><a href="javascript:;">{{$relocate}}</a></h2>
177 <div class="settings-content-block">
178 <div id="settings-pagetype-desc">{{$relocate_text}}</div>
180 <div class="settings-submit-wrapper">
181 <input type="submit" name="resend_relocate" class="settings-submit" value="{{$relocate_button}}"/>