Revert "Pman.Tab.AdminLogEvents.bjs"
[Pman.Admin] / Pman.Tab.Group_Rights.js
index 79ad976..3ae34ad 100644 (file)
@@ -36,7 +36,7 @@ Pman.ColModels.Group_RightsRenderer =  function(v, c, r, ri, ci, st) {
             return '';
         }
         
-        return '<img class="x-grid-check-icon' + state + '" src="' + Ext.BLANK_IMAGE_URL + '"/>';
+        return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
         
         
 };
@@ -122,6 +122,20 @@ Pman.Tab.Group_Rights = {
                         'width' : 50,
                         renderer : Pman.ColModels.Group_RightsRenderer
                     },
+                    
+                    {
+                        'id' : 'group-rights-module',
+                        header : "Module",
+                        dataIndex : 'rightname',
+                        'sortable' : false,
+                        'width' : 50,
+                        renderer : function(v,x,r)
+                        {
+                            return String.format('<span qtip="{1}">{0}</span>',
+                                v.split('.').shift(), v);
+                        }
+                    },
+                    
                     {
                         'id' : 'group_rights-rightname',
                         header : "Permission",
@@ -136,37 +150,13 @@ Pman.Tab.Group_Rights = {
                             
                             
                             // this needs to be generated by the modules..
-                            switch(v) {
-                                case   'Documents.Document_Manager': return "Document Manager";
-                                case   'Documents.Documents': return "Documents";
-                                case   'Documents.Unread_Documents': return "Unread Documents";
-                                case   'Documents.Distribute_Documents': return "Distribute Documents";
-                                case   'Documents.Work_In_Progress': return "Work In Progress";
-                                
-                                case   'Documents.Project_Directory': return "Project Directory";
-                                    
-                                 
-                                case   'Fax.Fax': return "Fax";
-                                case   'Fax.Fax_To_Company': return "Send Faxes To Companies";
-                                case   'Timesheet.Timesheet': return "Timesheet";
-                                
-                                case   'Admin.Admin_Tab':   return "Admin Tab";  
-                                case   'Core.Person': return "Person";
-                                case   'Core.Offices': return "Offices";
-                                case   'Core.Companies': return "Companies";
-                                    
-                                case   'Core.Staff': return "Staff";
-                                case   'Core.Groups': return "Groups";
-                               
-                                case   'Core.Events':   return "Events";
-                                default : 
-                                    if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
-                                        return String.format('{0}',Pman.rightNames[v]);
-                                    }
-                                    
-                                    return '???' + v;
-                                     
+                            /*
+                            if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
+                                return String.format('{0}',Pman.rightNames[v]);
                             }
+                            */
+                            return '???' + v;
+                             
                             
                             
                         }