Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3113 Rev 3114
Línea 2... Línea 2...
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
4
$roleName       = $currentUser->getUserTypeId();
4
$roleName       = $currentUser->getUserTypeId();
Línea 5... Línea 5...
5
 
5
 
6
$routeIndex = $this->url('recruitment-and-selection/interview/form');
6
$routeIndex = $this->url('recruitment-and-selection/interview/form');
Línea 7... Línea 7...
7
$routeAdd = $this->url('recruitment-and-selection/interview/form/add', ['candidate_uuid' => 'UUID_PLACEHOLDER']);
7
$routeAdd = $this->url('recruitment-and-selection/interview/form/add');
8
 
8
 
9
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
9
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
Línea 124... Línea 124...
124
        'ajax': {
124
        'ajax': {
125
            'url': '$routeDatatable',
125
            'url': '$routeDatatable',
126
            'type': 'get',
126
            'type': 'get',
127
            'beforeSend': function(request) {
127
            'beforeSend': function(request) {
128
                NProgress.start();
128
                NProgress.start();
-
 
129
            },
-
 
130
            'dataFilter': function(response) {
-
 
131
                var response = jQuery.parseJSON(response);
-
 
132
                var json = {};
-
 
133
                json.recordsTotal = 0;
-
 
134
                json.recordsFiltered = 0;
-
 
135
                json.data = [];
-
 
136
                if (response.success) {
-
 
137
                    json.recordsTotal = response.data.total;
-
 
138
                    json.recordsFiltered = response.data.total;
-
 
139
                    json.data = response.data.items;
-
 
140
                } else {
-
 
141
                    $.fn.showError(response.data)
-
 
142
                }
-
 
143
                return JSON.stringify(json);
129
            }
144
            }
130
           
-
 
131
        },
145
        },
132
        'language': {
146
        'language': {
133
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
147
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
134
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
148
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
135
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
149
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',