app/templates/projrev/proposal/review_list.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 14 Aug 2009 11:07:24 +0530
changeset 49 33c54f815fd5
parent 48 9bdb5a00689a
permissions -rw-r--r--
Changed rank list.html to be consistent with review list.

{% extends "projrev/base.html" %}
{% load review_helpers %}


{% block content %}
<div class="post">
  <div class="list">
  <table>
    <tr>
      <th class="first">Serial No.</th>
      <th>Title</th>
      <th>MICR Code</th>
      <th>Line Item</th>
      <th>Institution</th>
      <th>State</th>
      <th>District</th>
      <th>Old Serial No.</th>
    </tr>
    {% for project in projects %}
      <tr class="row-a">
        <td>{{ project.project|serial_no:"new" }}</td>
        <td>
        {% if project.user_review %}
        <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}'>
        {% else %}
        <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}'>
        {% endif %}{{ project.project.title }}</a></td>
        <td>{{ project.project.micr_code }}</td>
        <td>{{ project.project.line_item }}</td>
        <td>{{ project.project.institution }}</td>
        <td>{{ project.project.state }}</td>
        <td>{{ project.project.district }}</td>
        <td>{{ project.project|serial_no:"old" }}</td>
      </tr>
    {% endfor %}
  </table>
  </div>
</div>

{% for project in projects %}
{% if project.not_this_proposal %}
<div class='hidden' style="display: none;">
 <div id='message_{{ project.project|serial_no:"new" }}' style='padding:10px; background:#fff;'>
  This proposal is revised after you submitted a review. You will have to submit a new review to the revised proposal. Select the relevant button below.<br /><br />
  <input class="colorbox-button" type="submit" onclick="location.href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}?new=0'" value="Start with my previous review" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input class="colorbox-button" type="submit" onclick="location.href='{{ row_url }}{{ project.project.micr_code }}'" value="Start a fresh review" /><br /><br />
  <strong>Your previous review:</strong><br />
 <div style='text-align: left;'>
 <table>
 <tr>
  <td>
   <strong>Feasibility of the proposed activity and the appropriateness of the time frame: </strong>
  </td>
  <td>{{ project.user_review.attribute1 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a1 }}</td></tr>
 <tr>
  <td>
   <strong>Uniqueness/novelty/innovation of the said proposal:</strong>
  </td>
  <td>{{ project.user_review.attribute2 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a2 }}</td></tr>
 <tr>
  <td>
   <strong>Scope for inter-institutional collaboration and development:</strong>
  </td>
  <td>{{ project.user_review.attribute3 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a3 }}</td></tr>
 <tr>
  <td>
   <strong>The organisation of the programme to be carried out:</strong>
  </td>
  <td>{{ project.user_review.attribute4 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a4 }}</td></tr>
 <tr>
  <td>
   <strong>The details of the work as the outlined by the principal investigator(PI):</strong>
  </td>
  <td>{{ project.user_review.attribute5 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a5 }}</td></tr>
 <tr>
  <td>
   <strong>Sufficiency of funds as requested by the PI:</strong>
  </td>
  <td>{{ project.user_review.attribute6 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a6 }}</td></tr>
 <tr>
  <td>
   <strong>Social impact/reach/spread of the outcome of the proposal:</strong>
  </td>
  <td>{{ project.user_review.attribute7 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a7 }}</td></tr>
 <tr>
  <td>
   <strong>Contribution of the proposal to minimizing the digital divide in our country:</strong>
  </td>
  <td>{{ project.user_review.attribute8 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a8 }}</td></tr>
 <tr>
  <td>
   <strong>Any other matter which is likely to affect the execution of the project:</strong>
  </td>
  <td>{{ project.user_review.attribute9 }}</td>
 </tr>
 <tr><td>Comment: {{ project.user_review.comment_a9 }}</td></tr>
 </table>
 <table>
 <tr><td><strong>Overall comment:</strong></td><td>{{ project.user_review.comment }}</td></tr>
 </table>
 </div>
 </div>
</div>
<script type="text/javascript">
$(document).ready(function () {
  $('#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?"});
});
</script>
{% endif %}
{% endfor %}
{% endblock content %}