Ingredients auto complete, adding ingredients works. Some template tweaks.
[~kgodey/maayanwich.git] / templates / base.html
1 <html>
2         <head>
3                 <link rel="stylesheet" href="http://127.0.0.1:8000/sandwiches/style.css" type="text/css">
4                 <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
5                 {% block extrahead %}{% endblock %}
6         </head>
7         <body>
8                 <div id="wrapper">
9                         <div id="header">
10                                 <h1 class="header">Ma'ayanwich Tracker</h1>
11                         </div>
12                         <div id="sidebar">
13                                 <h3 class="navtitle">Account</h3>
14                                 <ul class="nav">
15                                         {% if user.is_authenticated %}
16                                                 <li><a href="{% url add_sandwich %}" class="navlink">Add sandwich</a></li>
17                                                 <li><a href="{% url logout %}" class="navlink">Logout</a></li>
18                                         {% else %}
19                                                 <li><a href="{% url login %}" class="navlink">Login</a></li>
20                                                 <li><a href="{% url signup %}" class="navlink">Signup</a></li>
21                                         {% endif %}
22                                 </ul>
23                                 <h3 class="navtitle">Newest</h3>
24                                 <ul class="newest">
25                                         {% for s in sandwiches %}
26                                                 <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
27                                         {% endfor %}
28                                 </ul>
29                                 <h3 class="navtitle">Sandwiches</h3>
30                                 <ul class="newest">
31                                         {% for m in monthly %}
32                                         <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
33                                         {% endfor %}
34                                 </ul>
35                                 <ul class="newest">
36                                         <li><a href="{% url all_sandwiches %}" class="navlink">All sandwiches</a></li>
37                                 </ul>
38                         </div>
39                         <div id="content">
40                                 {% block content %}     
41                                 {% endblock %}
42                         </div>
43                 </div>
44         <body>
45 </html>