sp.declare("Peter.foo", {
	requires: [
		"Ext.ux.buffer.view.Form"
	],
	onInitialize: function(i_self) {

		var i_panel = Ext.create("Ext.ux.buffer.view.Form", {
			bodyPadding: 10,
			layout: "anchor",
			autoScroll: true,
			defaults: {
				anchor: "100%"
			},
			url: {
				load: "/ip2-services/loadStoreForm.aspx",
				save: "/ip2-services/saveStoreForm.aspx"
			},
			items: [
				{
					xtype: "textfield",
					name: "TEST1",
					fieldLabel: "Test 1"
				},
				{
					xtype: "textfield",
					name: "TEST2",
					fieldLabel: "Test 2"
				},
				{
					xtype: "textfield",
					name: "TEST3",
					fieldLabel: "Test 3"
				}
			]
		});

		var i_window = Ext.widget("window", {
			layout: "fit",
			resizable: false,
			closable: true,
			width: 800,
			height: 600,
			items: [
				i_panel
			]
		});

		i_window.show();

		return null;
	}
});
