Added a view for all sandwiches, and configured URLS for it.
[~kgodey/maayanwich.git] / templates / allsandwiches.html
1 <html>
2         <head>
3                 <title>Every Ma'ayanwich Ever!</title></head>
4         <body>
5                 <h1>All Ma'ayanwiches</h1>
6                 {% for s in sandwiches %}
7                         <h3>{{ s.adjective }}</h3>
8                         <p>Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
9                         <img src="{{ s.picture }}">
10                         <h5>Ingredients</h5>
11                         <ul>
12                                 {% for i in s.ingredients.all %}
13                                         <li>{{ i.name }}
14                                 {% endfor %}
15                         </ul>
16                         <h5>Notes</h5>
17                         <p> {{ s.notes }}</p>
18                 {% endfor %}
19         </body>
20 </html>