Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16804 Rev 16822
Línea 8... Línea 8...
8
 
8
 
9
 
9
 
Línea 10... Línea 10...
10
$allowTakeaTest = $acl->isAllowed($roleName, 'activities-center/recruitment-and-selection/take-a-test') ? 1 : 0;
10
$allowTakeaTest = $acl->isAllowed($roleName, 'activities-center/recruitment-and-selection/take-a-test') ? 1 : 0;
11
$allowReport =  $acl->isAllowed($roleName, 'activities-center/recruitment-and-selection/report') ? 1 : 0;
11
$allowReport =  $acl->isAllowed($roleName, 'activities-center/recruitment-and-selection/report') ? 1 : 0;
Línea 12... Línea -...
12
 
-
 
Línea 13... Línea -...
13
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
-
 
Línea -... Línea 12...
-
 
12
 
Línea 14... Línea -...
14
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
-
 
15
 
-
 
16
 
-
 
Línea -... Línea 13...
-
 
13
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
17
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
14
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
18
 
15
 
Línea 19... Línea -...
19
 
-
 
20
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
16
 
21
 
-
 
22
 
17
 
Línea -... Línea 18...
-
 
18
 
-
 
19
 
-
 
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
-
 
21
 
Línea 23... Línea -...
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
-
 
24
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
-
 
25
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
-
 
Línea 26... Línea 22...
26
 
22
 
27
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
28
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
Línea -... Línea 25...
-
 
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
29
 
26
 
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
Línea -... Línea 28...
-
 
28
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
-
 
29
 
Línea 31... Línea -...
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
Línea -... Línea 30...
-
 
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
-
 
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
34
 
34
 
Línea 35... Línea 35...
35
 
35
 
36
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
-
 
38
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
-
 
39
 
-
 
40
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
Línea 37... Línea -...
37
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
-
 
38
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
-
 
Línea 39... Línea -...
39
 
-
 
40
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
-
 
Línea 41... Línea 41...
41
//$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
41
//$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
Línea 42... Línea 42...
42
//$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
42
//$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
43
 
43
 
Línea 44... Línea 44...
44
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datepicker/js/bootstrap-datepicker.js'));
44
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datepicker/js/bootstrap-datepicker.js'));
Línea 45... Línea 45...
45
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datepicker/js/bootstrap-datepicker.es.js'));
45
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datepicker/js/bootstrap-datepicker.es.js'));
46
 
46
 
Línea 227... Línea 227...
227
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
227
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
228
                },
228
                },
229
            },
229
            },
230
            'drawCallback': function( settings ) {
230
            'drawCallback': function( settings ) {
231
                NProgress.done();
231
                NProgress.done();
232
                $('button.btn-delete').confirmation({
-
 
233
                    rootSelector: 'button.btn-delete',
-
 
234
                    title : 'LABEL_ARE_YOU_SURE',
-
 
235
                    singleton : true,
-
 
236
                    btnOkLabel: 'LABEL_YES',
-
 
237
                    btnCancelLabel: 'LABEL_NO',
-
 
238
                    onConfirm: function(value) {
-
 
239
                        action = $(this).data('href');
-
 
240
                        NProgress.start();
-
 
241
                        $.ajax({
-
 
242
                            'dataType'  : 'json',
-
 
243
                            'accept'    : 'application/json',
-
 
-
 
232
             
244
                            'method'    : 'post',
-
 
245
                            'url'       :  action,
-
 
246
                        }).done(function(response) {
-
 
247
                            if(response['success']) {
-
 
248
                                $.fn.showSuccess(response['data']);
-
 
249
                                gridTable.api().ajax.reload(null, false);
-
 
250
                            } else {
-
 
251
                                $.fn.showError(response['data']);
-
 
252
                            }
-
 
253
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
254
                            $.fn.showError(textStatus);
-
 
255
                        }).always(function() {
-
 
256
                            NProgress.done();
-
 
257
                        });
-
 
258
                    },
-
 
259
                });
-
 
Línea 260... Línea 233...
260
 
233
 
261
 
234
 
262
            },
235
            },
Línea 306... Línea 279...
306
        if(!ok) {
279
        if(!ok) {
307
            $.fn.showError('ERROR_PERFORMANCE_SOMEONE_COMMENT_IS_EMPTY');
280
            $.fn.showError('ERROR_PERFORMANCE_SOMEONE_COMMENT_IS_EMPTY');
308
            return false;
281
            return false;
309
        }
282
        }
Línea 310... Línea 283...
310
 
283
 
-
 
284
          swal.fire({
311
        bootbox.confirm({
285
            title: 'LABEL_ARE_YOU_SURE',
312
            message: 'LABEL_RECRUITMENT_AND_SELECTION_TEST_IS_COMPLETED',
-
 
313
            buttons: {
286
            message: 'LABEL_RECRUITMENT_AND_SELECTION_TEST_IS_COMPLETED',
314
                confirm: {
287
            icon: 'question',
315
                    label: 'LABEL_YES',
-
 
316
                    className: 'btn-success'
-
 
317
                },
288
            cancelButtonText: 'LABEL_NO',
318
                cancel: {
289
            showCancelButton: true,
319
                    label: 'LABEL_NO',
-
 
320
                    className: 'btn-warning'
-
 
321
                }
-
 
322
            },
290
            confirmButtonText: 'LABEL_YES'
323
            callback: function (result) {
291
          }).then((result) => {
-
 
292
            if (result.isConfirmed) {
-
 
293
 
324
                if(result) {
294
        
325
                    var data = new Array()
295
                    var data = new Array()
326
                    data['status'] = $('#status').val();
296
                    data['status'] = $('#status').val();
327
                    data['comment'] = $('#comment').val().trim();
297
                    data['comment'] = $('#comment').val().trim();
328
                    data['points'] = $('#points').val();
298
                    data['points'] = $('#points').val();
Línea 482... Línea 452...
482
                });
452
                });
Línea 483... Línea 453...
483
 
453
 
Línea -... Línea 454...
-
 
454
 
-
 
455
    });
-
 
456
 
-
 
457
    $('body').on('click', 'button.btn-delete', function(e) { 
-
 
458
        e.preventDefault();
-
 
459
        var action = $(this).data('href');
-
 
460
 
-
 
461
 
-
 
462
          swal.fire({
-
 
463
            title: 'LABEL_ARE_YOU_SURE',
-
 
464
            icon: 'question',
-
 
465
            cancelButtonText: 'LABEL_NO',
-
 
466
            showCancelButton: true,
-
 
467
            confirmButtonText: 'LABEL_YES'
-
 
468
          }).then((result) => {
-
 
469
            if (result.isConfirmed) {
-
 
470
 
-
 
471
                    NProgress.start();
-
 
472
                    $.ajax({
-
 
473
                        'dataType'  : 'json',
-
 
474
                        'accept'    : 'application/json',
-
 
475
                        'method'    : 'post',
-
 
476
                        'url'       :  action,
-
 
477
                    }).done(function(response) {
-
 
478
                        if(response['success']) {
-
 
479
                            $.fn.showSuccess(response['data']);
-
 
480
                            gridTable.api().ajax.reload(null, false);
-
 
481
                        } else {
-
 
482
                            $.fn.showError(response['data']);
-
 
483
                        }
-
 
484
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
485
                        $.fn.showError(textStatus);
-
 
486
                    }).always(function() {
-
 
487
                        NProgress.done();
-
 
488
                    });
-
 
489
            }
Línea 484... Línea 490...
484
 
490
       });
485
    });
491
 
486
 
492
    });
487
 
493
 
Línea 520... Línea 526...
520
        toolbar: {
526
        toolbar: {
521
            showNextButton: true, // show/hide a Next button
527
            showNextButton: true, // show/hide a Next button
522
            showPreviousButton: true, // show/hide a Previous button
528
            showPreviousButton: true, // show/hide a Previous button
523
            position: 'bottom', // none/ top/ both bottom
529
            position: 'bottom', // none/ top/ both bottom
524
            extraHtml: `<button type="button" class="btn btn-primary btn-save">LABEL_SAVE</button>`
530
            extraHtml: `<button type="button" class="btn btn-primary btn-save">LABEL_SAVE</button>`
525
                + `<button type="button" class="btn btn-secondary btn-cancel">LABEL_CANCEL</button>`
531
                + `<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>`
526
        },
532
        },
527
        anchor: {
533
        anchor: {
528
            enableNavigation: true, // Enable/Disable anchor navigation 
534
            enableNavigation: true, // Enable/Disable anchor navigation 
529
            enableNavigationAlways: false, // Activates all anchors clickable always
535
            enableNavigationAlways: false, // Activates all anchors clickable always
530
            enableDoneState: true, // Add done state on visited steps
536
            enableDoneState: true, // Add done state on visited steps
Línea 540... Línea 546...
540
});
546
});
541
JS;
547
JS;
542
$this->inlineScript()->captureEnd();
548
$this->inlineScript()->captureEnd();
543
?>
549
?>
Línea 544... Línea -...
544
 
-
 
545
<!-- Content Header (Page header) -->
-
 
-
 
550
 
546
<section id="row-header" class="content-header">
551
 
547
    <div class="container-fluid">
-
 
548
        <div class="row mb-2">
-
 
549
            <div class="col-sm-12">
-
 
550
                <h1>LABEL_RECRUITMENT_AND_SELECTION</h1>
-
 
551
            </div>
-
 
552
        </div>
552
<div class="container" id="row-lists">
553
    </div>
-
 
554
    <!-- /.container-fluid -->
553
 
555
</section>
-
 
556
<section id="row-table" class="content">
554
 
557
    <div class="container-fluid" id="row-lists">
-
 
558
        <div class="row">
555
		<div class="row" id="row-table">
559
            <div class="col-12">
556
            <div class="col-12">
-
 
557
                <div class="card">
560
                <div class="card">
558
                	<h6 class="card-title">LABEL_RECRUITMENT_AND_SELECTION</h6>
561
                    <div class="card-body">
559
                    <div class="card-body">
562
                        <table id="gridTable" class="table   table-hover">
560
                        <table id="gridTable" class="table   table-hover">
563
                            <thead>
561
                            <thead>
564
                                <tr>
562
                                <tr>
Línea 580... Línea 578...
580
                        </div>
578
                        </div>
581
                    </div>
579
                    </div>
582
                </div>
580
                </div>
583
            </div>
581
            </div>
584
        </div>
582
        </div>
585
    </div>
-
 
586
</section>
-
 
Línea 587... Línea -...
587
 
-
 
588
 
-
 
589
<section id="row-test" style="display: none;">
583
 
590
	<div class="container-fluid">
584
 
591
        <div class="row p-2">
585
        <div class="row p-2" id="row-test">
592
			<div class="col-12">
586
			<div class="col-12" >
593
				<h4 class="text-center" id="form-title"></h4>
587
				<h4 class="text-center" id="form-title"></h4>
594
   				<?php
588
   				<?php
595
                $form->setAttributes([
589
                $form->setAttributes([
Línea 670... Línea 664...
670
						</div>
664
						</div>
671
					</div>
665
					</div>
672
            	</div>
666
            	</div>
673
        	</div>
667
        	</div>
674
			<?php echo $this->form()->closeTag($form); ?>
668
			<?php echo $this->form()->closeTag($form); ?>
675
        
-
 
676
       
-
 
677
		</div>    
669
		</div>    
-
 
670
 
678
	</div>
671
</div>
-
 
672
 
679
</section>
673
 
Línea 680... Línea 674...
680
    
674
    
681
<script id="job-description-template" type="text/x-jsrender">
675
<script id="job-description-template" type="text/x-jsrender">
682
    <div class="card">
676
    <div class="card">
683
        <div class="card-body">
677
        <div class="card-body">