DataObjects/pman.links.ini
[Pman.Core] / Pman.Dialog.CoreCompanies.js
index 1e4ed55..ccd0e29 100644 (file)
@@ -37,7 +37,7 @@ Pman.Dialog.CoreCompanies = {
             height : 400,
             modal : true,
             shadow : 'true',
-            title : "Edit Company",
+            title : "Add / Edit Organization",
             width : 750,
             items : [
                 {
@@ -68,7 +68,7 @@ Pman.Dialog.CoreCompanies = {
                                    
                                     if (act.type == 'load') {
                                         _this.data = act.result.data;
-                                        var meth = _this.data.isOwner || !Pman.Login.isOwner() ? 'disable' : 'enable';
+                                        var meth = _this.data.comptype == 'OWNER' ? 'disable' : 'enable';
                                      
                                             
                                         if (_this.form.findField('comptype')) {
@@ -131,7 +131,7 @@ Pman.Dialog.CoreCompanies = {
                                             listWidth : 250,
                                             loadingText : "Searching...",
                                             minChars : 2,
-                                            name : 'comptype_display',
+                                            name : 'comptype_display_name',
                                             pageSize : 20,
                                             qtip : "Select type",
                                             queryParam : 'query[name]',
@@ -206,6 +206,15 @@ Pman.Dialog.CoreCompanies = {
                                             qtip : "Enter Email Address",
                                             width : 300
                                         },
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            allowBlank : true,
+                                            fieldLabel : 'Url',
+                                            name : 'url',
+                                            qtip : "Enter Url",
+                                            width : 300
+                                        },
                                         {
                                             xtype: 'TextField',
                                             xns: Roo.form,
@@ -234,7 +243,7 @@ Pman.Dialog.CoreCompanies = {
                                     width : 200,
                                     items : [
                                         {
-                                            xtype: 'TextField',
+                                            xtype: 'ColorField',
                                             xns: Roo.form,
                                             fieldLabel : 'Background Colour',
                                             name : 'background_color'
@@ -282,11 +291,6 @@ Pman.Dialog.CoreCompanies = {
                                         }
                                     ]
                                 },
-                                {
-                                    xtype: 'Hidden',
-                                    xns: Roo.form,
-                                    name : 'isOwner'
-                                },
                                 {
                                     xtype: 'Hidden',
                                     xns: Roo.form,