]> git.proxmox.com Git - extjs.git/blame - extjs/templates/admin-dashboard/modern/src/view/authentication/Login.js
add extjs 6.0.1 sources
[extjs.git] / extjs / templates / admin-dashboard / modern / src / view / authentication / Login.js
CommitLineData
6527f429
DM
1Ext.define('Admin.view.authentication.Login', {\r
2 extend: 'Admin.view.authentication.AuthBase',\r
3 xtype: 'login',\r
4\r
5 requires: [\r
6 'Ext.field.Checkbox',\r
7 'Ext.field.Password',\r
8 'Ext.field.Text',\r
9 'Ext.layout.HBox'\r
10 ],\r
11\r
12 items: [{\r
13 xtype: 'panel',\r
14\r
15 items: [{\r
16 padding: '20 0 0 20',\r
17 html: 'Sign into your account'\r
18 },{\r
19 xtype: 'container',\r
20 padding: 20,\r
21 defaults: {\r
22 margin:'0 0 10 0'\r
23 },\r
24 items: [{\r
25 xtype: 'textfield',\r
26 placeHolder: 'Email',\r
27 userCls: 'text-border'\r
28 },{\r
29 xtype: 'passwordfield',\r
30 placeHolder: 'Password',\r
31 userCls: 'text-border'\r
32 },{\r
33 layout: 'hbox',\r
34 items: [{\r
35 xtype: 'checkboxfield'\r
36 },{\r
37 html: 'Remember Me',\r
38 userCls: 'checkbox-text-adjustment',\r
39 style: 'marginRight:20px'\r
40 },{\r
41 html: '<a href="#passwordreset">Forgot Password</a>',\r
42 userCls: 'checkbox-text-adjustment'\r
43 }]\r
44 },{\r
45 xtype: 'button',\r
46 text: 'Login',\r
47 iconAlign: 'right',\r
48 iconCls: 'x-fa fa-angle-right',\r
49 ui: 'confirm',\r
50 handler: function(){\r
51 window.location.href = "#dashboard";\r
52 }\r
53 },{\r
54 xtype: 'button',\r
55 text: 'Login with Facebook',\r
56 iconAlign: 'right',\r
57 iconCls: 'x-fa fa-facebook',\r
58 ui: 'facebook',\r
59 handler: function(){\r
60 window.location.href = "#dashboard";\r
61 }\r
62 },{\r
63 xtype: 'button',\r
64 text: 'Create Account',\r
65 ui: 'gray-button',\r
66 iconAlign: 'right',\r
67 iconCls: 'x-fa fa-user-plus',\r
68 handler: function(){\r
69 window.location.href= "#register";\r
70 }\r
71 }]\r
72 }]\r
73 }]\r
74});\r