app/templates/projrev/proposal/list.html
changeset 44 6fda3f3cc873
parent 41 64249ebaf65a
child 45 9ffe957d6159
equal deleted inserted replaced
43:55e650bb9dbe 44:6fda3f3cc873
     1 {% extends "projrev/base.html" %}
     1 {% extends "projrev/base.html" %}
     2 {% load review_helpers %}
     2 {% load review_helpers %}
       
     3 
       
     4 
     3 {% block content %}
     5 {% block content %}
     4 <div class="post">
     6 <div class="post">
     5   <div class="list">
     7   <div class="list">
     6   <table>
     8   <table>
     7     <tr>
     9     <tr>
    13       <th>State</th>
    15       <th>State</th>
    14       <th>District</th>
    16       <th>District</th>
    15       <th>Old Serial No.</th>
    17       <th>Old Serial No.</th>
    16     </tr>
    18     </tr>
    17     {% for project in projects %}
    19     {% for project in projects %}
    18       <tr class="row-a"><td><a href='{{ row_url }}{{ project.micr_code }}'>
    20       {% if project.not_this_proposal %}
    19         {{ project|serial_no:"new" }}
    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" }}
    20         </td>
    41         </td>
    21         <td>{{ project.micr_code }}</td>
    42         <td>{{ project.project.micr_code }}</td>
    22         <td>{{ project.title }}</td>
    43         <td>{{ project.project.title }}</td>
    23         <td>{{ project.line_item }}</td>
    44         <td>{{ project.project.line_item }}</td>
    24         <td>{{ project.institution }}</td>
    45         <td>{{ project.project.institution }}</td>
    25         <td>{{ project.state }}</td>
    46         <td>{{ project.project.state }}</td>
    26         <td>{{ project.district }}</td>
    47         <td>{{ project.project.district }}</td>
    27         <td>{{ project|serial_no:"old" }}</td>
    48         <td>{{ project.project|serial_no:"old" }}</td>
    28       </a></tr>
    49       </a></tr>
    29     {% endfor %}
    50     {% endfor %}
    30   </table>
    51   </table>
    31   </div>
    52   </div>
    32 </div>
    53 </div>