FR.editSettings={custom_actions:[]};FR.editSettings.formPanel=new FR.components.editForm({title:"More options",layout:"form",labelWidth:250,autoScroll:true,defaults:{width:500},items:[{xtype:"fieldset",labelWidth:200,defaults:{width:450},labelAlign:"top",title:"Enable maintenance mode",checkboxToggle:{tag:"input",type:"checkbox",name:"settings[maintenance]",id:"settings[maintenance]"},checkboxName:"settings[maintenance]",collapsed:!parseInt(FR.settings.maintenance),items:[{xtype:"displayfield",style:"color: var(--theme-textLighter);",value:FR.T("Disables users access and WebLinks.<br>The superuser still has normal access.")},{xtype:"textarea",grow:true,height:90,fieldLabel:"Maintenance message to users",name:"settings[maintenance_message_users]",value:FR.settings.maintenance_message_users},{xtype:"textarea",grow:true,height:90,fieldLabel:"Maintenance message to public",name:"settings[maintenance_message_public]",value:FR.settings.maintenance_message_public}]},{xtype:"fieldset",labelWidth:300,defaults:{xtype:"numberfield",width:60,allowBlank:false},items:[{fieldLabel:"Number of days to keep the user activity log entries",name:"settings[user_activity_logs_entry_lifetime]",value:FR.settings.user_activity_logs_entry_lifetime},{fieldLabel:"Users quota warning level",name:"settings[quota_warning_level]",value:FR.settings.quota_warning_level,disabled:FR.system.isFree,helpText:FR.system.isFree?"Enterprise version only":"Set a number between 70 and 100, representing the quota usage percentage."}]}],tbar:[{text:"Save changes",cls:"fr-btn-primary",ref:"saveBtn",handler:function(){var editForm=this.ownerCt.ownerCt;var params=editForm.form.getFieldValues();params["settings[maintenance]"]=Ext.get("settings[maintenance]").dom.checked?1:0;var opts={url:FR.URLRoot+"/?module=cpanel&section=settings&action=save",maskText:"Saving changes...",params:params};editForm.submitForm(opts)}}]});Ext.getCmp("appTab").add(FR.editSettings.formPanel);Ext.getCmp("appTab").doLayout();