app/templates/projrev/proposal/review_list.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 13 Aug 2009 03:42:34 +0530
changeset 46 e27c75dedbfb
parent 45 9ffe957d6159
child 48 9bdb5a00689a
permissions -rw-r--r--
Fixed the correct redirects and review saves.
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" %}
41
64249ebaf65a Added Serial numbers support for lists.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 39
diff changeset
     2
{% load review_helpers %}
44
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
     3
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
     4
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
{% block content %}
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
<div class="post">
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
  <div class="list">
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
  <table>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
    <tr>
41
64249ebaf65a Added Serial numbers support for lists.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 39
diff changeset
    10
      <th class="first">Serial No.</th>
64249ebaf65a Added Serial numbers support for lists.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 39
diff changeset
    11
      <th>MICR Code</th>
39
e7880a8f7e04 Changes to the data model for including blank districts.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    12
      <th>Title</th>
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
      <th>Line Item</th>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
      <th>Institution</th>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
      <th>State</th>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
      <th>District</th>
41
64249ebaf65a Added Serial numbers support for lists.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 39
diff changeset
    17
      <th>Old Serial No.</th>
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
    </tr>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
    {% for project in projects %}
44
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    20
      {% if project.not_this_proposal %}
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    21
      <div class='hidden' style="display: none;">
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    22
        <div id='message_{{ project.project|serial_no:"new" }}' style='padding:10px; background:#fff;'>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    23
          This proposal is revised after you submitted a review. You will have to submit a new review to the revised proposal. Press the relevant button.<br />
46
e27c75dedbfb Fixed the correct redirects and review saves.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 45
diff changeset
    24
          <a href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}?new=0'>Start with my previous review</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
44
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    25
          <a href='{{ row_url }}{{ project.project.micr_code }}'>Start a fresh review</a>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    26
        </div>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    27
      </div>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    28
      <script type="text/javascript">
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    29
        $(document).ready(function () {
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    30
          $('#getredirect_{{ project.project|serial_no:"new" }}').colorbox({width:"50%", inline:true, href:"#message_{{ project.project|serial_no:"new" }}", title:"What do you want to do?"});
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    31
        });
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    32
      </script>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    33
      {% endif %}
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    34
      <tr class="row-a"><td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    35
      {% if project.user_review %}
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    36
      <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}'>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    37
      {% else %}
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    38
      <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}'>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    39
      {% endif %}
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    40
        {{ project.project|serial_no:"new" }}
41
64249ebaf65a Added Serial numbers support for lists.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 39
diff changeset
    41
        </td>
44
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    42
        <td>{{ project.project.micr_code }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    43
        <td>{{ project.project.title }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    44
        <td>{{ project.project.line_item }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    45
        <td>{{ project.project.institution }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    46
        <td>{{ project.project.state }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    47
        <td>{{ project.project.district }}</td>
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 41
diff changeset
    48
        <td>{{ project.project|serial_no:"old" }}</td>
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
      </a></tr>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
    {% endfor %}
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
  </table>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
  </div>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
</div>
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
{% endblock content %}