Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16815 Rev 16822
Línea 14... Línea 14...
14
$allowChangePassword    = $acl->isAllowed($roleName, 'users/change-password') ? 1 : 0;
14
$allowChangePassword    = $acl->isAllowed($roleName, 'users/change-password') ? 1 : 0;
15
$allowUnblock           = $acl->isAllowed($roleName, 'users/unblock') ? 1 : 0;
15
$allowUnblock           = $acl->isAllowed($roleName, 'users/unblock') ? 1 : 0;
16
$allowUpload            = $acl->isAllowed($roleName, 'users/upload') ? 1 : 0;
16
$allowUpload            = $acl->isAllowed($roleName, 'users/upload') ? 1 : 0;
17
$allowChangeType        = $acl->isAllowed($roleName, 'users/change-type') ? 1 : 0;
17
$allowChangeType        = $acl->isAllowed($roleName, 'users/change-type') ? 1 : 0;
Línea 18... Línea 18...
18
 
18
 
19
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 20... Línea 20...
20
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
Línea 21... Línea 21...
21
 
21
 
22
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
23
 
23
 
Línea 24... Línea 24...
24
 
24
 
25
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
Línea 26... Línea 26...
26
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
26
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
28
 
28
 
29
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
29
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
Línea 30... Línea 30...
30
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
30
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
31
 
31
 
Línea 32... Línea -...
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
-
 
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
Línea 34... Línea -...
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
-
 
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
-
 
Línea -... Línea 32...
-
 
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
-
 
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
34
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
-
 
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
36
 
36
 
37
 
37
 
38
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
38
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
39
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
39
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
40
 
40
 
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
41
 
Línea 42... Línea 42...
42
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
42
 
Línea 43... Línea 43...
43
 
43
 
Línea 195... Línea 195...
195
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
195
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
196
                },
196
                },
197
            },
197
            },
198
            'drawCallback': function( settings ) {
198
            'drawCallback': function( settings ) {
199
                NProgress.done();
199
                NProgress.done();
200
                $('button.btn-unblock').confirmation({
-
 
201
                    rootSelector: 'button.btn-unblock',
-
 
202
                    title : 'LABEL_ARE_YOU_SURE',
-
 
203
                    singleton : true,
-
 
204
                    btnOkLabel: 'LABEL_YES',
-
 
205
                    btnCancelLabel: 'LABEL_NO',
-
 
206
                    onConfirm: function(value) {
-
 
207
                        action = $(this).data('href');
-
 
208
                        NProgress.start();
-
 
209
                        $.ajax({
-
 
210
                            'dataType'  : 'json',
-
 
211
                            'accept'    : 'application/json',
-
 
-
 
200
                
212
                            'method'    : 'post',
-
 
213
                            'url'       :  action,
-
 
214
                        }).done(function(response) {
-
 
215
                            if(response['success']) {
-
 
216
                                $.fn.showSuccess(response['data']);
-
 
217
                                gridTable.api().ajax.reload(null, false);
-
 
218
                            } else {
-
 
219
                                $.fn.showError(response['data']);
-
 
220
                            }
-
 
221
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
222
                            $.fn.showError(textStatus);
-
 
223
                        }).always(function() {
-
 
224
                            NProgress.done();
-
 
225
                        });
-
 
226
                    },
-
 
227
                });
-
 
228
            },
201
            },
229
            'aoColumns': [
202
            'aoColumns': [
230
                { 'mDataProp': 'first_name' },
203
                { 'mDataProp': 'first_name' },
231
                { 'mDataProp': 'last_name' },
204
                { 'mDataProp': 'last_name' },
232
                { 'mDataProp': 'email' },
205
                { 'mDataProp': 'email' },
Línea 462... Línea 435...
462
        $('body').on('click', 'button.btn-refresh', function(e) {
435
        $('body').on('click', 'button.btn-refresh', function(e) {
463
            e.preventDefault();
436
            e.preventDefault();
464
            gridTable.api().ajax.reload(null, false);
437
            gridTable.api().ajax.reload(null, false);
465
        });
438
        });
Línea -... Línea 439...
-
 
439
        
-
 
440
 $('body').on('click', 'button.btn-unblock', function(e) { 
-
 
441
        e.preventDefault();
Línea -... Línea 442...
-
 
442
        var action = $(this).data('href');
-
 
443
 
-
 
444
 
-
 
445
          swal.fire({
-
 
446
            title: 'LABEL_ARE_YOU_SURE',
-
 
447
            icon: 'question',
-
 
448
            cancelButtonText: 'LABEL_NO',
-
 
449
            showCancelButton: true,
-
 
450
            confirmButtonText: 'LABEL_YES'
-
 
451
          }).then((result) => {
-
 
452
            if (result.isConfirmed) {
-
 
453
 
-
 
454
                    NProgress.start();
-
 
455
                    $.ajax({
-
 
456
                        'dataType'  : 'json',
-
 
457
                        'accept'    : 'application/json',
-
 
458
                        'method'    : 'post',
-
 
459
                        'url'       :  action,
-
 
460
                    }).done(function(response) {
-
 
461
                        if(response['success']) {
-
 
462
                            $.fn.showSuccess(response['data']);
-
 
463
                            gridTable.api().ajax.reload(null, false);
-
 
464
                        } else {
-
 
465
                            $.fn.showError(response['data']);
-
 
466
                        }
-
 
467
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
468
                        $.fn.showError(textStatus);
-
 
469
                    }).always(function() {
-
 
470
                        NProgress.done();
-
 
471
                    });
-
 
472
            }
466
        
473
       });
467
 
474
    });
468
 
475
 
469
    $('body').on('click', 'button.btn-cancel-modal', function(e) {
476
    $('body').on('click', 'button.btn-cancel-modal', function(e) {
470
        e.preventDefault();
477
        e.preventDefault();
Línea 721... Línea 728...
721
        <div class="modal-content">
728
        <div class="modal-content">
Línea 722... Línea 729...
722
 
729
 
723
            <!-- Modal Header -->
730
            <!-- Modal Header -->
724
            <div class="modal-header">
731
            <div class="modal-header">
725
                <h4 class="modal-title">LABEL_USERS</h4>
732
                <h4 class="modal-title">LABEL_USERS</h4>
726
                <button type="button" class="close" data-dismiss="modal">&times;</button>
733
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 727... Línea 734...
727
            </div>
734
            </div>
728
 
735
 
729
            <!-- Modal body -->
736
            <!-- Modal body -->
Línea 798... Línea 805...
798
                <?php echo $this->form()->closeTag($form); ?>
805
                <?php echo $this->form()->closeTag($form); ?>
799
            </div>
806
            </div>
Línea 800... Línea 807...
800
 
807
 
801
            <!-- Modal footer -->
808
            <!-- Modal footer -->
802
            <div class="modal-footer">
809
            <div class="modal-footer">
803
                <button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
810
                 <button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button>
Línea 804... Línea 811...
804
            </div>
811
            </div>
805
 
812
 
806
        </div>
813
        </div>
Línea 868... Línea 875...
868
        <div class="modal-content">
875
        <div class="modal-content">
Línea 869... Línea 876...
869
 
876
 
870
            <!-- Modal Header -->
877
            <!-- Modal Header -->
871
            <div class="modal-header">
878
            <div class="modal-header">
872
                <h3 class="modal-title">LABEL_USERS</h3>
879
                <h3 class="modal-title">LABEL_USERS</h3>
873
                <button type="button" class="close" data-dismiss="modal">&times;</button>
880
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 874... Línea 881...
874
            </div>
881
            </div>
875
 
882
 
876
            <!-- Modal body -->
883
            <!-- Modal body -->
877
            <div class="modal-body">
884
            <div class="modal-body">
878
                <form>
885
                <form>
879
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
886
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
880
                </form>
887
                </form>
881
                <div style="height: 300px;overflow: scroll;">
888
                <div style="height: 300px;overflow: scroll;">
882
                    <table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered table-hover">
889
                    <table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered">
883
                        <thead>
890
                        <thead>
884
                            <tr>
891
                            <tr>
885
                                <th>LABEL_FIRST_NAME</th>
892
                                <th>LABEL_FIRST_NAME</th>
Línea 914... Línea 921...
914
        <div class="modal-content">
921
        <div class="modal-content">
Línea 915... Línea 922...
915
 
922
 
916
            <!-- Modal Header -->
923
            <!-- Modal Header -->
917
            <div class="modal-header">
924
            <div class="modal-header">
918
                <h4 class="modal-title">LABEL_USERS</h4>
925
                <h4 class="modal-title">LABEL_USERS</h4>
919
                <button type="button" class="close" data-dismiss="modal">&times;</button>
926
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 920... Línea 927...
920
            </div>
927
            </div>
921
 
928
 
922
            <!-- Modal body -->
929
            <!-- Modal body -->
Línea 949... Línea 956...
949
                <?php echo $this->form()->closeTag($form); ?>
956
                <?php echo $this->form()->closeTag($form); ?>
950
            </div>
957
            </div>
Línea 951... Línea 958...
951
 
958
 
952
            <!-- Modal footer -->
959
            <!-- Modal footer -->
953
            <div class="modal-footer">
960
            <div class="modal-footer">
954
                <button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
961
                 <button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button>
Línea 955... Línea 962...
955
            </div>
962
            </div>
956
 
963
 
957
        </div>
964
        </div>
958
    </div>
965
    </div>