1 {% extends
"base.html" %}
6 <link rel=
"stylesheet" type=
"text/css" href=
"../../static/css/generic_model_edit.css" />
7 <script type=
"text/javascript">
8 $(document
).ready(function() {
9 $('input.selecter').each(function(){
12 $('#'+$this.val()).show();
13 $this.prevAll('ul.child_selecter').children('.'+$this.val()).addClass('selected');
14 $this.prevAll('ul.child_selecter').find('li').click(function(){
17 $this.addClass('selected')
18 $this.siblings().removeClass('selected')
19 $this.parent().next().val(val
);
20 $this.parent().siblings('.child').hide();
30 <form id=
"edit" method=
"post" >
32 <h1>{{wrapper.name}}
</h1>
33 {% with form.form_instance as form %}
34 {% include
"edit/form_fields.html" %}
37 {% for name, one_to_one in form.one_to_one_instances.items %}
38 {%with one_to_one.form_instance as form %}
39 {% include
"edit/form_fields.html" %}
43 {% for name, form in form.one_to_many_instances.items %}
44 {% include
"edit/form_fields_list.html" %}
48 <input type=
"submit" value=
"submit"/>