1 {% extends "base.html" %}
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..."
19 <script type="text/javascript">
20 Date.firstDayOfWeek = 0;
21 Date.format = 'yyyy-mm-dd';
24 $('#id_date_made').datePicker({startDate:'1996-01-01'}).val(new Date().asString()).trigger('change');
28 {% block title %}Edit sandwich{% endblock %}
30 <h1 class="pagetitle">Edit sandwich</h1>
31 <span class="formspan">
32 <form enctype="multipart/form-data" action="{% url edit_sandwich slug=s.slug %}" method="post" class="cssform">
35 <img src="{{ s.picture.url }}" width=400px vspace=10px>
37 <p><label for="id_ing">Ingredients:</label> <input id="id_ing" type="text" name="ing"/></p>
38 <input type="submit" value="Submit" />