1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Dialog');
10 'dc647eb65e6711e155375218212b3964' :"Password",
11 '01a569ddc6cf67ddec2a683f0a5f5956' :"Forgot your password?",
12 'd837cc5a72556c5e2abf4b9fe10ddef8' :"Login ",
13 '5047040b025ce0295b58d42250014417' :"<div id=\"login-err\" class=\"dialog-err\" style=\"color:red\"></div>",
14 '643a860f992333b8600ea264aca7c4fc' :"Email Address"
20 show : function(data, cb)
28 this.dialog.show(this.data._el);
31 this.form.setValues(data);
32 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
40 this.dialog = Roo.factory({
41 '|xns' : 'Roo.bootstrap',
42 title : _this._strings['d837cc5a72556c5e2abf4b9fe10ddef8]',
44 buttonPosition : 'center',
45 buttons : Roo.bootstrap.Modal.OKCANCEL,
48 btnclick : function (e)
55 _this.form.doAction('submit');
57 render : function (_self) {
59 Roo.get('login-err').dom.innerHTML = "";
62 show : function (_self)
64 Roo.get('login-err').dom.innerHTML = "";
69 '|xns' : 'Roo.bootstrap',
72 style : 'margin-top:20px;',
75 '|xns' : 'Roo.bootstrap',
81 '|xns' : 'Roo.bootstrap',
82 url : baseURL + '/Login',
88 actionfailed : function (_self, action) {
89 Roo.log('action failed?!');
92 if (typeof(action) != 'undefined' && action.failureType == 'server') {
94 Roo.get('login-err').dom.innerHTML = action.result.errorMsg;
98 Roo.get('login-err').dom.innerHTML = "Fill in all the required fields";
100 actioncomplete : function (_self, action) {
102 if (action.type =='submit') {
106 if (_this.callback) {
107 _this.callback.call(_this, action.result);
115 render : function (_self) {
121 '|xns' : 'Roo.bootstrap',
127 '|xns' : 'Roo.bootstrap',
131 placeholder : _this._strings['643a860f992333b8600ea264aca7c4fc]',
136 specialkey : function (_self, e)
138 if(e.getKey() == 13){
139 _this.form.doAction('submit');
146 '|xns' : 'Roo.bootstrap',
147 inputType : 'password',
149 placeholder : _this._strings['dc647eb65e6711e155375218212b3964]',
154 specialkey : function (_self, e)
156 if(e.getKey() == 13){
157 _this.form.doAction('submit');
175 '|xns' : 'Roo.bootstrap',
178 style : 'margin-top:20px;',
181 '|xns' : 'Roo.bootstrap',
187 '|xns' : 'Roo.bootstrap',
190 html : _this._strings['01a569ddc6cf67ddec2a683f0a5f5956]',
196 click : function () {
199 Hydra.Dialog.ForgotPassword.show({}, function(){
200 Roo.bootstrap.MessageBox.alert('Notice', 'The password has been sent to your email');
212 '|xns' : 'Roo.bootstrap',
217 '|xns' : 'Roo.bootstrap',
223 '|xns' : 'Roo.bootstrap',
225 style : 'margin-top:20px;',
227 html : _this._strings['5047040b025ce0295b58d42250014417]',