Ext.namespace("LP.pages");



/**
 * The main login page for the site.
 * 
 * @class LP.pages.LoginPage
 * @extends Ext.Panel
 */
LP.pages.LoginPage = Ext.extend(Ext.Panel, {


	/**
	 * Constructor.
	 * 
	 * @param {Object} config Configuration options.
	 */
	constructor: function ( config ) {

		config = Ext.apply({
			layout: 'border',
			items : [{
				region: 'center',
				items: {
					style: 'margin-left:auto;margin-right:auto;margin-top:200px;',
					xtype : 'LP.forms.LoginForm',
					title : 'Login',
					success : function() {
						window.location = LP.Application.APPLICATION_PAGE;
					}
				}
			}]
		}, config);

		LP.pages.LoginPage.superclass.constructor.call( this, config );

	}



});
Ext.reg('LP.pages.LoginPage', LP.pages.LoginPage);
