Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15619 | Rev 16822 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15619 Rev 16747
Línea 4... Línea 4...
4
 
4
 
5
$roleName = $currentUser->getUserTypeId();
5
$roleName = $currentUser->getUserTypeId();
Línea 6... Línea 6...
6
$routeDatatable = $this->url('reports/users-blocked');
6
$routeDatatable = $this->url('reports/users-blocked');
7
 
7
 
8
$allowDownload  = $acl->isAllowed($roleName, 'reports/users-blocked/excel') ? 1 : 0;
8
$allowDownload  = $acl->isAllowed($roleName, 'reports/users-blocked/excel') ? 1 : 0;
Línea 9... Línea 9...
9
$allowEdit      = $acl->isAllowed($roleName, 'reports/users-blocked/edit') ? 1 : 0;
9
//$allowEdit      = $acl->isAllowed($roleName, 'reports/users-blocked/edit') ? 1 : 0;
10
$allowDelete      = $acl->isAllowed($roleName, 'reports/users-blocked/delete') ? 1 : 0;
10
//$allowDelete      = $acl->isAllowed($roleName, 'reports/users-blocked/delete') ? 1 : 0;
11
 
11
 
Línea 113... Línea 113...
113
 
113
 
114
 
114
 
Línea 115... Línea 115...
115
 
115
 
116
 
116
 
117
 
117
 
118
    var allowEdit   = $allowEdit;
118
   // var allowEdit   = $allowEdit;
Línea 245... Línea 245...
245
                    'targets': -1,
245
                    'targets': -1,
246
                    'orderable': false,
246
                    'orderable': false,
247
                    'render' : function ( data, type, row ) {
247
                    'render' : function ( data, type, row ) {
248
                        s = '';
248
                        s = '';
Línea -... Línea 249...
-
 
249
    
249
    
250
/*
250
                        if(allowEdit) {
251
                        if(allowEdit) {
251
                            s = s + '<button class="btn btn-primary btn-edit" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
252
                            s = s + '<button class="btn btn-primary btn-edit" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
252
                        }
253
                        }
253
                        if(allowDelete) {
254
                        if(allowDelete) {
254
                            s = s + '<button class="btn btn-danger btn-delete" data-href="' + data['link_delete']+ '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button>&nbsp;';
255
                            s = s + '<button class="btn btn-danger btn-delete" data-href="' + data['link_delete']+ '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button>&nbsp;';
-
 
256
                        }
255
                        }
257
*/
256
                        return s;
258
                        return s;
257
                    }
259
                    }
258
                }
260
                }
259
              ],
261
              ],