Add link to submission form in footer

This commit is contained in:
~erin 2022-01-24 12:01:36 -05:00
parent d6adec144f
commit 6829f6b271
No known key found for this signature in database
GPG Key ID: DA70E064A8C70F44
3 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ fn construct_main_page() {
let footer = Container::new(ContainerType::Footer)
.with_raw(r#"<hr>"#) // Line seperator
.with_link("/", "home") // Link to the root page
.with_link("/submit.html", "submit recipe") // Link to submission form
.with_link("/rss.xml", "rss") // Link the the Atom feed
// License info
.with_paragraph("Software licensed under the CNPLv7+")

View File

@ -203,6 +203,7 @@ impl Recipe {
let footer = Container::new(ContainerType::Footer)
.with_raw(r#"<hr>"#) // Line seperator
.with_link("/", "home") // Link to the root page
.with_link("/submit.html", "submit recipe") // Link to submission form
.with_link("/rss.xml", "rss") // Link the the Atom feed
// License info
.with_paragraph("Software licensed under the CNPLv7+")

View File

@ -36,7 +36,7 @@
</li>
<li>
<label for="servings">Servings:</label>
<input type=text" id="servings" name="servings" placeholder="6">
<input type="text" id="servings" name="servings" placeholder="6">
</li>
<li>
<label for="ingredients">Ingredients:</label>
@ -56,6 +56,7 @@ Bake in the over for 15 minutes"></textarea>
<li class="button">
<button type="submit">Submit Recipe!</button>
</li>
</ul>
</form>
</body>
</html>