moved media to media folder in app
[~kgodey/maayanwich.git] / templates / sandwich.html
1 {% extends "base.html" %}
2 {% block extrahead %}
3 <script type="text/javascript" src="{{ media_url }}sandwiches/jquery-1.4.2.min.js"></script>
4 <script type="text/javascript" src="{{ media_url }}sandwiches/jquery.tokeninput.js"></script>
5 <script type="text/javascript" src="{{ media_url }}sandwiches/date.js"></script>
6 <!--[if IE]><script type="text/javascript" src="http://127.0.0.1:8000/sandwiches/jquery.bgiframe.js"></script><![endif]-->
7 <script type="text/javascript" src="{{ media_url }}sandwiches/jquery.datePicker.js"></script>
8 <link rel="stylesheet" href="{{ media_url }}sandwiches/token-input.css" type="text/css" />
9 <link rel="stylesheet" href="{{ media_url }}sandwiches/datePicker.css" type="text/css" />
10 <script type="text/javascript">
11 $(document).ready(function () {
12   $("#id_ing").tokenInput("/ajaxfun/", {
13         hintText: "Type an ingredient!",
14         noResultsText: "No ingredients!",
15         searchingText: "Searching..."
16 });
17 });
18 </script>
19 <script type="text/javascript">
20 Date.firstDayOfWeek = 0;
21 Date.format = 'yyyy-mm-dd';
22 $(function()
23 {
24         $('#id_date_made').datePicker({startDate:'1996-01-01'}).val(new Date().asString()).trigger('change');
25 });
26 </script>
27 {% endblock %}
28 {% block title %}Add a sandwich{% endblock %}
29 {% block content %}
30         <h1 class="pagetitle">Add a new sandwich</h1>
31         <span class="formspan">
32         <form enctype="multipart/form-data" action="{% url add_sandwich %}" method="post" class="cssform">
33         {{ sform.as_p }}
34         <p><label for="id_ing">Ingredients:</label> <input id="id_ing" type="text" name="ing"/></p>
35         <input type="submit" value="Submit" />
36         </form>
37         </span>
38 {% endblock %}