Ext.define('TradePortal.view.pricebook.Form', {
	extend: 'Ext.form.Panel',
	alias: 'widget.pricebookform',
	border: false,
	bodyPadding: 10,
	layout: {
		type: 'vbox',
		align: 'stretch',
		pack: 'start'
	},
	items: [{
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [{
			xtype: 'displayfield',
			fieldLabel: 'Price book delivery format',
			id: 'deliveryFormat',
			name: 'deliveryFormat',
			labelWidth: 200,
			flex: 4
		}, {
			xtype: 'checkbox',
			fieldLabel: 'Full price list required quarterly',
			name: 'isRequiredQuarterly',
			readOnly: true,
			labelWidth: 150,
			flex: 4
		}, {
			xtype: 'button',
			border: true,
			action: 'request',
			id: 'request_changes',
			text: 'Request Changes',
			width: 150
		}]
	}, {
		xtype: 'tbspacer',
		height: 5
	}, {
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [{
			xtype: 'displayfield',
			fieldLabel: 'Full or incremental',
			id: 'typePricebook',
			name: 'typePricebook',
			labelWidth: 200,
			flex: 4
		}, {
			xtype: 'checkbox',
			fieldLabel: 'Show New Product Codes',
			name: 'showNewProductCodes',
			readOnly: true,
			labelWidth: 150,
			flex: 4
		}, {
			xtype: 'button',
			border: true,
			action: 'request_price_book',
			id: 'request_price_book',
			text: 'Request New Price book',
			width: 150
		}]
	}, {
		xtype: 'tbspacer',
		height: 5
	}, {
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [{
			xtype: 'displayfield',
			fieldLabel: 'Frequency',
			id: 'frequencyPricebook',
			name: 'frequencyPricebook',
			labelWidth: 200,
			flex: 4
		}, {
			xtype: 'checkbox',
			fieldLabel: 'Core products only',
			name: 'showCoreProductsOnly',
			readOnly: true,
			labelWidth: 150,
			flex: 4
		}, {
			xtype: 'tbspacer',
			width: 150
		}]
	}, {
		xtype: 'tbspacer',
		height: 5
	}, {
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [{
			xtype: 'displayfield',
			fieldLabel: 'Email Address',
			name: 'recipient',
			labelWidth: 200,
			flex: 4
		}, {
			xtype: 'checkbox',
			fieldLabel: 'Price file zipped',
			name: 'isPricebookZipped',
			readOnly: true,
			labelWidth: 150,
			flex: 4
		}, {
			xtype: 'tbspacer',
			width: 150
		}]
	}, {
		xtype: 'tbspacer',
		height: 5
	}, {
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [ {
			xtype: 'displayfield',
			fieldLabel: 'Customer Prices Last Calculated',
			name: 'lastDateCalculated',
			readOnly: true,
			labelWidth: 200,
			flex: 4
		}, {
			xtype: 'tbspacer',
			flex: 4
		}, {
			xtype: 'tbspacer',
			width: 150
		}]
	}, {
		layout: {
			type: 'hbox',
			pack: 'start',
			align: 'stretch'
		},
		flex: 1,
		border: false,
		items: [{
			xtype: 'tbspacer',
			flex: 8
		}, {
			xtype: 'button',
			border: true,
			action: 'resend',
			disabled: true,
			id: 'resend_price_book',
			text: 'Resend Price Book',
			width: 150
		}]
	}]
});