2013-04-23 13:47:57 +02:00
|
|
|
<h1>{{$ptitle}}</h1>
|
|
|
|
|
|
|
|
{{$nickname_block}}
|
|
|
|
|
|
|
|
<form action="settings" id="settings-form" method="post" autocomplete="off" >
|
|
|
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_pass}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_password.tpl" field=$password1}}
|
|
|
|
{{include file="field_password.tpl" field=$password2}}
|
|
|
|
{{include file="field_password.tpl" field=$password3}}
|
|
|
|
|
|
|
|
{{if $oid_enable}}
|
|
|
|
{{include file="field_input.tpl" field=$openid}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit|escape:'html'}}" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_basic}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 13:47:57 +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}}
|
2015-11-08 14:23:49 +01:00
|
|
|
{{include file="field_select.tpl" field=$language}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_input.tpl" field=$defloc}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$allowloc}}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit|escape:'html'}}" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_prv}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<input type="hidden" name="visibility" value="{{$visibility}}" />
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$maxreq}}
|
|
|
|
|
|
|
|
{{$profile_in_dir}}
|
|
|
|
|
|
|
|
{{$profile_in_net_dir}}
|
|
|
|
|
|
|
|
{{$hide_friends}}
|
|
|
|
|
|
|
|
{{$hide_wall}}
|
|
|
|
|
|
|
|
{{$blockwall}}
|
|
|
|
|
|
|
|
{{$blocktags}}
|
|
|
|
|
|
|
|
{{$suggestme}}
|
|
|
|
|
|
|
|
{{$unkmail}}
|
|
|
|
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$cntunkmail}}
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$expire.days}}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="field input">
|
|
|
|
<span class="field_help"><a href="#advanced-expire-popup" id="advanced-expire" class='popupbox' title="{{$expire.advanced}}">{{$expire.label}}</a></span>
|
|
|
|
<div style="display: none;">
|
|
|
|
<div id="advanced-expire-popup" style="width:auto;height:auto;overflow:auto;">
|
|
|
|
<h3>{{$expire.advanced}}</h3>
|
|
|
|
{{include file="field_yesno.tpl" field=$expire.items}}
|
|
|
|
{{include file="field_yesno.tpl" field=$expire.notes}}
|
|
|
|
{{include file="field_yesno.tpl" field=$expire.starred}}
|
|
|
|
{{include file="field_yesno.tpl" field=$expire.network_only}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="settings-default-perms" class="settings-default-perms" >
|
|
|
|
<a href="#profile-jot-acl-wrapper" id="settings-default-perms-menu" class='popupbox'>{{$permissions}} {{$permdesc}}</a>
|
|
|
|
<div id="settings-default-perms-menu-end"></div>
|
|
|
|
|
|
|
|
<div id="settings-default-perms-select" style="display: none; margin-bottom: 20px" >
|
2015-01-20 19:19:58 +01:00
|
|
|
|
2013-04-23 13:47:57 +02:00
|
|
|
<div style="display: none;">
|
|
|
|
<div id="profile-jot-acl-wrapper" style="width:auto;height:auto;overflow:auto;">
|
|
|
|
{{$aclselect}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div id="settings-default-perms-end"></div>
|
|
|
|
|
|
|
|
{{$group_select}}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit|escape:'html'}}" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
|
|
|
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_not}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 13:47:57 +02:00
|
|
|
<div id="settings-notifications">
|
|
|
|
|
|
|
|
<div id="settings-notify-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}}
|
|
|
|
</div>
|
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$email_textonly}}
|
2017-11-04 13:08:12 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$detailed_notif}}
|
2015-06-24 09:49:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!--
|
2015-03-31 02:11:46 +02:00
|
|
|
<div class="field">
|
|
|
|
<button onclick="javascript:Notification.requestPermission(function(perm){if(perm === 'granted')alert('{{$desktop_notifications_success_message}}');});return false;">{{$desktop_notifications}}</button>
|
|
|
|
<span class="field_help">{{$desktop_notifications_note}}</span>
|
|
|
|
</div>
|
2015-06-24 09:49:53 +02:00
|
|
|
-->
|
|
|
|
{{include file="field_yesno.tpl" field=$desktop_notifications}}
|
|
|
|
<script>
|
|
|
|
(function(){
|
|
|
|
var elm = $("#id_{{$desktop_notifications.0}}_onoff");
|
|
|
|
var ckbox = $("#id_{{$desktop_notifications.0}}");
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
if (getNotificationPermission() === 'granted') {
|
|
|
|
ckbox.val(1);
|
|
|
|
elm.find(".off").addClass("hidden");
|
|
|
|
elm.find(".on").removeClass("hidden");
|
|
|
|
}
|
|
|
|
if (getNotificationPermission() === null) {
|
|
|
|
elm.parent(".field.yesno").hide();
|
|
|
|
}
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
$("#id_{{$desktop_notifications.0}}_onoff").on("click", function(e){
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
if (Notification.permission === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', ckbox.val()==1 ? 'granted' : 'denied');
|
|
|
|
} else if (Notification.permission === 'denied') {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
ckbox.val(0);
|
|
|
|
elm.find(".on").addClass("hidden");
|
|
|
|
elm.find(".off").removeClass("hidden");
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
} else if (Notification.permission === 'default') {
|
|
|
|
Notification.requestPermission(function(choice) {
|
|
|
|
if (choice === 'granted') {
|
|
|
|
localStorage.setItem('notification-permissions', ckbox.val()==1 ? 'granted' : 'denied');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
localStorage.setItem('notification-permissions', 'denied');
|
|
|
|
ckbox.val(0);
|
|
|
|
elm.find(".on").addClass("hidden");
|
|
|
|
elm.find(".off").removeClass("hidden");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2015-11-08 14:23:49 +01:00
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
//console.log(getNotificationPermission());
|
2015-11-08 14:23:49 +01:00
|
|
|
|
|
|
|
|
2015-06-24 09:49:53 +02:00
|
|
|
})
|
|
|
|
})();
|
|
|
|
</script>
|
2015-01-20 19:19:58 +01:00
|
|
|
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit|escape:'html'}}" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$h_advn}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-04-23 13:47:57 +02:00
|
|
|
<div id="settings-pagetype-desc">{{$h_descadvn}}</div>
|
|
|
|
|
|
|
|
{{$pagetype}}
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="submit" class="settings-submit" value="{{$submit|escape:'html'}}" />
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
2014-09-07 16:24:40 +02:00
|
|
|
<h3 class="settings-heading"><a href="javascript:;">{{$relocate}}</a></h3>
|
2014-09-07 10:26:38 +02:00
|
|
|
<div class="settings-content-block">
|
2013-11-13 11:57:11 +01:00
|
|
|
<div id="settings-pagetype-desc">{{$relocate_text}}</div>
|
|
|
|
|
|
|
|
<div class="settings-submit-wrapper" >
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="submit" name="resend_relocate" class="settings-submit" value="{{$relocate_button|escape:'html'}}" />
|
2013-11-13 11:57:11 +01:00
|
|
|
</div>
|
2014-09-06 13:53:23 +02:00
|
|
|
</div>
|
2013-11-13 11:57:11 +01:00
|
|
|
|
|
|
|
|
2013-04-23 13:47:57 +02:00
|
|
|
|