app/templates/projrev/proposal/list.html
changeset 45 9ffe957d6159
parent 44 6fda3f3cc873
child 49 33c54f815fd5
equal deleted inserted replaced
44:6fda3f3cc873 45:9ffe957d6159
     1 {% extends "projrev/base.html" %}
     1 {% extends "projrev/base.html" %}
     2 {% load review_helpers %}
       
     3 
       
     4 
       
     5 {% block content %}
     2 {% block content %}
     6 <div class="post">
     3 <div class="post">
     7   <div class="list">
     4   <div class="list">
     8   <table>
     5   <table>
     9     <tr>
     6     <tr>
    10       <th class="first">Serial No.</th>
     7       <th class="first">MICR Code</th>
    11       <th>MICR Code</th>
       
    12       <th>Title</th>
       
    13       <th>Line Item</th>
     8       <th>Line Item</th>
    14       <th>Institution</th>
     9       <th>Institution</th>
    15       <th>State</th>
    10       <th>State</th>
    16       <th>District</th>
    11       <th>District</th>
    17       <th>Old Serial No.</th>
       
    18     </tr>
    12     </tr>
    19     {% for project in projects %}
    13     {% for project in projects %}
    20       {% if project.not_this_proposal %}
    14       <tr class="row-a"><td><a href='{{ row_url }}{{ project.micr_code }}'>
    21       <div class='hidden' style="display: none;">
    15         {{ project.micr_code }}</td>
    22         <div id='message_{{ project.project|serial_no:"new" }}' style='padding:10px; background:#fff;'>
    16         <td>{{ project.line_item }}</td>
    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 />
    17         <td>{{ project.institution }}</td>
    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;
    18         <td>{{ project.state }}</td>
    25           <a href='{{ row_url }}{{ project.project.micr_code }}'>Start a fresh review</a>
    19         <td>{{ project.district }}</td>
    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>
    20       </a></tr>
    50     {% endfor %}
    21     {% endfor %}
    51   </table>
    22   </table>
    52   </div>
    23   </div>
    53 </div>
    24 </div>