drr / suppliers.html

Commit History

remove the print
c686580
verified

GreenMoood commited on

I have this showing in the right of the page ); printWindow.document.close(); }); // Edit functionality to populate form with row data document.querySelectorAll('.edit-btn').forEach(btn => { btn.addEventListener('click', (e) => { const row = e.target.closest('tr'); const cells = row.querySelectorAll('td'); document.getElementById('supplierId').value = cells[0].textContent; document.getElementById('supplierName').value = cells[1].textContent; document.getElementById('ice').value = cells[2].textContent; document.getElementById('if').value = cells[3].textContent; document.getElementById('tp').value = cells[4].textContent; document.getElementById('rc').value = cells[5].textContent; document.getElementById('cnss').value = cells[6].textContent; document.getElementById('rib').value = cells[7].textContent; document.getElementById('contactPerson').value = cells[8].textContent; document.getElementById('email').value = cells[9].textContent; document.getElementById('phone').value = cells[10].textContent; document.getElementById('country').value = cells[11].textContent; const statusText = cells[6].textContent.trim(); document.getElementById('status').value = statusText.includes('Active') ? 'Active' : statusText.includes('Pending') ? 'Pending' : 'Inactive'; supplierModal.classList.remove('hidden'); document.querySelector('#supplierModal h3').textContent = 'Edit Supplier'; }); }); // Toggle sidebar on mobile const sidebar = document.getElementById('sidebar'); const sidebarToggle = document.getElementById('sidebarToggle')
acdd1a5
verified

GreenMoood commited on

fix this page I have some text showing in the right
ab173b6
verified

GreenMoood commited on

no need to show this info in the table, make each row in the table collapasble when I click the spplier all these data show below him and fix the buttons on top
6292a44
verified

GreenMoood commited on

Add the following information for both add end edit forms ICE/ IF / TP/ RC/CNSS/RIB/ remove the botton to add attachement file from the table and add it to the forms, where you have to upload the RIB and a print button to print the supplier creationg form
fa29a94
verified

GreenMoood commited on

you only added the fonction to the first row
893529b
verified

GreenMoood commited on

add a buttong in the crud opartions to import a pdf file, in actionss there is a delete option and for edit it opens the row in the an update form where the supplier ID doesnt change
64ebd1c
verified

GreenMoood commited on

add a buttong in the crud opartions to import a pdf file, in actionss there is a delete option and for edit it opens the row in the an update form where the supplier ID doesnt change
a478bc7
verified

GreenMoood commited on

Ok lets make our first page when I click the suppliers buton in purchasing I need it to take me to a table where I have the suppliers list and all the crud operation with the search filter and all table oprations and an export button
58c02f4
verified

GreenMoood commited on