Línea 11... |
Línea 11... |
11 |
$allowAdd = $acl->isAllowed($roleName, 'microlearning/content/topics/add') ? 1 : 0;
|
11 |
$allowAdd = $acl->isAllowed($roleName, 'microlearning/content/topics/add') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'microlearning/content/topics/edit') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'microlearning/content/topics/edit') ? 1 : 0;
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/topics/delete') ? 1 : 0;
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'microlearning/content/topics/delete') ? 1 : 0;
|
Línea 14... |
Línea 14... |
14 |
|
14 |
|
15 |
|
15 |
|
Línea 16... |
Línea 16... |
16 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
16 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
Línea 17... |
Línea 17... |
17 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
17 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
|
18 |
|
18 |
|
Línea 19... |
Línea 19... |
19 |
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
|
19 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
|
20 |
|
20 |
|
21 |
|
21 |
|
22 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
|
22 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.min.css'));
|
23 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
23 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
24 |
|
24 |
|
Línea 25... |
Línea 25... |
25 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
|
25 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/piexif.js'));
|
26 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
|
26 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/sortable.js'));
|
27 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
|
27 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
|
Línea 28... |
Línea 28... |
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
|
28 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fas/theme.js'));
|
30 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
30 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
31 |
|
31 |
|
32 |
|
32 |
|
33 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
33 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
34 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
34 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
Línea 35... |
Línea 35... |
35 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
35 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
36 |
|
36 |
|
Línea 37... |
Línea -... |
37 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
- |
|
38 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
- |
|
Línea -... |
Línea 37... |
- |
|
37 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
- |
|
38 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
39 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nelberth-editor/style.css'));
|
39 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nelberth-editor/style.css'));
|
Línea 40... |
Línea 40... |
40 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
40 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
|
Línea 168... |
Línea 168... |
168 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
168 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
169 |
},
|
169 |
},
|
170 |
},
|
170 |
},
|
171 |
'drawCallback': function( settings ) {
|
171 |
'drawCallback': function( settings ) {
|
172 |
NProgress.done();
|
172 |
NProgress.done();
|
173 |
$('button.btn-delete').confirmation({
|
- |
|
174 |
rootSelector: 'button.btn-delete',
|
- |
|
175 |
title : 'LABEL_ARE_YOU_SURE',
|
- |
|
176 |
singleton : true,
|
- |
|
177 |
btnOkLabel: 'LABEL_YES',
|
- |
|
178 |
btnCancelLabel: 'LABEL_NO',
|
- |
|
179 |
onConfirm: function(value) {
|
- |
|
180 |
action = $(this).data('href');
|
- |
|
181 |
NProgress.start();
|
- |
|
182 |
$.ajax({
|
- |
|
183 |
'dataType' : 'json',
|
- |
|
184 |
'accept' : 'application/json',
|
- |
|
- |
|
173 |
|
185 |
'method' : 'post',
|
- |
|
186 |
'url' : action,
|
- |
|
187 |
}).done(function(response) {
|
- |
|
188 |
if(response['success']) {
|
- |
|
189 |
$.fn.showSuccess(response['data']);
|
- |
|
190 |
gridTable.api().ajax.reload(null, false);
|
- |
|
191 |
} else {
|
- |
|
192 |
$.fn.showError(response['data']);
|
- |
|
193 |
}
|
- |
|
194 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
- |
|
195 |
$.fn.showError(textStatus);
|
- |
|
196 |
}).always(function() {
|
- |
|
197 |
NProgress.done();
|
- |
|
198 |
});
|
- |
|
199 |
},
|
- |
|
200 |
});
|
- |
|
201 |
},
|
174 |
},
|
202 |
'aoColumns': [
|
175 |
'aoColumns': [
|
203 |
{ 'mDataProp': 'name' },
|
176 |
{ 'mDataProp': 'name' },
|
204 |
{ 'mDataProp': 'status' },
|
177 |
{ 'mDataProp': 'status' },
|
205 |
{ 'mDataProp': 'image' },
|
178 |
{ 'mDataProp': 'image' },
|
Línea 404... |
Línea 377... |
404 |
invalidHandler: function(form, validator) {
|
377 |
invalidHandler: function(form, validator) {
|
Línea 405... |
Línea 378... |
405 |
|
378 |
|
406 |
}
|
379 |
}
|
Línea -... |
Línea 380... |
- |
|
380 |
});
|
- |
|
381 |
|
- |
|
382 |
$('body').on('click', 'button.btn-delete', function(e) {
|
- |
|
383 |
e.preventDefault();
|
- |
|
384 |
var action = $(this).data('href');
|
- |
|
385 |
|
- |
|
386 |
|
- |
|
387 |
swal.fire({
|
- |
|
388 |
title: 'LABEL_ARE_YOU_SURE',
|
- |
|
389 |
icon: 'question',
|
- |
|
390 |
cancelButtonText: 'LABEL_NO',
|
- |
|
391 |
showCancelButton: true,
|
- |
|
392 |
confirmButtonText: 'LABEL_YES'
|
- |
|
393 |
}).then((result) => {
|
- |
|
394 |
if (result.isConfirmed) {
|
- |
|
395 |
|
- |
|
396 |
NProgress.start();
|
- |
|
397 |
$.ajax({
|
- |
|
398 |
'dataType' : 'json',
|
- |
|
399 |
'accept' : 'application/json',
|
- |
|
400 |
'method' : 'post',
|
- |
|
401 |
'url' : action,
|
- |
|
402 |
}).done(function(response) {
|
- |
|
403 |
if(response['success']) {
|
- |
|
404 |
$.fn.showSuccess(response['data']);
|
- |
|
405 |
gridTable.api().ajax.reload(null, false);
|
- |
|
406 |
} else {
|
- |
|
407 |
$.fn.showError(response['data']);
|
- |
|
408 |
}
|
- |
|
409 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
- |
|
410 |
$.fn.showError(textStatus);
|
- |
|
411 |
}).always(function() {
|
- |
|
412 |
NProgress.done();
|
- |
|
413 |
});
|
- |
|
414 |
}
|
Línea 407... |
Línea 415... |
407 |
});
|
415 |
});
|
408 |
|
416 |
});
|
Línea 1896... |
Línea 1904... |
1896 |
<div class="modal-content">
|
1904 |
<div class="modal-content">
|
Línea 1897... |
Línea 1905... |
1897 |
|
1905 |
|
1898 |
<!-- Modal Header -->
|
1906 |
<!-- Modal Header -->
|
1899 |
<div class="modal-header">
|
1907 |
<div class="modal-header">
|
1900 |
<h4 class="modal-title">LABEL_IMAGE</h4>
|
1908 |
<h4 class="modal-title">LABEL_IMAGE</h4>
|
1901 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
1909 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
|
Línea 1902... |
Línea 1910... |
1902 |
</div>
|
1910 |
</div>
|
1903 |
|
1911 |
|
1904 |
<!-- Modal body -->
|
1912 |
<!-- Modal body -->
|
1905 |
<div class="modal-body text-center">
|
1913 |
<div class="modal-body text-center">
|
Línea 1906... |
Línea 1914... |
1906 |
<img src="" class="img img-responsive" style="width: 300px; height: auto" id="image-app" />
|
1914 |
<img src="" class="img img-responsive" style="width: 300px; height: auto" id="image-app" />
|
1907 |
</div>
|
1915 |
</div>
|
1908 |
|
1916 |
|
1909 |
<!-- Modal footer -->
|
1917 |
<!-- Modal footer -->
|
1910 |
<div class="modal-footer">
|
1918 |
<div class="modal-footer">
|
1911 |
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
|
1919 |
<button type="button" class="btn btn-light" data-bs-dismiss="modal">LABEL_CLOSE</button>
|
1912 |
</div>
|
1920 |
</div>
|
1913 |
</div>
|
1921 |
</div>
|