mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2025-09-09 08:07:22 +00:00
fixed form formatting, moved it to its own file
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<!-- 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" />
|
||||
<link rel="stylesheet" href="./static/reviewForm.css" />
|
||||
<link rel="icon" href="./assets/images/icons/favicon.ico">
|
||||
<script src="./assets/scripts/CreatePage.js" type="module"></script>
|
||||
</head>
|
||||
@@ -28,62 +29,61 @@
|
||||
</header>
|
||||
|
||||
<body>
|
||||
<input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">
|
||||
<div class="journal-form">
|
||||
<h1>New Entry</h1>
|
||||
|
||||
<form id="new-food-entry">
|
||||
<fieldset>
|
||||
|
||||
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">
|
||||
<input type="file" accept="image/*" id="mealImg" name="mealImg">
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend> Meal: </legend>
|
||||
<label for="Meal: ">Meal:
|
||||
<input type="text" id="mealName" name="mealName" required>
|
||||
</label>
|
||||
<label for="comments">
|
||||
<br>
|
||||
Comments:
|
||||
<br>
|
||||
<textarea name="comments" id="comments"></textarea>
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="rating">
|
||||
<br>
|
||||
Rating:
|
||||
<br>
|
||||
<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>
|
||||
</fieldset>
|
||||
<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>
|
||||
<fieldset>
|
||||
<legend>RESTAURANT NAME:</legend>
|
||||
<label for="Name:"> <input type="text" id="restaurant" name="restaurant" required> </label>
|
||||
</fieldset>
|
||||
|
||||
<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>
|
||||
|
||||
<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">
|
||||
<fieldset>
|
||||
<legend>COMMENTS:</legend>
|
||||
<textarea name="comments" id="comments" rows="5" style="resize: none; width: 100%;"></textarea>
|
||||
</fieldset>
|
||||
|
||||
<div class='tag-container' id="tag-container-form">
|
||||
</div>
|
||||
<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="button" id="tag-add-btn">Add Tag</button>
|
||||
</label>
|
||||
</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')">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user