{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% for message in app.flashes('eccube.admin.info') %}
<script>
$(function() {
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000
});
Toast.fire({
icon: 'info',
title: '{{ message|trans }}'
});
});
</script>
{% endfor %}
{% for message in app.flashes('eccube.admin.success') %}
<script>
$(function() {
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000
});
Toast.fire({
icon: 'success',
title: '{{ message|trans }}'
});
});
</script>
{% endfor %}
{% for message in app.flashes('eccube.admin.danger') %}
<script>
$(function() {
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000
});
Toast.fire({
icon: 'error',
title: '{{ message|trans }}'
});
});
</script>
{% endfor %}
{% for message in app.flashes('eccube.admin.error') %}
<script>
$(function() {
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000
});
Toast.fire({
icon: 'error',
title: '{{ message|trans }}'
});
});
</script>
{% endfor %}
{% for message in app.flashes('eccube.admin.warning') %}
<script>
$(function() {
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 5000
});
Toast.fire({
icon: 'warning',
title: '{{ message|trans }}'
});
});
</script>
{% endfor %}