Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16791 Rev 16822
Línea 18... Línea 18...
18
$allowDelete            = $acl->isAllowed($roleName, 'jobs-description/delete') ? 1 : 0;
18
$allowDelete            = $acl->isAllowed($roleName, 'jobs-description/delete') ? 1 : 0;
19
$allowReport            = $acl->isAllowed($roleName, 'jobs-description/report') ? 1 : 0;
19
$allowReport            = $acl->isAllowed($roleName, 'jobs-description/report') ? 1 : 0;
20
$allowImport            = $acl->isAllowed($roleName, 'jobs-description/import') ? 1 : 0;
20
$allowImport            = $acl->isAllowed($roleName, 'jobs-description/import') ? 1 : 0;
Línea 21... Línea 21...
21
 
21
 
22
 
22
 
23
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
23
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 24... Línea 24...
24
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
25
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
26
 
26
 
Línea 27... Línea 27...
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
28
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
Línea 29... Línea 29...
29
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
30
 
30
 
31
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
31
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
32
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
32
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 33... Línea 33...
33
 
33
 
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
34
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
Línea 35... Línea -...
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
36
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
-
 
Línea 37... Línea -...
37
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
-
 
38
 
-
 
39
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
-
 
Línea -... Línea 35...
-
 
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
-
 
38
 
-
 
39
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
40
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
40
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
Línea 41... Línea 41...
41
 
41
 
42
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
-
 
-
 
42
 
Línea 43... Línea 43...
43
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
43
 
44
 
44
 
Línea 45... Línea 45...
45
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
45
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.js'));
46
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/i18n/es.js'));
46
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/i18n/es.js'));
Línea 47... Línea 47...
47
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
47
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.css'));
48
 
48
 
Línea 504... Línea 504...
504
        });
504
        });
505
    });
505
    });
Línea 506... Línea 506...
506
 
506
 
507
    $.fn.deleteJobDescription = function(action)
507
    $.fn.deleteJobDescription = function(action)
508
    {
508
    {
509
        bootbox.confirm({
509
        swal.fire({
510
            message: 'LABEL_ARE_YOU_SURE',
-
 
511
            buttons: {
510
            title: 'LABEL_ARE_YOU_SURE',
512
                confirm: {
511
            icon: 'question',
513
                    label: 'LABEL_YES',
-
 
514
                    className: 'btn-success'
-
 
515
                },
512
            cancelButtonText: 'LABEL_NO',
516
                cancel: {
513
            showCancelButton: true,
517
                    label: 'LABEL_NO',
-
 
518
                    className: 'btn-danger'
-
 
519
                }
-
 
520
            },
514
            confirmButtonText: 'LABEL_YES'
521
            callback: function (result) {
515
          }).then((result) => {
522
                if(result) {
516
            if (result.isConfirmed) {
523
                    NProgress.start();
517
                    NProgress.start();
524
                    $.ajax({
518
                    $.ajax({
525
                        'dataType'  : 'json',
519
                        'dataType'  : 'json',
526
                        'accept'    : 'application/json',
520
                        'accept'    : 'application/json',
Línea 636... Línea 630...
636
 
630
 
637
    $('body').on('click', 'i.btn-delete-job-description', function(e) {
631
    $('body').on('click', 'i.btn-delete-job-description', function(e) {
638
        e.preventDefault();
632
        e.preventDefault();
Línea 639... Línea 633...
639
        var action = $(this).data('link');
633
        var action = $(this).data('link');
640
 
634
 
641
        bootbox.confirm({
-
 
642
            message: 'LABEL_ARE_YOU_SURE',
635
          swal.fire({
643
            buttons: {
636
            title: 'LABEL_ARE_YOU_SURE',
644
                confirm: {
-
 
645
                    label: 'LABEL_YES',
-
 
646
                    className: 'btn-success'
637
            icon: 'question',
647
                },
638
            cancelButtonText: 'LABEL_NO',
648
                cancel: {
-
 
649
                    label: 'LABEL_NO',
-
 
650
                    className: 'btn-danger'
-
 
651
                }
639
            showCancelButton: true,
652
            },
640
            confirmButtonText: 'LABEL_YES'
653
            callback: function (result) {
641
          }).then((result) => {
654
                if(result) {
642
            if (result.isConfirmed) {
655
                    NProgress.start();
643
                    NProgress.start();
656
                    $.ajax({
644
                    $.ajax({
657
                        'dataType': 'json',
645
                        'dataType': 'json',
Línea 680... Línea 668...
680
 
668
 
681
    $('body').on('click', 'button.btn-delete-job-description-competency', function(e) {
669
    $('body').on('click', 'button.btn-delete-job-description-competency', function(e) {
Línea 682... Línea 670...
682
        e.preventDefault();
670
        e.preventDefault();
683
    
671
    
684
        var uuid = $(this).data('competency');
672
        var uuid = $(this).data('competency');
685
        bootbox.confirm({
673
          swal.fire({
686
             title: 'LABEL_COMPETENCY_DELETE_TITLE',
674
            title: 'LABEL_COMPETENCY_DELETE_TITLE',
687
            message: 'LABEL_COMPETENCY_DELETE_MESSAGE',
675
            message: 'LABEL_COMPETENCY_DELETE_MESSAGE',
688
            buttons: {
-
 
689
                cancel: {
676
            icon: 'question',
690
                    label: '<i class="fa fa-times"></i> LABEL_CANCEL'
677
            cancelButtonText: 'LABEL_NO',
691
                },
-
 
692
                confirm: {
-
 
693
                    label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
-
 
694
                }
678
            showCancelButton: true,
695
            },
679
            confirmButtonText: 'LABEL_YES'
696
            callback: function(result) {
680
          }).then((result) => {
Línea 697... Línea 681...
697
                if (result) {
681
            if (result.isConfirmed) {
698
                    competencies_selected = competencies_selected.filter((item) => item.uuid != uuid ? item : false);
682
                    competencies_selected = competencies_selected.filter((item) => item.uuid != uuid ? item : false);
Línea 699... Línea -...
699
       
-
 
700
                
683
       
701
                    $.fn.renderCompetencies();
684
                
702
                    $.fn.comboCompetencies();
685
                    $.fn.renderCompetencies();
Línea 703... Línea 686...
703
           
686
                    $.fn.comboCompetencies();
Línea 981... Línea 964...
981
                          <label for="behavior-value">LABEL_LEVEL</label>
964
                          <label for="behavior-value">LABEL_LEVEL</label>
982
                          <input type="number" step="1" min="0" max="100" id="level" name="level">
965
                          <input type="number" step="1" min="0" max="100" id="level" name="level">
983
                    </div>
966
                    </div>
984
                    <div class="modal-footer">
967
                    <div class="modal-footer">
985
                        <button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
968
                        <button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
986
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
969
                        <button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
987
                    </div>
970
                    </div>
988
            	</div>
971
            	</div>
989
        	</div>
972
        	</div>
990
    	</div>
973
    	</div>
991
	</form>
974
	</form>