--- a/app/templates/projrev/proposal/submit.html Sun Aug 09 13:04:03 2009 +0530
+++ b/app/templates/projrev/proposal/submit.html Sun Aug 09 22:52:45 2009 +0530
@@ -1,4 +1,14 @@
{% extends "projrev/base.html" %}
+{% block scripts %}
+{{ block.super }}
+<script language="JavaScript" type="text/javascript" src="/site-content/js/jquery.chainedSelects.js"></script>
+<script language="JavaScript" type="text/javascript">
+$(function()
+{
+ $('#id_state').chainSelect('#id_district','/proposal/submit/get_dfors');
+});
+</script>
+{% endblock scripts %}
{% block content %}
<div class="post">
@@ -15,7 +25,13 @@
<form enctype="multipart/form-data" method="post" action="">
<p>
- {{ form.as_p }}
+ {% for field in form %}
+ <p>
+ {{ field.errors }}
+ {{ field.label_tag }}{% if field.field.required %}<span class="special_class">(*)</span>{% endif %}:{{ field }}
+ </p>
+ {% endfor %}
+
{% if proposal_path %}
<p>
<label for="id_proposal">Previous Proposal Document:</label>