Authorize.js 858 Bytes
Ext.define('MyMA.view.Authorize', {
    extend: 'Ext.Window',
	alias: 'widget.authorize',
    layout: 'fit',
	autoShow: true,
	layout: 'fit',
	width: 350,
	closable: false,
	constrain: true,
	draggable: false,
	resizable: false,
	modal: true,
	cls: 'x-window-authbaner',
	dockedItems: [{
            dock: 'top',
            xtype: 'toolbar',
            ui: 'authform-baner',
            height: 43,
            html: '{LOGIN @ MAIL . PANEL }'
    }],
    items: [{
        xtype: 'form',
        url: 'index.php',
		monitorValid: true,
		frame: false,
		border: false,
		defaults: {
			anchor: '100%'
		},
		buttons: [{
			text: 'Login'
		}],
		items: [{
			fieldLabel: 'Login',
			xtype: 'textfield',
			allowBlank: false,
			name: 'login'
		}, {
			fieldLabel: 'Password',
			xtype: 'textfield',
			name: 'pass',
			inputType: 'password'
		}]
    }]
});