Added a single sandwich view + url pattern.
[~kgodey/maayanwich.git] / templates / onesandwich.html
diff --git a/templates/onesandwich.html b/templates/onesandwich.html
new file mode 100644 (file)
index 0000000..0feaa5b
--- /dev/null
@@ -0,0 +1,17 @@
+<html>
+       <head>
+               <title>Every Ma'ayanwich Ever!</title></head>
+       <body>
+               <h3>{{ s.adjective }}</h3>
+               <p>Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
+               <img src="{{ s.picture }}">
+               <h5>Ingredients</h5>
+               <ul>
+                       {% for i in s.ingredients.all %}
+                               <li>{{ i.name }}
+                       {% endfor %}
+               </ul>
+               <h5>Notes</h5>
+               <p> {{ s.notes }}</p>
+       </body>
+</html>
\ No newline at end of file