fixed form formatting, moved it to its own file

This commit is contained in:
rheabhutada02
2022-11-21 13:52:44 -08:00
parent 661feafa40
commit 46b1ec4b07
10 changed files with 287 additions and 463 deletions

View File

@@ -80,7 +80,22 @@ class ReviewCard extends HTMLElement {
time {
color: #70757A;
font-size: 12px;
}
}
.tag-container {
display: flex;
flex-flow: row wrap;
}
.tag {
background-color:#94da97;
border-radius: 7px;
color: #94da97;
padding-right: 7px;
padding-left: 7px;
margin: 3px;
font-weight: bold;
}
`;
articleEl.append(styleEl);
shadowEl.append(articleEl);

View File

@@ -68,11 +68,12 @@ function setupUpdate(){
let currID = JSON.parse(sessionStorage.getItem("currID"));
let currReview = getReviewFromStorage(currID);
let form = document.getElementById("update-food-entry");
let updateDiv = document.getElementById("update-form-div");
let updateDiv = document.getElementById("update-form");
updateBtn.addEventListener("click", function(){
//update function
updateDiv.style.display = "block";
updateDiv.classList.remove("hidden");
let tagContainer = document.getElementById("tag-container-form");
//Set value of each input element to current's values