Spaces:
Runtime error
Runtime error
Update templates/prompt_template.html
Browse files124 unmodified lines125126127128128129130131132133132133134135136140 unmodified lines27727827928028028128228343 unmodified lines32732832933033033133230 unmodified lines363364365366367368369370371372373374124 unmodified lines <option value="" selected>Select</option> </select> --> <h4 id="selectedCompany" style="margin-left: 300px;"></h4> <div class="col-12 d-flex justify-content-end mb-2"> <!-- <div class="col-12 d-flex justify-content-end mb-2"> <button class="btn btn-primary" style="margin-top:-40px;margin-right: -25px;position: fixed;" id="add">Add</button>
<!-- <button class="btn btn-primary" style="margin-top: 20px;" id="add">Add</button> --> </div> </div> --> </div> <div class="row"> <div id="message-container" style="margin-left: 150px;width:500px;"></div>140 unmodified lines const role = sessionStorage.getItem('userRole'); console.log('Current role:', role); // Debug statement to check the role const passedCompanyName = sessionStorage.getItem('company_name') document.getElementById('selectedCompany').innerText = `Company name: ${passedCompanyName}`; document.getElementById('selectedCompany').innerText = `Company Name: ${passedCompanyName}`; const company_id = sessionStorage.getItem('company_id'); document.getElementById("company_id").value = company_id;
43 unmodified lines table.clear(); if (!Array.isArray(connectorsResponse)) { throw new TypeError('Expected an array of companies');
displayErrorMessage("prompt template details do not exist for this company. Please fill in the details."); contentSection.style.display = 'none'; } else {30 unmodified lines }
function displayErrorMessage(message) { const messageContainer = document.getElementById('message-container'); if (messageContainer) { messageContainer.innerHTML = `<div class='alert alert-danger'>${message}</div>`; } }
// Delete companytemplates/prompt_template.html+10-5