Ext.define('TradePortal.view.invoice.CommentWindow', {
	extend: 'Ext.window.Window',
	alias: 'widget.commentwindow',
	id: 'comment_window',
	autoShow: true,
	title: 'Comment',
	width: 300,
	resizable: false,
	modal: true,
	closable: true,
	layout: {
		type: 'vbox',
		align: 'stretch'
	},
	bodyPadding: 10,
	items: [{
		xtype : 'commentview'
	},{
		xtype: 'textfield',
		fieldLabel: 'Comment',
		id: 'commentField'
	},{
		xtype: 'checkboxfield',
		fieldLabel: 'Apply to all Selected',
		hidden: true,
		id: 'applyField'
	},{
		xtype: 'hiddenfield',
		fieldLabel: '',
		id: 'hiddenCommentTransaction'
	},{
		xtype: 'hiddenfield',
		fieldLabel: '',
		id: 'hiddenCommentSuffix'
	}],
	buttons: [{
		xtype: 'button',
		text: 'Save',
		id: 'commentSave'
	},{
		xtype: 'button',
		text: 'Cancel',
		handler: function () { this.up('window').close(); }
	}],
	initComponent: function () {
		this.callParent(arguments);
	}

});