Sha256: 3279d054f0fb2d869af075c67f06834b104f8fee530b0c341c94812dbc3c9292

Contents?: true

Size: 1.96 KB

Versions: 9

Compression:

Stored size: 1.96 KB

Contents

Ext.application({
    name: 'compass_ae_mobile_login',
    useLoadMask: true,

    launch: function () {
        Ext.create("Ext.form.Panel", {
            fullscreen: true,
            defaults: {
                xtype: 'textfield'
            },
            items: [
                {
                    xtype:'container',
                    height:200,
                    cls: 'login-logo'
                },
                {
                    label: 'Username or Email Address',
                    labelAlign: 'top',
                    name: 'login',
                    required: true
                },
                {
                    xtype: 'passwordfield',
                    labelAlign: 'top',
                    label: 'Password',
                    name: 'password',
                    required: true
                },
                {
                    xtype: 'button',
                    text: 'Login',
                    flex: 1,
                    scope: this,
                    ui: 'confirm-round',
                    style: 'margin:0.1em',
                    handler: function (btn) {
                        var form = btn.up('formpanel');
                        form.setMasked({
                            xtype: 'loadmask',
                            message: 'Authenticating User...'
                        });
                        form.submit({
                            url: '/session/sign_in',
                            method: 'POST',
                            success: function (form, result) {
                                form.setMasked(false);
                                window.location = Compass.ErpApp.Mobile.LoginTo;
                            },
                            failure: function (form, result) {
                                Ext.Msg.alert("Error", "Could not authenticate .");
                            }
                        });
                    }
                }
            ]
        });
    }
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
erp_app-3.1.14 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.13 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.12 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.11 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.10 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.9 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.8 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.7 public/javascripts/erp_app/login/mobile.js
erp_app-3.1.6 public/javascripts/erp_app/login/mobile.js