2016-06-11 22:35:08 +02:00
|
|
|
<div class="generic-page-wrapper">
|
2020-04-01 03:38:56 +02:00
|
|
|
<h1>{{$ptitle}}</h1>
|
2016-06-11 22:35:08 +02:00
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$nickname_block nofilter}}
|
2016-06-11 22:35:08 +02:00
|
|
|
|
2020-03-01 16:15:56 +01:00
|
|
|
<form action="settings" id="settings-form" method="post" autocomplete="off" enctype="multipart/form-data">
|
2020-04-01 03:38:56 +02:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2016-06-11 22:35:08 +02:00
|
|
|
|
|
|
|
{{* We organize the settings in collapsable panel-groups *}}
|
2016-06-12 19:59:27 +02:00
|
|
|
<div class="panel-group panel-group-settings" id="settings" role="tablist" aria-multiselectable="true">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{* The password setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="password-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#password-settings-collapse" aria-expanded="false" aria-controls="password-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$h_pass}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="password-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="password-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{include file="field_password.tpl" field=$password1}}
|
|
|
|
{{include file="field_password.tpl" field=$password2}}
|
|
|
|
{{include file="field_password.tpl" field=$password3}}
|
|
|
|
|
2020-04-01 03:38:56 +02:00
|
|
|
{{if $oid_enable}}
|
2016-06-11 22:35:08 +02:00
|
|
|
{{include file="field_input.tpl" field=$openid}}
|
2019-10-24 22:23:26 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$delete_openid}}
|
2020-04-01 03:38:56 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The basic setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="basic-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#basic-settings-collapse" aria-expanded="false" aria-controls="basic-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$h_basic}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="basic-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="basic-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{include file="field_input.tpl" field=$username}}
|
|
|
|
{{include file="field_input.tpl" field=$email}}
|
|
|
|
{{include file="field_password.tpl" field=$password4}}
|
|
|
|
{{include file="field_custom.tpl" field=$timezone}}
|
|
|
|
{{include file="field_select.tpl" field=$language}}
|
|
|
|
{{include file="field_input.tpl" field=$defloc}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The privacity setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="privacy-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#privacy-settings-collapse" aria-expanded="false" aria-controls="privacy-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$h_prv}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="privacy-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="privacy-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2016-06-11 22:35:08 +02:00
|
|
|
|
|
|
|
<input type="hidden" name="visibility" value="{{$visibility}}" />
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$maxreq}}
|
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$profile_in_dir nofilter}}
|
2016-06-11 22:35:08 +02:00
|
|
|
|
2020-04-01 03:38:56 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$profile_in_net_dir}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$hide_friends}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$hide_wall}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$unlisted}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$accessiblephotos}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$blockwall}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$blocktags}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$unkmail}}
|
2016-06-11 22:35:08 +02:00
|
|
|
{{include file="field_input.tpl" field=$cntunkmail}}
|
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$group_select nofilter}}
|
2016-06-11 22:35:08 +02:00
|
|
|
|
2020-04-01 03:38:56 +02:00
|
|
|
<h3>{{$permissions}}</h3>
|
2020-04-01 03:43:04 +02:00
|
|
|
|
|
|
|
{{$aclselect nofilter}}
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2020-02-16 21:44:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="expire-settings">
|
|
|
|
<h2>
|
2020-02-16 21:44:55 +01:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#expire-settings-collapse" aria-expanded="false" aria-controls="expire-settings-collapse">
|
|
|
|
{{$expire.label}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2020-02-16 21:44:55 +01:00
|
|
|
</div>
|
|
|
|
<div id="expire-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="expire-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2020-02-16 21:44:55 +01:00
|
|
|
{{include file="field_input.tpl" field=$expire.days}}
|
|
|
|
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.items}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.notes}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.starred}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$expire.network_only}}
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The notification setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="notification-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#notification-settings-collapse" aria-expanded="false" aria-controls="notification-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$h_not}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="notification-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="notification-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div id="settings-notifications" class="panel-body">
|
|
|
|
|
|
|
|
<div id="settings-notification-desc">{{$lbl_not}}</div>
|
|
|
|
|
|
|
|
<div class="group">
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify1}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify2}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify3}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify4}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify5}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify6}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify7}}
|
|
|
|
{{include file="field_intcheckbox.tpl" field=$notify8}}
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
|
2020-04-01 03:38:56 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$email_textonly}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$detailed_notif}}
|
|
|
|
|
2021-01-24 12:40:09 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$notify_ignored}}
|
|
|
|
|
2020-04-01 03:38:56 +02:00
|
|
|
{{* commented out because it was commented out in the original template
|
|
|
|
<div class="field">
|
|
|
|
<button type="button" onclick="javascript:Notification.requestPermission(function(perm){if(perm === 'granted')alert('{{$desktop_notifications_success_message}}');});">{{$desktop_notifications}}</button>
|
|
|
|
<span class="field_help">{{$desktop_notifications_note}}</span>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
2020-04-01 03:38:56 +02:00
|
|
|
*}}
|
|
|
|
|
|
|
|
{{include file="field_checkbox.tpl" field=$desktop_notifications}}
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function(){
|
|
|
|
let $notificationField = $("#div_id_{{$desktop_notifications.0}}");
|
|
|
|
let $notificationCheckbox = $("#id_{{$desktop_notifications.0}}");
|
|
|
|
|
|
|
|
if (getNotificationPermission() === 'granted') {
|
|
|
|
$notificationCheckbox.prop('checked', true);
|
|
|
|
}
|
|
|
|
if (getNotificationPermission() === null) {
|
|
|
|
$notificationField.hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
$notificationCheckbox.on('change', function(e){
|
|
|
|
if (Notification.permission === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
|
|
|
|
} else if (Notification.permission === 'denied') {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
|
|
|
|
|
|
|
$notificationCheckbox.prop('checked', false);
|
|
|
|
} else if (Notification.permission === 'default') {
|
|
|
|
Notification.requestPermission(function(choice) {
|
|
|
|
if (choice === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', $notificationCheckbox.prop('checked') ? 'granted' : 'denied');
|
|
|
|
} else {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
|
|
|
$notificationCheckbox.prop('checked', false);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The additional account setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="additional-account-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#additional-account-settings-collapse" aria-expanded="false" aria-controls="additional-account-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$h_advn}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="additional-account-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="additional-account-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2016-06-11 22:35:08 +02:00
|
|
|
<div id="settings-pagetype-desc">{{$h_descadvn}}</div>
|
|
|
|
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$pagetype nofilter}}
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2019-11-03 00:12:16 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* Import contacts CSV *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="importcontact-settings">
|
|
|
|
<h2>
|
2019-11-03 00:12:16 +01:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#importcontact-settings-collapse" aria-expanded="false" aria-controls="importcontact-settings-collapse">
|
|
|
|
{{$importcontact}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2019-11-03 00:12:16 +01:00
|
|
|
</div>
|
|
|
|
<div id="importcontact-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="importcontact-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2019-11-03 00:12:16 +01:00
|
|
|
<div id="importcontact-relocate-desc">{{$importcontact_text}}</div>
|
2019-11-03 17:31:01 +01:00
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="{{$importcontact_maxsize}}" />
|
2019-11-03 00:12:16 +01:00
|
|
|
<input type="file" name="importcontact-filename" />
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2020-11-10 07:37:27 +01:00
|
|
|
<button type="submit" name="importcontact-submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{* The relocate setting section *}}
|
|
|
|
<div class="panel">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="relocate-settings">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#relocate-settings-collapse" aria-expanded="false" aria-controls="relocate-settings-collapse">
|
2016-06-11 22:35:08 +02:00
|
|
|
{{$relocate}}
|
|
|
|
</a>
|
2020-04-01 03:38:56 +02:00
|
|
|
</h2>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
<div id="relocate-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="relocate-settings">
|
2020-04-01 03:38:56 +02:00
|
|
|
<div class="panel-body">
|
2017-10-20 15:21:42 +02:00
|
|
|
<div id="settings-relocate-desc">{{$relocate_text}}</div>
|
2020-04-01 03:38:56 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2020-11-10 07:37:27 +01:00
|
|
|
<button type="submit" name="resend_relocate" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-11 22:35:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|