cse110-fa22-group29/source/CreatePage.html

93 lines
3.0 KiB
HTML
Raw Normal View History

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 -->
<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" /> -->
<link rel="stylesheet" href="./static/CreatePage.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>
<!-- <input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">-->
<div class ="Top-Bar">
<img src ="./assets/images/icons/Logo.png" alt="logo" />
<h1> Food Journal </h1>
<!--
<form id="form">
<input type='search' id="seaching" name="searchBar" placeholder="Search journal...">
<button class="click" type="search">
Search
</button>
</form>
--->
</div>
<div class="journal-form">
<h1>New Entry </h1>
2022-11-12 22:16:03 +00:00
<form id="new-food-entry">
<fieldset>
<legend>Pic:</legend>
<label for="mealImage">
Source:
<input type="text" id="mealImg" name="mealImg">
</label>
<label for="image-alt">
Alt Text:
<input type="text" id="imgAlt" name="imgAlt">
</label>
</fieldset>
<fieldset>
2022-11-12 22:16:03 +00:00
<legend> Meal: </legend>
<label for="Meal: ">Meal:
<input type="text" id="mealName" name="mealName" required>
</label>
<label for="comments">Comments:
<br>
<textarea name="comments" id="comments"></textarea>
</label>
</fieldset>
2022-11-13 06:22:25 +00:00
<fieldset class="rating">
<legend> Rating: </legend>
<input type="radio" id="s5" name="rating" value="5"/> <label for="s5"> 5 stars </label>
<input type="radio" id="s4" name="rating" value="4"/> <label for="s4"> 4 stars </label>
<input type="radio" id="s3" name="rating" value="3"/> <label for="s3"> 3 stars </label>
<input type="radio" id="s2" name="rating" value="2"/> <label for="s2"> 2 stars </label>
<input type="radio" id="s1" name="rating" value="1"/> <label for="s1"> 1 star </label>
</fieldset>
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">
2022-11-12 22:16:03 +00:00
</div>
<button type="button" id="tagAdd">Add Tag</button>
</label>
</fieldset>
<button type="submit" id="save-btn" value="Submit">Save Review</button>
</form>
</div>
2022-11-12 22:16:03 +00:00
</body>
2022-11-13 06:22:25 +00:00
</html>