history importify --> add templatename for reference

This commit is contained in:
2024-10-15 15:12:34 +02:00
parent 5c7e885194
commit 01fffcb0ac
3 changed files with 9 additions and 1 deletions
@@ -223,6 +223,7 @@
</table>
</div><!--end table-responsive-->
<input id="f_csv" type="file" name="f_csv" style="display: none" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/csv">
<input id="import_template_id" type="hidden" name="import_template_id" value="">
<script>
document.addEventListener('DOMContentLoaded', function() {
const deleteButtons = document.querySelectorAll('.canc-btn');
@@ -254,6 +255,7 @@
function onRunImport(id_template_importify) {
tmp_id_template_importify = id_template_importify;
$('#import_template_id').val(tmp_id_template_importify); // Imposta l'ID nel campo nascosto
$('#f_csv').trigger("click");
}
@@ -571,6 +573,7 @@
formdata.append("f_csv", $('#f_csv').prop('files')[0]);
formdata.append("template_id", tmp_id_template_importify);
formdata.append("lab_id", $('#labor_id').val());
formdata.append("import_template_id", $('#import_template_id').val());
$.ajax({
url: 'import_auto_script.php',