ui: improve prune simulator layout
This commit is contained in:
		@ -31,7 +31,7 @@ Ext.onReady(function() {
 | 
				
			|||||||
	extend: 'Ext.Panel',
 | 
						extend: 'Ext.Panel',
 | 
				
			||||||
	alias: 'widget.prunesimulatorDocumentation',
 | 
						alias: 'widget.prunesimulatorDocumentation',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	html: '<iframe style="width:100%;height:100%" src="./documentation.html"/>',
 | 
						html: '<iframe style="width:100%;height:100%;border:0px;" src="./documentation.html"/>',
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Ext.define('PBS.prunesimulator.CalendarEvent', {
 | 
					    Ext.define('PBS.prunesimulator.CalendarEvent', {
 | 
				
			||||||
@ -126,6 +126,7 @@ Ext.onReady(function() {
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
		    xtype: 'grid',
 | 
							    xtype: 'grid',
 | 
				
			||||||
		    store: me.store,
 | 
							    store: me.store,
 | 
				
			||||||
 | 
							    border: false,
 | 
				
			||||||
		    columns: [
 | 
							    columns: [
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			    header: 'Backup Time',
 | 
								    header: 'Backup Time',
 | 
				
			||||||
@ -532,7 +533,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 4,
 | 
							value: 4,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'numberfield',
 | 
							xtype: 'numberfield',
 | 
				
			||||||
@ -542,7 +542,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 0,
 | 
							value: 0,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'numberfield',
 | 
							xtype: 'numberfield',
 | 
				
			||||||
@ -552,7 +551,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 5,
 | 
							value: 5,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'numberfield',
 | 
							xtype: 'numberfield',
 | 
				
			||||||
@ -562,7 +560,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 2,
 | 
							value: 2,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'numberfield',
 | 
							xtype: 'numberfield',
 | 
				
			||||||
@ -572,7 +569,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 0,
 | 
							value: 0,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'numberfield',
 | 
							xtype: 'numberfield',
 | 
				
			||||||
@ -582,7 +578,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
		minValue: 0,
 | 
							minValue: 0,
 | 
				
			||||||
		value: 0,
 | 
							value: 0,
 | 
				
			||||||
		fieldGroup: 'keep',
 | 
							fieldGroup: 'keep',
 | 
				
			||||||
		padding: '0 0 0 10',
 | 
					 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	],
 | 
						],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -635,16 +630,20 @@ Ext.onReady(function() {
 | 
				
			|||||||
	    me.items = [
 | 
						    me.items = [
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
		    xtype: 'panel',
 | 
							    xtype: 'panel',
 | 
				
			||||||
		    layout: 'hbox',
 | 
							    layout: {
 | 
				
			||||||
		    height: 180,
 | 
								type: 'hbox',
 | 
				
			||||||
 | 
								align: 'stretch',
 | 
				
			||||||
 | 
							    },
 | 
				
			||||||
 | 
							    border: false,
 | 
				
			||||||
		    items: [
 | 
							    items: [
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			    title: 'View',
 | 
								    title: 'View',
 | 
				
			||||||
			    layout: 'anchor',
 | 
								    layout: 'anchor',
 | 
				
			||||||
			    flex: 1,
 | 
								    flex: 1,
 | 
				
			||||||
 | 
								    border: false,
 | 
				
			||||||
 | 
								    bodyPadding: 10,
 | 
				
			||||||
			    items: [
 | 
								    items: [
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
				    padding: '0 0 0 10',
 | 
					 | 
				
			||||||
				    xtype: 'checkbox',
 | 
									    xtype: 'checkbox',
 | 
				
			||||||
				    name: 'showCalendar',
 | 
									    name: 'showCalendar',
 | 
				
			||||||
				    reference: 'showCalendar',
 | 
									    reference: 'showCalendar',
 | 
				
			||||||
@ -652,7 +651,6 @@ Ext.onReady(function() {
 | 
				
			|||||||
				    checked: false,
 | 
									    checked: false,
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
				    padding: '0 0 0 10',
 | 
					 | 
				
			||||||
				    xtype: 'checkbox',
 | 
									    xtype: 'checkbox',
 | 
				
			||||||
				    name: 'showColors',
 | 
									    name: 'showColors',
 | 
				
			||||||
				    reference: 'showColors',
 | 
									    reference: 'showColors',
 | 
				
			||||||
@ -680,32 +678,42 @@ Ext.onReady(function() {
 | 
				
			|||||||
				},
 | 
									},
 | 
				
			||||||
			    ],
 | 
								    ],
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
 | 
								{ xtype: "panel", width: 1, border: 1 },
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			    layout: 'anchor',
 | 
								    layout: 'anchor',
 | 
				
			||||||
			    flex: 1,
 | 
								    flex: 1,
 | 
				
			||||||
 | 
								    border: false,
 | 
				
			||||||
			    title: 'Backup Schedule',
 | 
								    title: 'Backup Schedule',
 | 
				
			||||||
 | 
								    bodyPadding: 10,
 | 
				
			||||||
			    items: scheduleItems,
 | 
								    items: scheduleItems,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		    ],
 | 
							    ],
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
		    xtype: 'panel',
 | 
							    xtype: 'panel',
 | 
				
			||||||
		    layout: 'hbox',
 | 
							    layout: {
 | 
				
			||||||
 | 
								type: 'hbox',
 | 
				
			||||||
 | 
								align: 'stretch',
 | 
				
			||||||
 | 
							    },
 | 
				
			||||||
		    flex: 1,
 | 
							    flex: 1,
 | 
				
			||||||
 | 
							    border: false,
 | 
				
			||||||
		    items: [
 | 
							    items: [
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			    layout: 'anchor',
 | 
								    layout: 'anchor',
 | 
				
			||||||
			    title: 'Prune Options',
 | 
								    title: 'Prune Options',
 | 
				
			||||||
 | 
								    border: false,
 | 
				
			||||||
 | 
								    bodyPadding: 10,
 | 
				
			||||||
			    items: me.keepItems,
 | 
								    items: me.keepItems,
 | 
				
			||||||
			    flex: 1,
 | 
								    flex: 1,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
 | 
								{ xtype: "panel", width: 1, border: 1 },
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
			    layout: 'fit',
 | 
								    layout: 'fit',
 | 
				
			||||||
			    title: 'Backups',
 | 
								    title: 'Backups',
 | 
				
			||||||
 | 
								    border: false,
 | 
				
			||||||
			    xtype: 'prunesimulatorPruneList',
 | 
								    xtype: 'prunesimulatorPruneList',
 | 
				
			||||||
			    store: me.pruneStore,
 | 
								    store: me.pruneStore,
 | 
				
			||||||
			    reference: 'pruneList',
 | 
								    reference: 'pruneList',
 | 
				
			||||||
			    height: '100%',
 | 
					 | 
				
			||||||
			    flex: 1,
 | 
								    flex: 1,
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		    ],
 | 
							    ],
 | 
				
			||||||
@ -746,7 +754,7 @@ Ext.onReady(function() {
 | 
				
			|||||||
	    {
 | 
						    {
 | 
				
			||||||
		xtype: 'prunesimulatorDocumentation',
 | 
							xtype: 'prunesimulatorDocumentation',
 | 
				
			||||||
		title: 'Usage',
 | 
							title: 'Usage',
 | 
				
			||||||
		margins: '5 0 0 0',
 | 
							border: false,
 | 
				
			||||||
		region: 'center',
 | 
							region: 'center',
 | 
				
			||||||
	    },
 | 
						    },
 | 
				
			||||||
	],
 | 
						],
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user