PHP8
[Pman.BAdmin] / Pman.Dialog.PersonEditor.js
index 498f5e8..5b0cb45 100644 (file)
@@ -8,8 +8,17 @@ Pman.Dialog.PersonEditor= function() {}
 Roo.apply(Pman.Dialog.PersonEditor.prototype, {
 
  _strings : {
+  'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
+  'abb1d799e06329cb0c38276ea918300b' :"Secure passwords",
+  'bcc254b55c4a1babdf1dcb82c207506b' :"Phone",
+  'dc647eb65e6711e155375218212b3964' :"Password",
+  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
+  'bbbabdbe1b262f75d99d62880b953be1' :"Role",
+  '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor",
   '49ee3087348e8d44e1feda1917443987' :"Name",
-  '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor"
+  '1f9a645ca5ecbde5f93612791b54218f' :"Password (Retype)",
+  'c9cc8cce247e49bae79f15173ce97354' :"Save",
+  '9810aa2b9f44401be4bf73188ef2b67d' :"Fax"
  },
 
  dialog : false,
@@ -49,9 +58,22 @@ Roo.apply(Pman.Dialog.PersonEditor.prototype, {
     buttons : [
      {
       xtype : 'Button',
-      cls : '',
-      prop : button[],
-      style : '',
+      html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+      style : 'float: right; margin: 10px; width: 70px;',
+      weight : 'primary',
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+        }
+      },
+      xns : Roo.bootstrap,
+      '|xns' : 'Roo.bootstrap'
+     },
+     {
+      xtype : 'Button',
+      html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
+      style : 'float: right; margin: 10px; width: 70px;',
       weight : 'primary',
       xns : Roo.bootstrap,
       '|xns' : 'Roo.bootstrap'
@@ -60,6 +82,12 @@ Roo.apply(Pman.Dialog.PersonEditor.prototype, {
     items  : [
      {
       xtype : 'Form',
+      listeners : {
+       render : function (_self)
+        {
+            _this.form = _self;
+        }
+      },
       xns : Roo.bootstrap,
       '|xns' : 'Roo.bootstrap',
       items  : [
@@ -71,13 +99,14 @@ Roo.apply(Pman.Dialog.PersonEditor.prototype, {
         items  : [
          {
           xtype : 'Container',
-          cls : 'col-sm-12',
+          cls : 'col-md-12',
           xns : Roo.bootstrap,
           '|xns' : 'Roo.bootstrap',
           items  : [
            {
             xtype : 'Input',
             fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
+            labelAlign : 'left',
             name : 'name',
             listeners : {
              render : function (_self)
@@ -87,12 +116,126 @@ Roo.apply(Pman.Dialog.PersonEditor.prototype, {
             },
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['bbbabdbe1b262f75d99d62880b953be1'] /* Role */,
+            labelAlign : 'left',
+            name : 'role',
+            listeners : {
+             render : function (_self)
+              {
+                  _this.role = self;
+              }
+            },
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['bcc254b55c4a1babdf1dcb82c207506b'] /* Phone */,
+            labelAlign : 'left',
+            name : 'phone',
+            listeners : {
+             render : function (_self)
+              {
+                  _this.phone = self;
+              }
+            },
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['9810aa2b9f44401be4bf73188ef2b67d'] /* Fax */,
+            labelAlign : 'left',
+            name : 'fax',
+            listeners : {
+             render : function (_self)
+              {
+                  _this.fax = self;
+              }
+            },
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
+            labelAlign : 'left',
+            name : 'email',
+            listeners : {
+             render : function (_self)
+              {
+                  _this.email = self;
+              }
+            },
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['dc647eb65e6711e155375218212b3964'] /* Password */,
+            inputType : 'password',
+            labelAlign : 'left',
+            name : 'passwd1',
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           },
+           {
+            xtype : 'Input',
+            fieldLabel : _this._strings['1f9a645ca5ecbde5f93612791b54218f'] /* Password (Retype) */,
+            inputType : 'password',
+            labelAlign : 'left',
+            name : 'passwd2',
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
+           }
+          ]
+         }
+        ]
+       },
+       {
+        xtype : 'Row',
+        cls : 'col-md-12',
+        xns : Roo.bootstrap,
+        '|xns' : 'Roo.bootstrap',
+        items  : [
+         {
+          xtype : 'Container',
+          cls : 'col-md-12',
+          xns : Roo.bootstrap,
+          '|xns' : 'Roo.bootstrap',
+          items  : [
+           {
+            xtype : 'Input',
+            align : 'left',
+            checked : true,
+            fieldLabel : _this._strings['abb1d799e06329cb0c38276ea918300b'] /* Secure passwords */,
+            inputType : 'checkbox',
+            labelAlign : 'left',
+            listeners : '{\n                    check : function (_self, checked) {\n                        this.form.findField(\'passwd1\').insecure = false;\n\n                        if(!checked){\n                            this.form.findField(\'passwd1\').insecure = true;\n                        }\n                    }\n                }\n',
+            name : 'secure_password',
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap'
            }
           ]
          }
         ]
        }
       ]
+     },
+     {
+      xtype : 'Row',
+      xns : Roo.bootstrap,
+      '|xns' : 'Roo.bootstrap',
+      items  : [
+       {
+        xtype : 'Column',
+        xns : Roo.bootstrap,
+        '|xns' : 'Roo.bootstrap'
+       }
+      ]
      }
     ]
    }  );