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">
12 $(document).ready(function () {
13 $("#id_ing").tokenInput("/ajaxfun/", {
14 hintText: "Type an ingredient!",
15 noResultsText: "No ingredients!",
16 searchingText: "Searching...",
19 {id: '{{i.pk}}', name: '{{i.name}}' },
25 <script type="text/javascript">
26 Date.firstDayOfWeek = 0;
27 Date.format = 'yyyy-mm-dd';
30 $('#id_date_made').datePicker({startDate:'1996-01-01'}).val(new Date().asString()).trigger('change');
34 {% block title %}Edit sandwich{% endblock %}
36 <h1 class="pagetitle">Edit sandwich</h1>
37 <span class="formspan">
38 <form enctype="multipart/form-data" action="{% url edit_sandwich slug=s.slug %}" method="post" class="cssform">
41 <img src="{{ s.picture.url }}" width=400px vspace=10px>
43 <p><label for="id_ing">Ingredients:</label> <input id="id_ing" type="text" name="ing"/></p>
44 <input type="submit" value="Submit" />