2022-11-12 22:16:03 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-11-21 03:50:54 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>Food Journal</title>
|
2022-11-12 22:16:03 +00:00
|
|
|
|
2022-11-21 21:52:44 +00:00
|
|
|
<!-- Recipe Card Custom Element -->
|
|
|
|
<script src="assets/scripts/ReviewCard.js" type="module"></script>
|
2022-11-21 05:21:18 +00:00
|
|
|
|
2022-11-21 21:52:44 +00:00
|
|
|
<!-- Main Stylesheets & Scripts -->
|
|
|
|
<!-- Temporarily commented out reset.css due to furthur discussion needed on the values of the default config-->
|
|
|
|
<!-- <link rel="stylesheet" href="/static/reset.css" /> -->
|
|
|
|
<link rel="stylesheet" href="./static/ReviewDetails.css" />
|
2022-11-21 21:56:00 +00:00
|
|
|
<link rel="stylesheet" href="./static/Form.css" />
|
2022-11-21 21:52:44 +00:00
|
|
|
<script src="assets/scripts/ReviewDetails.js" type="module"></script>
|
2022-11-21 08:56:54 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-11-21 21:52:44 +00:00
|
|
|
<header>
|
2022-11-21 08:56:54 +00:00
|
|
|
<div class="top-bar">
|
|
|
|
<img src ="./assets/images/icons/Logo.png" alt="logo" />
|
|
|
|
<h1> Food Journal </h1>
|
|
|
|
<img src ="./assets/images/icons/Logo.png" alt="logo" />
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-11-21 00:27:27 +00:00
|
|
|
|
2022-11-21 03:50:54 +00:00
|
|
|
<!--- meal -->
|
|
|
|
<div class = "meal-name">
|
2022-11-21 08:56:54 +00:00
|
|
|
<h1 id="d-mealName"> Salad (default name) </h1>
|
2022-11-21 21:52:44 +00:00
|
|
|
<h1 id="d-restaurant"> Salad Inc. (default name) </h1>
|
2022-11-21 03:50:54 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class = "meal-pics-and-tags">
|
|
|
|
<!-- image source -->
|
|
|
|
<img src = https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1,
|
2022-11-21 19:58:26 +00:00
|
|
|
alt = "Meal Photo Corrupted" width=40% height=40% id="d-mealImg">
|
2022-11-21 00:27:27 +00:00
|
|
|
|
2022-11-21 03:50:54 +00:00
|
|
|
<div class = "tag-container", id="d-tags">
|
2022-11-21 08:56:54 +00:00
|
|
|
|
2022-11-21 03:50:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 00:27:27 +00:00
|
|
|
|
2022-11-21 03:50:54 +00:00
|
|
|
<div class = "stars-and-comments">
|
|
|
|
<img src = "./assets/images/icons/5-star.svg" width=10% height=10% id="d-rating">
|
2022-11-21 08:56:54 +00:00
|
|
|
<p id = "d-comments"> Default comment </p>
|
2022-11-21 03:50:54 +00:00
|
|
|
</div>
|
2022-11-21 06:22:31 +00:00
|
|
|
|
2022-11-21 03:50:54 +00:00
|
|
|
<main>
|
|
|
|
<input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">
|
|
|
|
<button type="button" id="update-btn">Update</button>
|
|
|
|
<button type="button" id="delete-btn" class="danger">Delete</button>
|
|
|
|
</main>
|
2022-11-21 00:27:27 +00:00
|
|
|
|
2022-11-21 21:52:44 +00:00
|
|
|
<div class="journal-form hidden" id="update-form">
|
|
|
|
<h1>Update Entry</h1>
|
|
|
|
|
|
|
|
<form id="new-food-entry">
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>PICTURE:</legend>
|
|
|
|
<select id="select" name="select">
|
|
|
|
<option value="file">File Upload</option>
|
|
|
|
<option value="url">From an URL</option>
|
|
|
|
</select>
|
|
|
|
<label for="mealImage" id="source">
|
|
|
|
<input type="file" accept="image/*" id="mealImg" name="mealImg">
|
|
|
|
</label>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>MEAL NAME:</legend>
|
|
|
|
<label for="Name: "> <input type="text" id="mealName" name="mealName" required> </label>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>RESTAURANT NAME:</legend>
|
|
|
|
<label for="Name:"> <input type="text" id="restaurant" name="restaurant" required> </label>
|
|
|
|
</fieldset>
|
2022-11-21 03:50:54 +00:00
|
|
|
|
2022-11-21 21:52:44 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>RATING:</legend>
|
|
|
|
<div style="display: flex; justify-content: flex-start; align-items: center;">
|
|
|
|
<div class="rating">
|
|
|
|
<input type="radio" id="s5" name="rating" value="5"/> <label for="s5" id="s5-select"> 5 stars </label>
|
|
|
|
<input type="radio" id="s4" name="rating" value="4"/> <label for="s4" id="s4-select"> 4 stars </label>
|
|
|
|
<input type="radio" id="s3" name="rating" value="3"/> <label for="s3" id="s3-select"> 3 stars </label>
|
|
|
|
<input type="radio" id="s2" name="rating" value="2"/> <label for="s2" id="s2-select"> 2 stars </label>
|
|
|
|
<input type="radio" id="s1" name="rating" value="1"/> <label for="s1" id="s1-select"> 1 star </label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>COMMENTS:</legend>
|
|
|
|
<textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%;"></textarea>
|
|
|
|
</fieldset>
|
2022-11-21 00:27:27 +00:00
|
|
|
|
2022-11-21 21:52:44 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>TAGS: (ex. cuisine, distance, cost, etc)</legend>
|
|
|
|
<input type="text" id="tag-form" name="tag-form">
|
|
|
|
|
|
|
|
<div class='tag-container' id="tag-container-form">
|
|
|
|
</div>
|
|
|
|
<button type="button" id="tag-add-btn"> + </button>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<button type="submit" id="save-btn" value="Submit">Save Review</button>
|
|
|
|
<input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">
|
2022-11-21 03:50:54 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
2022-11-12 22:16:03 +00:00
|
|
|
</html>
|