| Línea 13... |
Línea 13... |
| 13 |
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/capsules/delete') ? 1 : 0;
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/capsules/delete') ? 1 : 0;
|
| 14 |
$allowUsers = $acl->isAllowed($roleName, 'microlearning/content/capsules/users') ? 1 : 0;
|
14 |
$allowUsers = $acl->isAllowed($roleName, 'microlearning/content/capsules/users') ? 1 : 0;
|
| Línea 15... |
Línea 15... |
| 15 |
|
15 |
|
| 16 |
|
16 |
|
| 17 |
|
17 |
|
| Línea 18... |
Línea 18... |
| 18 |
$this->headLink()->setStylesheet($this->basePath('plugins/nelberth-editor/style.css'));
|
18 |
$this->headLink()->setStylesheet($this->basePath('assets/vendors/nelberth-editor/style.css'));
|
| Línea 19... |
Línea 19... |
| 19 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
19 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
| 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 |
|
| 24 |
|
24 |
|
| 25 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
|
25 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.min.css'));
|
| 26 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
26 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
| Línea 27... |
Línea 27... |
| 27 |
|
27 |
|
| 28 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
|
28 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/piexif.js'));
|
| 29 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/sortable.js'));
|
| Línea 30... |
Línea 30... |
| 30 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
|
30 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
|
| 31 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
|
31 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
|
| Línea 32... |
Línea 32... |
| 32 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
|
32 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fas/theme.js'));
|
| 33 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
33 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
| 34 |
|
34 |
|
| 35 |
|
35 |
|
| Línea 36... |
Línea 36... |
| 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('plugins/jquery-validation/additional-methods.js'));
|
37 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
| Línea 38... |
Línea -... |
| 38 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
- |
|
| 39 |
|
- |
|
| Línea -... |
Línea 38... |
| - |
|
38 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
| - |
|
39 |
|
| 40 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
40 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
| Línea 41... |
Línea 41... |
| 41 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
41 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
| 42 |
|
42 |
|
| Línea 212... |
Línea 212... |
| 212 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
212 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
| 213 |
},
|
213 |
},
|
| 214 |
},
|
214 |
},
|
| 215 |
'drawCallback': function( settings ) {
|
215 |
'drawCallback': function( settings ) {
|
| 216 |
NProgress.done();
|
216 |
NProgress.done();
|
| 217 |
$('button.btn-delete').confirmation({
|
- |
|
| 218 |
rootSelector: 'button.btn-delete',
|
- |
|
| 219 |
title : 'LABEL_ARE_YOU_SURE',
|
- |
|
| 220 |
singleton : true,
|
- |
|
| 221 |
btnOkLabel: 'LABEL_YES',
|
- |
|
| 222 |
btnCancelLabel: 'LABEL_NO',
|
- |
|
| 223 |
onConfirm: function(value) {
|
- |
|
| 224 |
action = $(this).data('href');
|
- |
|
| 225 |
NProgress.start();
|
- |
|
| 226 |
$.ajax({
|
- |
|
| 227 |
'dataType' : 'json',
|
- |
|
| 228 |
'accept' : 'application/json',
|
- |
|
| - |
|
217 |
|
| 229 |
'method' : 'post',
|
- |
|
| 230 |
'url' : action,
|
- |
|
| 231 |
}).done(function(response) {
|
- |
|
| 232 |
if(response['success']) {
|
- |
|
| 233 |
$.fn.showSuccess(response['data']);
|
- |
|
| 234 |
gridTable.api().ajax.reload(null, false);
|
- |
|
| 235 |
} else {
|
- |
|
| 236 |
$.fn.showError(response['data']);
|
- |
|
| 237 |
}
|
- |
|
| 238 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
- |
|
| 239 |
$.fn.showError(textStatus);
|
- |
|
| 240 |
}).always(function() {
|
- |
|
| 241 |
NProgress.done();
|
- |
|
| 242 |
});
|
- |
|
| 243 |
},
|
- |
|
| 244 |
});
|
- |
|
| 245 |
},
|
218 |
},
|
| 246 |
'aoColumns': [
|
219 |
'aoColumns': [
|
| 247 |
{ 'mDataProp': 'name' },
|
220 |
{ 'mDataProp': 'name' },
|
| 248 |
{ 'mDataProp': 'details' },
|
221 |
{ 'mDataProp': 'details' },
|
| 249 |
{ 'mDataProp': 'images' },
|
222 |
{ 'mDataProp': 'images' },
|
| Línea 760... |
Línea 733... |
| 760 |
});
|
733 |
});
|
| 761 |
$('body').on('click', 'button.btn-refresh', function(e) {
|
734 |
$('body').on('click', 'button.btn-refresh', function(e) {
|
| 762 |
e.preventDefault();
|
735 |
e.preventDefault();
|
| 763 |
gridTable.api().ajax.reload(null, false);
|
736 |
gridTable.api().ajax.reload(null, false);
|
| 764 |
});
|
737 |
});
|
| - |
|
738 |
|
| - |
|
739 |
$('body').on('click', 'button.btn-delete', function(e) {
|
| - |
|
740 |
e.preventDefault();
|
| - |
|
741 |
var action = $(this).data('href');
|
| - |
|
742 |
|
| - |
|
743 |
|
| - |
|
744 |
swal.fire({
|
| - |
|
745 |
title: 'LABEL_ARE_YOU_SURE',
|
| - |
|
746 |
icon: 'question',
|
| - |
|
747 |
cancelButtonText: 'LABEL_NO',
|
| - |
|
748 |
showCancelButton: true,
|
| - |
|
749 |
confirmButtonText: 'LABEL_YES'
|
| - |
|
750 |
}).then((result) => {
|
| - |
|
751 |
if (result.isConfirmed) {
|
| - |
|
752 |
|
| - |
|
753 |
NProgress.start();
|
| - |
|
754 |
$.ajax({
|
| - |
|
755 |
'dataType' : 'json',
|
| - |
|
756 |
'accept' : 'application/json',
|
| - |
|
757 |
'method' : 'post',
|
| - |
|
758 |
'url' : action,
|
| - |
|
759 |
}).done(function(response) {
|
| - |
|
760 |
if(response['success']) {
|
| - |
|
761 |
$.fn.showSuccess(response['data']);
|
| - |
|
762 |
gridTable.api().ajax.reload(null, false);
|
| - |
|
763 |
} else {
|
| - |
|
764 |
$.fn.showError(response['data']);
|
| - |
|
765 |
}
|
| - |
|
766 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
| - |
|
767 |
$.fn.showError(textStatus);
|
| - |
|
768 |
}).always(function() {
|
| - |
|
769 |
NProgress.done();
|
| - |
|
770 |
});
|
| - |
|
771 |
}
|
| - |
|
772 |
});
|
| - |
|
773 |
});
|
| 765 |
/*Script del editor (Aqui comienza el cielo y la tierra) */
|
774 |
/*Script del editor (Aqui comienza el cielo y la tierra) */
|
| Línea 766... |
Línea 775... |
| 766 |
|
775 |
|
| 767 |
var fileToggle=true;
|
776 |
var fileToggle=true;
|
| 768 |
$('body').on('click', '#ir_atras', function(e) {
|
777 |
$('body').on('click', '#ir_atras', function(e) {
|
| Línea 2335... |
Línea 2344... |
| 2335 |
<div class="modal-dialog">
|
2344 |
<div class="modal-dialog">
|
| 2336 |
<div class="modal-content">
|
2345 |
<div class="modal-content">
|
| 2337 |
<!-- Modal Header -->
|
2346 |
<!-- Modal Header -->
|
| 2338 |
<div class="modal-header">
|
2347 |
<div class="modal-header">
|
| 2339 |
<h4 class="modal-title">LABEL_IMAGE_MARKETPLACE</h4>
|
2348 |
<h4 class="modal-title">LABEL_IMAGE_MARKETPLACE</h4>
|
| 2340 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
2349 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
|
| 2341 |
</div>
|
2350 |
</div>
|
| Línea 2342... |
Línea 2351... |
| 2342 |
|
2351 |
|
| 2343 |
<!-- Modal body -->
|
2352 |
<!-- Modal body -->
|
| 2344 |
<div class="modal-body text-center">
|
2353 |
<div class="modal-body text-center">
|
| Línea 2360... |
Línea 2369... |
| 2360 |
<div class="modal-content">
|
2369 |
<div class="modal-content">
|
| Línea 2361... |
Línea 2370... |
| 2361 |
|
2370 |
|
| 2362 |
<!-- Modal Header -->
|
2371 |
<!-- Modal Header -->
|
| 2363 |
<div class="modal-header">
|
2372 |
<div class="modal-header">
|
| 2364 |
<h4 class="modal-title">LABEL_IMAGE</h4>
|
2373 |
<h4 class="modal-title">LABEL_IMAGE</h4>
|
| 2365 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
2374 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
|
| Línea 2366... |
Línea 2375... |
| 2366 |
</div>
|
2375 |
</div>
|
| 2367 |
|
2376 |
|
| 2368 |
<!-- Modal body -->
|
2377 |
<!-- Modal body -->
|
| Línea 2389... |
Línea 2398... |
| 2389 |
<div class="modal-content">
|
2398 |
<div class="modal-content">
|
| Línea 2390... |
Línea 2399... |
| 2390 |
|
2399 |
|
| 2391 |
<!-- Modal Header -->
|
2400 |
<!-- Modal Header -->
|
| 2392 |
<div class="modal-header">
|
2401 |
<div class="modal-header">
|
| 2393 |
<h4 class="modal-title">LABEL_USERS</h4>
|
2402 |
<h4 class="modal-title">LABEL_USERS</h4>
|
| 2394 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
2403 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
|
| Línea 2395... |
Línea 2404... |
| 2395 |
</div>
|
2404 |
</div>
|
| 2396 |
|
2405 |
|
| 2397 |
<!-- Modal body -->
|
2406 |
<!-- Modal body -->
|