|
|
@ -15,7 +15,6 @@ |
|
|
|
{% include "@ChamiloTheme/Layout/head.html.twig" %} |
|
|
|
{% include "@ChamiloTheme/Layout/head.html.twig" %} |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
<body |
|
|
|
<body |
|
|
|
class="{{ section_name }} app header-fixed sidebar-fixed aside-menu-fixed sidebar-lg-show" |
|
|
|
class="{{ section_name }} app header-fixed sidebar-fixed aside-menu-fixed sidebar-lg-show" |
|
|
|
{{ sonata_seo_html_attributes() }} |
|
|
|
{{ sonata_seo_html_attributes() }} |
|
|
@ -24,15 +23,13 @@ |
|
|
|
data-session-id="{{ session ? session.id : '' }}" |
|
|
|
data-session-id="{{ session ? session.id : '' }}" |
|
|
|
> |
|
|
|
> |
|
|
|
<noscript> {{ "NoJavascript" | trans }} </noscript> |
|
|
|
<noscript> {{ "NoJavascript" | trans }} </noscript> |
|
|
|
|
|
|
|
|
|
|
|
<!-- PAGE --> |
|
|
|
|
|
|
|
{% block chamilo_wrap %} |
|
|
|
{% block chamilo_wrap %} |
|
|
|
<!-- HEADER --> |
|
|
|
<!-- PAGE --> |
|
|
|
{% block page_header %} |
|
|
|
{% block page_header %} |
|
|
|
|
|
|
|
<!-- HEADER --> |
|
|
|
{% include '@ChamiloTheme/Layout/header.html.twig' %} |
|
|
|
{% include '@ChamiloTheme/Layout/header.html.twig' %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
<!-- END HEADER --> |
|
|
|
<!-- END HEADER --> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
<div class="app-body"> |
|
|
|
<div class="app-body"> |
|
|
|
<!-- SIDEBAR --> |
|
|
|
<!-- SIDEBAR --> |
|
|
|
{% block page_sidebar %} |
|
|
|
{% block page_sidebar %} |
|
|
@ -51,14 +48,14 @@ |
|
|
|
<!-- END CONTENT --> |
|
|
|
<!-- END CONTENT --> |
|
|
|
</main> |
|
|
|
</main> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
<!-- END PAGE --> |
|
|
|
<!-- END PAGE --> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
<!-- FOOTER --> |
|
|
|
|
|
|
|
{% block chamilo_footer %} |
|
|
|
{% block chamilo_footer %} |
|
|
|
|
|
|
|
<!-- FOOTER --> |
|
|
|
{% include '@ChamiloTheme/Layout/footer.html.twig' %} |
|
|
|
{% include '@ChamiloTheme/Layout/footer.html.twig' %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
<!-- END FOOTER --> |
|
|
|
<!-- END FOOTER --> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="expand-image-modal" tabindex="-1" role="dialog" aria-labelledby="expand-image-modal-title" aria-hidden="true"> |
|
|
|
<div class="modal fade" id="expand-image-modal" tabindex="-1" role="dialog" aria-labelledby="expand-image-modal-title" aria-hidden="true"> |
|
|
|
<div class="modal-dialog modal-lg"> |
|
|
|
<div class="modal-dialog modal-lg"> |
|
|
@ -97,23 +94,29 @@ |
|
|
|
// MODAL DELETE CONFIRM |
|
|
|
// MODAL DELETE CONFIRM |
|
|
|
$('.delete-swal').click(function (e) { |
|
|
|
$('.delete-swal').click(function (e) { |
|
|
|
e.preventDefault(); // Prevent the href from redirecting directly |
|
|
|
e.preventDefault(); // Prevent the href from redirecting directly |
|
|
|
var linkURL = $(this).attr("href"); |
|
|
|
var url = $(this).attr("href"); |
|
|
|
var title = $(this).attr("title"); |
|
|
|
var title = $(this).attr("title"); |
|
|
|
deleteConfirm(linkURL, title); |
|
|
|
|
|
|
|
}); |
|
|
|
Swal.fire({ |
|
|
|
function deleteConfirm(linkURL, title) { |
|
|
|
title: title, |
|
|
|
swal({ |
|
|
|
text: '', |
|
|
|
//title: '{{ 'Warning'|trans }}', |
|
|
|
icon: 'warning', |
|
|
|
text: title, |
|
|
|
showCancelButton: true, |
|
|
|
icon: "warning", |
|
|
|
cancelButtonText: '{{ 'Cancel' | trans }}', |
|
|
|
buttons: true, |
|
|
|
confirmButtonColor: '#3085d6', |
|
|
|
dangerMode: true, |
|
|
|
cancelButtonColor: '#d33', |
|
|
|
}).then((willDelete) => { |
|
|
|
confirmButtonText: '{{ 'Yes' | trans }}', |
|
|
|
if (willDelete) { |
|
|
|
}).then((result) => { |
|
|
|
window.location.href = linkURL; |
|
|
|
if (result.value) { |
|
|
|
|
|
|
|
/*Swal.fire( |
|
|
|
|
|
|
|
'Deleted!', |
|
|
|
|
|
|
|
'Your file has been deleted.', |
|
|
|
|
|
|
|
'success' |
|
|
|
|
|
|
|
)*/ |
|
|
|
|
|
|
|
window.location.href = url; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
|
</body> |
|
|
|