| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/templates/ |
Upload File : |
{% load i18n %}
<div class="oh-modal__dialog oh-modal__dialog--confirm" style="max-width: 510px">
<p class="swal2-close"></p>
<ul class="swal2-progress-steps" style="display: none"></ul>
{% if created_count == 0 %}
<!-- Start of display warning SweetAlert when no records are imported -->
<div class="swal2-icon swal2-warning swal2-icon-show" style="display: flex">
<div class="swal2-icon-content">!</div>
</div>
<h2 class="swal2-title" id="swal2-title">{{model}} {% trans " Import Warning" %}</h2>
<div class="swal2-html-container" id="swal2-html-container" style="display: block">
<p>No {{model}} were imported.</p>
<p>There were {{error_count}} errors during the import.</p>
</div>
<!-- End of display warning SweetAlert when no records are imported -->
{% else %}
<div class="swal2-icon swal2-success swal2-icon-show" style="display: flex">
<div class="swal2-icon-content">✔</div>
</div>
<h2 class="swal2-title" id="swal2-title">{{model}} {% trans " Import Successful" %}</h2>
<div class="swal2-html-container" id="swal2-html-container" style="display: block">
{% if path_info %}
<p>{{created_count}} {{model}} were successfully imported.</p>
<p>{{error_count}} rows have errors during the import.</p>
{% else %}
{{total_count}} {{model}} were successfully imported.
{% endif %}
</div>
{% endif %}
<div class="swal2-actions pb-4">
{% if path_info %}
<a href="#" class="swal2-deny swal2-styled" aria-label=""
style="display: inline-block; background-color: rgb(0, 128, 0);"
onclick="handleDownloadAndRefresh(event, '/{{ path_info }}')">
{% trans "Download Error File" %}
</a>
{% endif %}
<button type="button" class="swal2-cancel swal2-styled" aria-label=""
style="display: inline-block; background-color: #d33;" onclick="window.location.reload();">
{% trans "Close" %}
</button>
</div>
</div>