Authorize.js
858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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'
}]
}]
});