Переглянути джерело

changes for the attr column mapping

VISHAL BHANUSHALI 2 місяців тому
батько
коміт
0558193123

+ 9 - 2
content_quality_tool_public/templates/attr-column-mapping-setting.html

@@ -174,9 +174,9 @@
                 </div>
             </div>
             
-            <div class="col-md-7">
+            <div class="col-md-7" id="target-system-wrapper" style="display: none;">
                 <h5 class="mb-3 text-success">Target System Attributes (Drop)</h5>
-                <div id="system-columns" class="drop-zone-container">
+                <div id="system-columns" class="drop-zone-container" >
                     </div>
             </div>
         </div>
@@ -318,6 +318,7 @@
 
                 // Re-enable drag-and-drop for new items
                 enableDragDrop();
+                $("#target-system-wrapper").show();
             };
             reader.readAsArrayBuffer(file);
         });
@@ -407,6 +408,12 @@
             });
             // Show all uploaded columns again
             $(".drag-item").show();
+
+            // **NEW LINES: Hide system columns and reset uploaded list**
+            // $("#target-system-wrapper").hide();
+            // $("#uploaded-columns").empty().append(`<p class="text-center text-muted" id="upload-placeholder">Upload a file to see columns here.</p>`);
+            // $("#upload-placeholder").show();
+            // $("#fileUpload").val(''); // Clear file input value
         });
 
         // --- Save Button with Validation ---