app/templates/projrev/proposal/submit.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 10 Aug 2009 16:36:16 +0530
changeset 32 b39994cca761
parent 24 7257b66a6766
child 38 3cb38edbe05f
permissions -rw-r--r--
Attribute Names.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
{% extends "projrev/base.html" %}
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
     2
{% block scripts %}
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
     3
{{ block.super }}
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
     4
<script language="JavaScript" type="text/javascript" src="/site-content/js/jquery.chainedSelects.js"></script>
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
     5
<script language="JavaScript" type="text/javascript">
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
     6
  $(function()
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
     7
  {
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
     8
    $('#id_state').chainSelect('#id_district','/proposal/submit/get_dfors');
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
     9
  });
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    10
  $(document).ready(function() {
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    11
	  $.get('/proposal/submit/get_dfors', function() {
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    12
      $('#id_district').html('<option value="">---------</option>');
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    13
	  });
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    14
  });
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    15
</script>
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    16
{% endblock scripts %}
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
{% block content %}
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
<div class="post">
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
			
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
	<a name="TemplateInfo"></a>	
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
	<h1>Submit your proposal</h1>
4
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    22
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    23
  {% if created_now %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    24
    <p>An MICR Code has been assigned and e-mailed to you. Please remember it for future reference.</p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    25
  {% else %}{% if micr_code %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    26
    <p>Edit your details and upload new version of the proposal in the form below.</p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    27
  {% else %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    28
    <p>Fill up the form below, and upload your proposal file by clicking on Browse.</p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    29
  {% endif %}{% endif %}
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
	<form enctype="multipart/form-data" method="post" action="">			
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
		<p>
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    33
    {% for field in form %}
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    34
      <p>
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    35
      {% if field.help_text %}
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    36
        <script type="text/javascript">
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    37
          $(document).ready( function() {
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    38
            var tooltip = [
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    39
            "<div class='tooltip'>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    40
            "  <div class='tooltip-body'>",
24
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    41
            "    <img src='/site-content/images/info.png' alt='' />",
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    42
            "    <h3>Info</h3>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    43
            "    <p>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    44
            "      {% autoescape off %}",
24
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    45
            "        {{ field.help_text|linebreaksbr|escapejs }}",
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    46
            "      {% endautoescape %}",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    47
            "    </p>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    48
            "  </div>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    49
            "  <div class='tooltip-bottom'></div>",
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    50
            "</div>"
24
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    51
            ].join("");
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    52
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    53
            var tooltip_object=null;
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    54
            var documented = $("#id_{{ field.name }}");
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    55
            var not_fieldset = documented.attr('tagName') !== 'FIELDSET';
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    56
            if (not_fieldset) {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    57
              documented.focus(function() {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    58
                if (tooltip_object==null) {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    59
                  tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    60
                }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    61
              });
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    62
              documented.blur(function() {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    63
                if (tooltip_object!==null) {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    64
                  tooltip_object.remove();
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    65
                  tooltip_object=null;
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    66
                }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    67
              });
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    68
            }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    69
            else {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    70
              documented.find("input").hover(function() {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    71
                if (tooltip_object==null) {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    72
                  tooltip_object = $(tooltip).purr({usingTransparentPNG: true,removeTimer: 10000});
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    73
                }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    74
              },
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    75
              function() {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    76
                if (tooltip_object!==null) {
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    77
                  tooltip_object.remove();
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    78
                  tooltip_object=null;
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    79
                }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    80
              });
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    81
            }
7257b66a6766 Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 23
diff changeset
    82
          });
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    83
        </script>
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    84
      {% endif %}
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    85
      {{ field.errors }}
23
91cf6872d853 Add jqeury purr plugin for help text.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    86
      {{ field.label_tag }}:{{ field }}{% if field.field.required %}<span class="special_class">&nbsp;&nbsp;(required)</span>{% endif %}
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    87
      </p>
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    88
    {% endfor %}
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 14
diff changeset
    89
4
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    90
      {% if proposal_path %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    91
        <p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    92
          <label for="id_proposal">Previous Proposal Document:</label>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    93
          <a class="document-right" href="/site-content/{{ proposal_path }}">{{ proposal_name }}</a>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    94
        </p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    95
      {% endif %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    96
      {% if micr_code %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    97
        <p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    98
          <label for="id_micr_code">MICR Code:</label>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    99
          <input id="id_micr_code" type="text" maxlength="15" value="{{ micr_code }}" name="institution" DISABLED />
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
   100
        </p>
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
   101
      {% endif %}
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
   102
		  <br />	
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
   103
		  <input class="button" type="submit" value="Submit Proposal" />		
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   104
		</p>		
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   105
	</form>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   106
				
13
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   107
	<p class="post-footer align-right">
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   108
		<span class="comments">Reviews:
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   109
		{% if nr_reviews %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   110
		  {{ nr_reviews }}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   111
		{% else %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   112
		  (<i>None</i>)
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   113
		{% endif %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   114
		</span>
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   115
		<span class="date">Last reviewed:
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   116
		{% if last_reviewed %}
14
9d720dfded68 Footer for reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 13
diff changeset
   117
      {{ last_reviewed|date:"jS F Y h:iA" }}
13
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   118
    {% else %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   119
      (<i>Not Reviewed</i>)
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   120
    {% endif %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   121
		</span>
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   122
		<span class="date">Last submitted:
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   123
		{% if last_submitted %}
14
9d720dfded68 Footer for reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 13
diff changeset
   124
      {{ last_submitted|date:"jS F Y h:iA" }}
13
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   125
    {% else %}
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   126
      (<i>New Submission</i>)
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   127
    {% endif %} 
684540719344 Added footer line.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
   128
		</span>	
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   129
	</p>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   130
				
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   131
</div>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   132
{% endblock content %}