2022-11-12 22:16:03 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2022-11-13 06:22:25 +00:00
|
|
|
|
2022-11-12 22:16:03 +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>
|
|
|
|
|
|
|
|
<!-- Recipe Card Custom Element -->
|
2022-11-13 22:33:00 +00:00
|
|
|
<script src="assets/scripts/ReviewCard.js" type="module"></script>
|
2022-11-12 22:16:03 +00:00
|
|
|
|
|
|
|
|
2022-11-13 06:22:25 +00:00
|
|
|
<!-- Main Stylesheets & Scripts -->
|
2022-11-12 22:16:03 +00:00
|
|
|
<!-- Temporarily commented out reset.css due to furthur discussion needed on the values of the default config-->
|
|
|
|
<!-- <link rel="stylesheet" href="/static/reset.css" /> -->
|
2022-11-18 02:45:53 +00:00
|
|
|
<link rel="stylesheet" href="./static/ReviewCard.css" />
|
|
|
|
<script src="./assets/scripts/CreatePage.js" type="module"></script>
|
2022-11-12 22:16:03 +00:00
|
|
|
|
|
|
|
</head>
|
2022-11-13 06:22:25 +00:00
|
|
|
|
2022-11-12 22:16:03 +00:00
|
|
|
<body>
|
2022-11-18 02:45:53 +00:00
|
|
|
<input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">
|
2022-11-12 22:16:03 +00:00
|
|
|
<form id="new-food-entry">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Pic:</legend>
|
2022-11-19 20:10:55 +00:00
|
|
|
Choose Input type:
|
|
|
|
<select id="select" name="select">
|
|
|
|
<option value="file">File Upload</option>
|
|
|
|
<option value="url">From an URL</option>
|
|
|
|
</select>
|
|
|
|
<label for="mealImage" id="source">
|
2022-11-12 22:16:03 +00:00
|
|
|
Source:
|
2022-11-19 20:10:55 +00:00
|
|
|
<input type="file" accept="image/*" id="mealImg" name="mealImg">
|
2022-11-12 22:16:03 +00:00
|
|
|
</label>
|
|
|
|
<label for="image-alt">
|
|
|
|
Alt Text:
|
|
|
|
<input type="text" id="imgAlt" name="imgAlt">
|
|
|
|
</label>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
<legend> Meal: </legend>
|
|
|
|
<label for="Meal: ">Meal:
|
|
|
|
<input type="text" id="mealName" name="mealName" required>
|
|
|
|
</label>
|
2022-11-13 06:22:25 +00:00
|
|
|
<label for="comments">Comments:
|
2022-11-12 22:16:03 +00:00
|
|
|
<br>
|
|
|
|
<textarea name="comments" id="comments"></textarea>
|
|
|
|
</label>
|
|
|
|
</fieldset>
|
|
|
|
|
2022-11-13 06:22:25 +00:00
|
|
|
<fieldset class="rating">
|
|
|
|
<legend> Rating: </legend>
|
2022-11-19 19:42:30 +00:00
|
|
|
<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>
|
2022-11-12 22:16:03 +00:00
|
|
|
</fieldset>
|
2022-11-13 06:22:25 +00:00
|
|
|
|
2022-11-12 22:16:03 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>Other Info:</legend>
|
|
|
|
<label for="restaurant">
|
|
|
|
Restaurant:
|
|
|
|
<input type="text" id="restaurant" name="restaurant" required>
|
|
|
|
</label>
|
|
|
|
<label for="tag-form">
|
|
|
|
Tags:
|
|
|
|
<input type="text" id="tag-form" name="tag-form">
|
|
|
|
<div class='tag-container' id="tag-container-form">
|
|
|
|
|
|
|
|
</div>
|
2022-11-19 19:42:30 +00:00
|
|
|
<button type="button" id="tag-add-btn">Add Tag</button>
|
2022-11-12 22:16:03 +00:00
|
|
|
</label>
|
|
|
|
|
|
|
|
</fieldset>
|
2022-11-18 02:45:53 +00:00
|
|
|
<button type="submit" id="save-btn" value="Submit">Save Review</button>
|
2022-11-12 22:16:03 +00:00
|
|
|
</form>
|
|
|
|
</body>
|
2022-11-13 06:22:25 +00:00
|
|
|
|
|
|
|
</html>
|