|
10 | 10 | {% origin %} |
11 | 11 | <h2>Feedback related to nominees</h2> |
12 | 12 |
|
13 | | - <table class="table table-condensed table-striped"> |
14 | | - <thead> |
15 | | - <tr> |
16 | | - <th class="col-sm-9">Nominee</th> |
17 | | - {% for ft in feedback_types %} |
18 | | - <th class="col-sm-1 text-center">{{ ft.name }}</th> |
19 | | - {% endfor %} |
20 | | - </tr> |
21 | | - </thead> |
22 | | - <tbody> |
23 | | - {% for nominee, feedback in nominees_feedback.items %} |
24 | | - <tr> |
25 | | - <td> |
26 | | - <a href="{% url "nomcom_view_feedback_nominee" year nominee.id %}">{{ nominee.name }}</a> |
27 | | - <span class="hidden-xs"><{{nominee.email.address}}></span> |
28 | | - </td> |
29 | | - {% for f in feedback %} |
30 | | - <td class="text-right"> |
31 | | - {% if f.2 %}<span class="label label-success">New</span>{% endif %} |
32 | | - {{ f.1 }} |
33 | | - </td> |
| 13 | + {% regroup nominees_feedback by nominee.staterank as stateranked_nominees %} |
| 14 | + {% for staterank in stateranked_nominees %} |
| 15 | + <div class="panel panel-default"> |
| 16 | + <div class="panel-heading"> |
| 17 | + {% if staterank.grouper == 0 %} |
| 18 | + Accepted nomination for at least one position |
| 19 | + {% elif staterank.grouper == 1 %} |
| 20 | + Pending for at least one position and has not accepted any nomination |
| 21 | + {% else %} |
| 22 | + Declined each nominated position |
| 23 | + {% endif %} |
| 24 | + </div> |
| 25 | + <div class="panel-body"> |
| 26 | + <table class="table table-condensed table-striped"> |
| 27 | + <thead> |
| 28 | + <tr> |
| 29 | + <th class="col-sm-9">Nominee</th> |
| 30 | + {% for ft in feedback_types %} |
| 31 | + <th class="col-sm-1 text-center">{{ ft.name }}</th> |
| 32 | + {% endfor %} |
| 33 | + </tr> |
| 34 | + </thead> |
| 35 | + <tbody> |
| 36 | + {% for fb_dict in staterank.list %} |
| 37 | + <tr> |
| 38 | + <td> |
| 39 | + <a href="{% url "nomcom_view_feedback_nominee" year fb_dict.nominee.id %}">{{ fb_dict.nominee.name }}</a> |
| 40 | + <span class="hidden-xs"><{{fb_dict.nominee.email.address}}></span> |
| 41 | + </td> |
| 42 | + {% for fbtype_name, fbtype_count, fbtype_newflag in fb_dict.feedback %} |
| 43 | + <td class="text-right"> |
| 44 | + {% if fbtype_newflag %}<span class="label label-success">New</span>{% endif %} |
| 45 | + {{ fbtype_count }} |
| 46 | + </td> |
| 47 | + {% endfor %} |
| 48 | + </tr> |
34 | 49 | {% endfor %} |
35 | | - </tr> |
36 | | - {% endfor %} |
37 | | - </tbody> |
38 | | - </table> |
| 50 | + </tbody> |
| 51 | + </table> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + {% endfor %} |
39 | 55 |
|
40 | 56 | {% if independent_feedback_types %} |
41 | 57 | <h2>Feedback not related to Nominees</h2> |
|
0 commit comments