Authorize.js
1.43 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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'
}]
}]
});