app/templates/projrev/proposal/review_list.html
changeset 45 9ffe957d6159
parent 44 6fda3f3cc873
child 46 e27c75dedbfb
equal deleted inserted replaced
44:6fda3f3cc873 45:9ffe957d6159
       
     1 {% extends "projrev/base.html" %}
       
     2 {% load review_helpers %}
       
     3 
       
     4 
       
     5 {% block content %}
       
     6 <div class="post">
       
     7   <div class="list">
       
     8   <table>
       
     9     <tr>
       
    10       <th class="first">Serial No.</th>
       
    11       <th>MICR Code</th>
       
    12       <th>Title</th>
       
    13       <th>Line Item</th>
       
    14       <th>Institution</th>
       
    15       <th>State</th>
       
    16       <th>District</th>
       
    17       <th>Old Serial No.</th>
       
    18     </tr>
       
    19     {% for project in projects %}
       
    20       {% if project.not_this_proposal %}
       
    21       <div class='hidden' style="display: none;">
       
    22         <div id='message_{{ project.project|serial_no:"new" }}' style='padding:10px; background:#fff;'>
       
    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 />
       
    24           <a href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}'>Start with my previous review</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       
    25           <a href='{{ row_url }}{{ project.project.micr_code }}'>Start a fresh review</a>
       
    26         </div>
       
    27       </div>
       
    28       <script type="text/javascript">
       
    29         $(document).ready(function () {
       
    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?"});
       
    31         });
       
    32       </script>
       
    33       {% endif %}
       
    34       <tr class="row-a"><td>
       
    35       {% if project.user_review %}
       
    36       <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}/{{ project.user_review.id }}'>
       
    37       {% else %}
       
    38       <a id='getredirect_{{ project.project|serial_no:"new" }}' href='{{ row_url }}{{ project.project.micr_code }}'>
       
    39       {% endif %}
       
    40         {{ project.project|serial_no:"new" }}
       
    41         </td>
       
    42         <td>{{ project.project.micr_code }}</td>
       
    43         <td>{{ project.project.title }}</td>
       
    44         <td>{{ project.project.line_item }}</td>
       
    45         <td>{{ project.project.institution }}</td>
       
    46         <td>{{ project.project.state }}</td>
       
    47         <td>{{ project.project.district }}</td>
       
    48         <td>{{ project.project|serial_no:"old" }}</td>
       
    49       </a></tr>
       
    50     {% endfor %}
       
    51   </table>
       
    52   </div>
       
    53 </div>
       
    54 {% endblock content %}