Files
CS361-Portfolio-Project/templates/new.html
2022-04-22 09:30:01 -07:00

30 lines
732 B
HTML

{% extends "base.html" %}
{% block title %}Add Recipe{% endblock %}
{% block html_head %}
{% endblock %}
{% block content %}
<h1>New Recipe</h1>
<form action="{{ url_for("add_recipe")}}" method="post">
<label for="name">Recipe Name:</label>
<input required type="text" id="name" name="name" placeholder="Sourdough">
<br>
<p>Enter all values grams.</p>
{% for ing in ['flour', 'water', 'salt'] %}
<label for="{{ing}}_weight">{{ing.title()}}:</label>
<input required type="number" id="{{ing}}_weight" name="{{ing}}_weight" placeholder="100">
<br>
{% endfor %}
<label for="yield">Loaves:</label>
<input required type="number" id="yield" name="yield" placeholder="2">
<button type="submit">Add!</button>
{% endblock %}