Add un-minified submission page
This commit is contained in:
parent
ecef893859
commit
d6adec144f
|
@ -1,5 +1,3 @@
|
|||
/target
|
||||
Cargo.lock
|
||||
static/en/index*
|
||||
static/en/*/*
|
||||
static/en/**.xml
|
||||
static/en/
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href="/favicon.ico" rel="icon">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="The cutest cooking site on the net :3">
|
||||
<title>🥘 Catgirl Cooking</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Submit a New Recipe</h1>
|
||||
<hr>
|
||||
|
||||
<form action="http://127.0.0.1:8000/api/new-recipe" method="post">
|
||||
<ul class="form">
|
||||
<li>
|
||||
<label for="name">Recipe Name:</label>
|
||||
<input type="text" id="name" name="recipe_name">
|
||||
</li>
|
||||
<li>
|
||||
<label for="author">Your Name:</label>
|
||||
<input type="text" id="attribution" name="author_name">
|
||||
</li>
|
||||
<li>
|
||||
<label for="tags">Tags:</label>
|
||||
<input type="text" id="tags" name="tags" placeholder="breakfast, vegetarian">
|
||||
</li>
|
||||
<li>
|
||||
<label for="prep_time">Preparation Time:</label>
|
||||
<input type="text" id="prep_time" name="prep_time" placeholder="10 minutes">
|
||||
</li>
|
||||
<li>
|
||||
<label for="cooking_time">Cooking Time:</label>
|
||||
<input type="text" id="cooking_time" name="cooking_time" placeholder="2 hours">
|
||||
</li>
|
||||
<li>
|
||||
<label for="servings">Servings:</label>
|
||||
<input type=text" id="servings" name="servings" placeholder="6">
|
||||
</li>
|
||||
<li>
|
||||
<label for="ingredients">Ingredients:</label>
|
||||
<textarea id="ingredients" name="ingredients" rows="15" cols="25" placeholder="1 cup flour
|
||||
3 tablespoon sugar
|
||||
5 grams salt
|
||||
12 oz water"></textarea>
|
||||
</li>
|
||||
<li>
|
||||
<label for="directions">Directions:</label>
|
||||
<textarea id="directions" name="directions" rows="35" placeholder="Combine flour and sugar in a bowl
|
||||
Slowly mix in water
|
||||
Stir gently
|
||||
Add the salt
|
||||
Bake in the over for 15 minutes"></textarea>
|
||||
</li>
|
||||
<li class="button">
|
||||
<button type="submit">Submit Recipe!</button>
|
||||
</li>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue