Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16768 Rev 16822
Línea 10... Línea 10...
10
$allowUpload = $acl->isAllowed($roleName, 'microlearning/access-for-students/upload') ? 1 : 0;
10
$allowUpload = $acl->isAllowed($roleName, 'microlearning/access-for-students/upload') ? 1 : 0;
11
$allowCancel = $acl->isAllowed($roleName, 'microlearning/access-for-students/cancel') ? 1 : 0;
11
$allowCancel = $acl->isAllowed($roleName, 'microlearning/access-for-students/cancel') ? 1 : 0;
12
$allowReactive = $acl->isAllowed($roleName, 'microlearning/access-for-students/reactive') ? 1 : 0;
12
$allowReactive = $acl->isAllowed($roleName, 'microlearning/access-for-students/reactive') ? 1 : 0;
13
$allowNotification = $acl->isAllowed($roleName, 'microlearning/access-for-students/notification') ? 1 : 0;
13
$allowNotification = $acl->isAllowed($roleName, 'microlearning/access-for-students/notification') ? 1 : 0;
Línea 14... Línea 14...
14
 
14
 
15
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
15
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 16... Línea -...
16
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
-
 
Línea 17... Línea -...
17
 
-
 
18
 
-
 
19
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
-
 
Línea -... Línea 16...
-
 
16
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
20
 
17
 
21
 
18
 
Línea 22... Línea -...
22
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
-
 
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
19
 
24
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
-
 
25
 
20
 
Línea -... Línea 21...
-
 
21
 
-
 
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
-
 
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
Línea 26... Línea -...
26
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
-
 
27
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
-
 
28
 
-
 
Línea -... Línea 25...
-
 
25
 
-
 
26
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
-
 
27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 29... Línea -...
29
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
-
 
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
-
 
Línea 31... Línea 28...
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
28
 
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
Línea 33... Línea -...
33
 
-
 
34
 
-
 
35
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
-
 
Línea 36... Línea -...
36
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
-
 
Línea -... Línea 30...
-
 
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
-
 
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
-
 
33
 
-
 
34
 
-
 
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
-
 
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
38
 
38
 
39
 
39
 
40
 
40
 
41
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
41
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
42
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
42
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
43
 
43
 
Línea 44... Línea 44...
44
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
44
 
45
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
45
 
Línea 233... Línea 233...
233
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
233
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
234
                },
234
                },
235
            },
235
            },
236
            'drawCallback': function( settings ) {
236
            'drawCallback': function( settings ) {
237
                NProgress.done();
237
                NProgress.done();
238
                $('button.btn-revoke').confirmation({
-
 
239
                    rootSelector: 'button.btn-revoke',
-
 
240
                    title : 'LABEL_ARE_YOU_SURE',
-
 
241
                    singleton : true,
-
 
242
                    btnOkLabel: 'LABEL_YES',
-
 
243
                    btnCancelLabel: 'LABEL_NO',
-
 
244
                    onConfirm: function(value) {
-
 
245
                        action = $(this).data('href');
-
 
246
                        NProgress.start();
-
 
247
                        $.ajax({
-
 
248
                            'dataType'  : 'json',
-
 
249
                            'accept'    : 'application/json',
-
 
250
                            'method'    : 'post',
-
 
251
                            'url'       :  action,
-
 
252
                        }).done(function(response) {
-
 
253
                            if(response['success']) {
-
 
254
                                $.fn.showSuccess(response['data']);
-
 
255
                                gridTable.api().ajax.reload(null, false);
-
 
256
                            } else {
-
 
257
                                $.fn.showError(response['data']);
-
 
258
                            }
-
 
259
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
260
                            $.fn.showError(textStatus);
-
 
261
                        }).always(function() {
-
 
262
                            NProgress.done();
-
 
263
                        });
-
 
264
                    },
-
 
265
                });
-
 
266
                $('button.btn-unlimit').confirmation({
-
 
267
                    rootSelector: 'button.btn-unlimit',
-
 
268
                    title : 'LABEL_ARE_YOU_SURE',
-
 
269
                    singleton : true,
-
 
270
                    btnOkLabel: 'LABEL_YES',
-
 
271
                    btnCancelLabel: 'LABEL_NO',
-
 
272
                    onConfirm: function(value) {
-
 
273
                        action = $(this).data('href');
-
 
274
                        NProgress.start();
-
 
275
                        $.ajax({
-
 
276
                            'dataType'  : 'json',
-
 
277
                            'accept'    : 'application/json',
-
 
278
                            'method'    : 'post',
-
 
279
                            'url'       :  action,
-
 
280
                        }).done(function(response) {
-
 
281
                            if(response['success']) {
-
 
282
                                $.fn.showSuccess(response['data']);
-
 
283
                                gridTable.api().ajax.reload(null, false);
-
 
284
                            } else {
-
 
285
                                $.fn.showError(response['data']);
-
 
286
                            }
-
 
287
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
288
                            $.fn.showError(textStatus);
-
 
289
                        }).always(function() {
-
 
290
                            NProgress.done();
-
 
291
                        });
-
 
292
                    },
-
 
293
                });
-
 
-
 
238
                
294
            },
239
            },
295
            'aoColumns': [
240
            'aoColumns': [
296
                { 'mDataProp': 'uuid' },
241
                { 'mDataProp': 'uuid' },
297
                { 'mDataProp': 'first_name' },
242
                { 'mDataProp': 'first_name' },
298
                { 'mDataProp': 'last_name' },
243
                { 'mDataProp': 'last_name' },
Línea 627... Línea 572...
627
 
572
 
628
    $('body').on('click', 'button.btn-refresh', function(e) {
573
    $('body').on('click', 'button.btn-refresh', function(e) {
629
        e.preventDefault();
574
        e.preventDefault();
630
        gridTable.api().ajax.reload(null, false);
575
        gridTable.api().ajax.reload(null, false);
-
 
576
    });
-
 
577
 
-
 
578
     $('body').on('click', 'button.btn-delete', function(e) { 
-
 
579
        e.preventDefault();
-
 
580
        var action = $(this).data('href');
-
 
581
 
-
 
582
 
-
 
583
          swal.fire({
-
 
584
            title: 'LABEL_ARE_YOU_SURE',
-
 
585
            icon: 'question',
-
 
586
            cancelButtonText: 'LABEL_NO',
-
 
587
            showCancelButton: true,
-
 
588
            confirmButtonText: 'LABEL_YES'
-
 
589
          }).then((result) => {
-
 
590
            if (result.isConfirmed) {
-
 
591
 
-
 
592
                    NProgress.start();
-
 
593
                    $.ajax({
-
 
594
                        'dataType'  : 'json',
-
 
595
                        'accept'    : 'application/json',
-
 
596
                        'method'    : 'post',
-
 
597
                        'url'       :  action,
-
 
598
                    }).done(function(response) {
-
 
599
                        if(response['success']) {
-
 
600
                            $.fn.showSuccess(response['data']);
-
 
601
                            gridTable.api().ajax.reload(null, false);
-
 
602
                        } else {
-
 
603
                            $.fn.showError(response['data']);
-
 
604
                        }
-
 
605
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
606
                        $.fn.showError(textStatus);
-
 
607
                    }).always(function() {
-
 
608
                        NProgress.done();
-
 
609
                    });
-
 
610
            }
-
 
611
       });
-
 
612
    });
-
 
613
 
-
 
614
    $('body').on('click', 'button.btn-unlimit', function(e) { 
-
 
615
        e.preventDefault();
-
 
616
        var action = $(this).data('href');
-
 
617
 
-
 
618
 
-
 
619
          swal.fire({
-
 
620
            title: 'LABEL_ARE_YOU_SURE',
-
 
621
            icon: 'question',
-
 
622
            cancelButtonText: 'LABEL_NO',
-
 
623
            showCancelButton: true,
-
 
624
            confirmButtonText: 'LABEL_YES'
-
 
625
          }).then((result) => {
-
 
626
            if (result.isConfirmed) {
-
 
627
 
-
 
628
                    NProgress.start();
-
 
629
                    $.ajax({
-
 
630
                        'dataType'  : 'json',
-
 
631
                        'accept'    : 'application/json',
-
 
632
                        'method'    : 'post',
-
 
633
                        'url'       :  action,
-
 
634
                    }).done(function(response) {
-
 
635
                        if(response['success']) {
-
 
636
                            $.fn.showSuccess(response['data']);
-
 
637
                            gridTable.api().ajax.reload(null, false);
-
 
638
                        } else {
-
 
639
                            $.fn.showError(response['data']);
-
 
640
                        }
-
 
641
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
642
                        $.fn.showError(textStatus);
-
 
643
                    }).always(function() {
-
 
644
                        NProgress.done();
-
 
645
                    });
-
 
646
            }
-
 
647
       });
631
    });
648
    });
632
});
649
});
633
JS;
650
JS;
634
$this->inlineScript()->captureEnd();
651
$this->inlineScript()->captureEnd();
Línea 731... Línea 748...
731
    	<div class="modal-content">
748
    	<div class="modal-content">
Línea 732... Línea 749...
732
 
749
 
733
            <!-- Modal Header -->
750
            <!-- Modal Header -->
734
      		<div class="modal-header">
751
      		<div class="modal-header">
735
        		<h4 class="modal-title">LABEL_PUSH_NOTIFICATION</h4>
752
        		<h4 class="modal-title">LABEL_PUSH_NOTIFICATION</h4>
736
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
753
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 737... Línea 754...
737
      		</div>
754
      		</div>
738
 
755
 
739
            <!-- Modal body -->
756
            <!-- Modal body -->
Línea 789... Línea 806...
789
    	<div class="modal-content">
806
    	<div class="modal-content">
Línea 790... Línea 807...
790
 
807
 
791
            <!-- Modal Header -->
808
            <!-- Modal Header -->
792
      		<div class="modal-header">
809
      		<div class="modal-header">
793
        		<h4 class="modal-title">LABEL_UPLOAD</h4>
810
        		<h4 class="modal-title">LABEL_UPLOAD</h4>
794
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
811
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 795... Línea 812...
795
      		</div>
812
      		</div>
796
 
813
 
797
            <!-- Modal body -->
814
            <!-- Modal body -->
Línea 850... Línea 867...
850
    	<div class="modal-content">
867
    	<div class="modal-content">
Línea 851... Línea 868...
851
 
868
 
852
            <!-- Modal Header -->
869
            <!-- Modal Header -->
853
      		<div class="modal-header">
870
      		<div class="modal-header">
854
        		<h4 class="modal-title">LABEL_CUSTOMERS</h4>
871
        		<h4 class="modal-title">LABEL_CUSTOMERS</h4>
855
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
872
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 856... Línea 873...
856
      		</div>
873
      		</div>
857
 
874
 
858
            <!-- Modal body -->
875
            <!-- Modal body -->
Línea 870... Línea 887...
870
      			</form>
887
      			</form>
Línea 871... Línea 888...
871
      			
888
      			
872
      			
889
      			
873
      			
890
      			
874
      			<div style="height: 300px;overflow: scroll;"> 
891
      			<div style="height: 300px;overflow: scroll;"> 
875
    				<table id="gridTableUploadCustomers" style="width: 100%" class="table table-bordered table-hover">
892
    				<table id="gridTableUploadCustomers" style="width: 100%" class="table table-bordered">
876
                		<thead>
893
                		<thead>
877
                			<tr>
894
                			<tr>