mirror of
				https://git.proxmox.com/git/proxmox-backup
				synced 2025-11-02 15:18:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/*global Proxmox*/
 | 
						|
 | 
						|
Ext.define('PBS.SystemConfiguration', {
 | 
						|
    extend: 'Ext.tab.Panel',
 | 
						|
    xtype: 'pbsSystemConfiguration',
 | 
						|
 | 
						|
    title: gettext('Configuration') + ': ' + gettext('System'),
 | 
						|
    border: false,
 | 
						|
    scrollable: true,
 | 
						|
    defaults: { border: false },
 | 
						|
    items: [
 | 
						|
	{
 | 
						|
	    title: gettext('Network/Time'),
 | 
						|
	    itemId: 'network',
 | 
						|
	    xtype: 'panel',
 | 
						|
	    layout: {
 | 
						|
		type: 'vbox',
 | 
						|
		align: 'stretch',
 | 
						|
		multi: true
 | 
						|
	    },
 | 
						|
	    bodyPadding: '0 0 10 0',
 | 
						|
	    defaults: {
 | 
						|
		collapsible: true,
 | 
						|
		animCollapse: false,
 | 
						|
		margin: '10 10 0 10'
 | 
						|
	    },
 | 
						|
	    items: [
 | 
						|
		{
 | 
						|
		    flex: 1,
 | 
						|
		    minHeight: 200,
 | 
						|
		    title: gettext('Interfaces'),
 | 
						|
		    xtype: 'proxmoxNodeNetworkView',
 | 
						|
		    types: ['bond'],
 | 
						|
		    nodename: 'localhost'
 | 
						|
		},
 | 
						|
		{
 | 
						|
		    title: gettext('DNS'),
 | 
						|
		    xtype: 'proxmoxNodeDNSView',
 | 
						|
		    nodename: 'localhost'
 | 
						|
		},
 | 
						|
		{
 | 
						|
		    title: gettext('Time'),
 | 
						|
		    xtype: 'proxmoxNodeTimeView',
 | 
						|
		    nodename: 'localhost'
 | 
						|
		}
 | 
						|
	    ]
 | 
						|
//	},
 | 
						|
//	{
 | 
						|
//	    itemId: 'options',
 | 
						|
//          title: gettext('Options'),
 | 
						|
//	    html: "TESWT"
 | 
						|
//	    xtype: 'pbsSystemOptions'
 | 
						|
	}
 | 
						|
    ],
 | 
						|
 | 
						|
    initComponent: function() {
 | 
						|
	var me = this;
 | 
						|
 | 
						|
	me.callParent();
 | 
						|
 | 
						|
	var networktime = me.getComponent('network');
 | 
						|
	Ext.Array.forEach(networktime.query(), function(item) {
 | 
						|
	    item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
 | 
						|
	});
 | 
						|
    }
 | 
						|
});
 | 
						|
 | 
						|
 |