Authorize.js 1.43 KB
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,
		bodyStyle: {
            border: 0,
            background: 'transparent'
        },
		defaults: {
			anchor: '100%'
		},
		tbar: {
            border: false,
            height: 20,
            style: {
                border: 0,
                background: 'transparent',
                padding: 0
            },
            items: {
                xtype: 'container',
                itemId: 'autherrormsg',
                hidden: true,
                style: {
                    color: 'red'
                },
                tpl: '{message}',
                data: { message: '' }
            }
        },
		buttons: [{
			text: 'Login',
			itemId: 'authorize'
		}],
		items: [{
			fieldLabel: 'Login',
			xtype: 'textfield',
			allowBlank: false,
			name: 'login'
		}, {
			fieldLabel: 'Password',
			xtype: 'textfield',
			name: 'pass',
			inputType: 'password'
		}]
    }]
});